Lines Matching refs:slen
427 size_t i, j, slen, n; in mbedtls_mpi_read_string() local
436 slen = strlen( s ); in mbedtls_mpi_read_string()
440 if( slen > MPI_SIZE_T_MAX >> 2 ) in mbedtls_mpi_read_string()
443 n = BITS_TO_LIMBS( slen << 2 ); in mbedtls_mpi_read_string()
448 for( i = slen, j = 0; i > 0; i--, j++ ) in mbedtls_mpi_read_string()
464 for( i = 0; i < slen; i++ ) in mbedtls_mpi_read_string()
598 size_t slen; in mbedtls_mpi_read_file() local
610 slen = strlen( s ); in mbedtls_mpi_read_file()
611 if( slen == sizeof( s ) - 2 ) in mbedtls_mpi_read_file()
614 if( s[slen - 1] == '\n' ) { slen--; s[slen] = '\0'; } in mbedtls_mpi_read_file()
615 if( s[slen - 1] == '\r' ) { slen--; s[slen] = '\0'; } in mbedtls_mpi_read_file()
617 p = s + slen; in mbedtls_mpi_read_file()
631 size_t n, slen, plen; in mbedtls_mpi_write_file() local
645 slen = strlen( s ); in mbedtls_mpi_write_file()
646 s[slen++] = '\r'; in mbedtls_mpi_write_file()
647 s[slen++] = '\n'; in mbedtls_mpi_write_file()
652 fwrite( s, 1, slen, fout ) != slen ) in mbedtls_mpi_write_file()