Home
last modified time | relevance | path

Searched refs:slen (Results 1 – 9 of 9) sorted by relevance

/net-tools-3.6.0/mbedtls-2.4.0/library/
Dbase64.c78 const unsigned char *src, size_t slen ) in mbedtls_base64_encode() argument
84 if( slen == 0 ) in mbedtls_base64_encode()
90 n = slen / 3 + ( slen % 3 != 0 ); in mbedtls_base64_encode()
106 n = ( slen / 3 ) * 3; in mbedtls_base64_encode()
120 if( i < slen ) in mbedtls_base64_encode()
123 C2 = ( ( i + 1 ) < slen ) ? *src++ : 0; in mbedtls_base64_encode()
128 if( ( i + 1 ) < slen ) in mbedtls_base64_encode()
145 const unsigned char *src, size_t slen ) in mbedtls_base64_decode() argument
152 for( i = n = j = 0; i < slen; i++ ) in mbedtls_base64_decode()
156 while( i < slen && src[i] == ' ' ) in mbedtls_base64_decode()
[all …]
Decdsa.c285 unsigned char *sig, size_t *slen ) in ecdsa_signature_to_asn1() argument
300 *slen = len; in ecdsa_signature_to_asn1()
310 unsigned char *sig, size_t *slen, in mbedtls_ecdsa_write_signature() argument
333 MBEDTLS_MPI_CHK( ecdsa_signature_to_asn1( &r, &s, sig, slen ) ); in mbedtls_ecdsa_write_signature()
346 unsigned char *sig, size_t *slen, in mbedtls_ecdsa_write_signature_det() argument
349 return( mbedtls_ecdsa_write_signature( ctx, md_alg, hash, hlen, sig, slen, in mbedtls_ecdsa_write_signature_det()
359 const unsigned char *sig, size_t slen ) in mbedtls_ecdsa_read_signature() argument
363 const unsigned char *end = sig + slen; in mbedtls_ecdsa_read_signature()
Dpkcs5.c218 size_t plen, const unsigned char *salt, size_t slen, in mbedtls_pkcs5_pbkdf2_hmac() argument
244 if( ( ret = mbedtls_md_hmac_update( ctx, salt, slen ) ) != 0 ) in mbedtls_pkcs5_pbkdf2_hmac()
314 static const size_t slen[MAX_TESTS] = variable
379 slen[i], it_cnt[i], key_len[i], key ); in mbedtls_pkcs5_self_test()
Drsa.c465 size_t slen, mbedtls_md_context_t *md_ctx ) in mgf_mask() argument
488 mbedtls_md_update( md_ctx, src, slen ); in mgf_mask()
933 unsigned int slen, hlen, offset = 0; in mbedtls_rsa_rsassa_pss_sign() local
962 slen = hlen; in mbedtls_rsa_rsassa_pss_sign()
964 if( olen < hlen + slen + 2 ) in mbedtls_rsa_rsassa_pss_sign()
970 if( ( ret = f_rng( p_rng, salt, slen ) ) != 0 ) in mbedtls_rsa_rsassa_pss_sign()
977 memcpy( p, salt, slen ); in mbedtls_rsa_rsassa_pss_sign()
978 p += slen; in mbedtls_rsa_rsassa_pss_sign()
991 mbedtls_md_update( &md_ctx, salt, slen ); in mbedtls_rsa_rsassa_pss_sign()
1195 size_t slen, msb; in mbedtls_rsa_rsassa_pss_verify_ext() local
[all …]
Dbignum.c427 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()
[all …]
Dssl_tls.c219 static int ssl3_prf( const unsigned char *secret, size_t slen, in ssl3_prf() argument
248 mbedtls_sha1_update( &sha1, secret, slen ); in ssl3_prf()
253 mbedtls_md5_update( &md5, secret, slen ); in ssl3_prf()
269 static int tls1_prf( const unsigned char *secret, size_t slen, in tls1_prf() argument
288 hs = ( slen + 1 ) / 2; in tls1_prf()
290 S2 = secret + slen - hs; in tls1_prf()
368 const unsigned char *secret, size_t slen, in tls_prf_generic() argument
402 mbedtls_md_hmac_starts( &md_ctx, secret, slen ); in tls_prf_generic()
431 static int tls_prf_sha256( const unsigned char *secret, size_t slen, in tls_prf_sha256() argument
436 return( tls_prf_generic( MBEDTLS_MD_SHA256, secret, slen, in tls_prf_sha256()
[all …]
/net-tools-3.6.0/mbedtls-2.4.0/include/mbedtls/
Decdsa.h145 unsigned char *sig, size_t *slen,
181 unsigned char *sig, size_t *slen,
204 const unsigned char *sig, size_t slen );
Dbase64.h55 const unsigned char *src, size_t slen );
75 const unsigned char *src, size_t slen );
Dpkcs5.h79 size_t plen, const unsigned char *salt, size_t slen,