/optee_os-3.20.0/lib/libmbedtls/mbedtls/library/ |
A D | base64.c | 45 const unsigned char *src, size_t slen ) in mbedtls_base64_encode() argument 51 if( slen == 0 ) in mbedtls_base64_encode() 57 n = slen / 3 + ( slen % 3 != 0 ); in mbedtls_base64_encode() 73 n = ( slen / 3 ) * 3; in mbedtls_base64_encode() 89 if( i < slen ) in mbedtls_base64_encode() 92 C2 = ( ( i + 1 ) < slen ) ? *src++ : 0; in mbedtls_base64_encode() 98 if( ( i + 1 ) < slen ) in mbedtls_base64_encode() 126 for( i = n = 0; i < slen; i++ ) in mbedtls_base64_decode() 130 while( i < slen && src[i] == ' ' ) in mbedtls_base64_decode() 137 if( i == slen ) in mbedtls_base64_decode() [all …]
|
A D | ssl_tls13_keys.c | 135 const unsigned char *secret, size_t slen, in mbedtls_ssl_tls1_3_hkdf_expand_label() argument 175 secret, slen, in mbedtls_ssl_tls1_3_hkdf_expand_label() 200 size_t slen, size_t key_len, size_t iv_len, in mbedtls_ssl_tls1_3_make_traffic_keys() argument 206 client_secret, slen, in mbedtls_ssl_tls1_3_make_traffic_keys() 214 server_secret, slen, in mbedtls_ssl_tls1_3_make_traffic_keys() 222 client_secret, slen, in mbedtls_ssl_tls1_3_make_traffic_keys() 230 server_secret, slen, in mbedtls_ssl_tls1_3_make_traffic_keys() 245 const unsigned char *secret, size_t slen, in mbedtls_ssl_tls1_3_derive_secret() argument 281 secret, slen, in mbedtls_ssl_tls1_3_derive_secret()
|
A D | ssl_tls13_keys.h | 111 const unsigned char *secret, size_t slen, 149 size_t slen, size_t key_len, size_t iv_len, 195 const unsigned char *secret, size_t slen,
|
A D | ecdsa.c | 741 *slen = len; in ecdsa_signature_to_asn1() 752 unsigned char *sig, size_t *slen, in mbedtls_ecdsa_write_signature_restartable() argument 762 ECDSA_VALIDATE_RET( slen != NULL ); in mbedtls_ecdsa_write_signature_restartable() 802 unsigned char *sig, size_t *slen, in mbedtls_ecdsa_write_signature() argument 809 ECDSA_VALIDATE_RET( slen != NULL ); in mbedtls_ecdsa_write_signature() 818 unsigned char *sig, size_t *slen, in mbedtls_ecdsa_write_signature_det() argument 824 ECDSA_VALIDATE_RET( slen != NULL ); in mbedtls_ecdsa_write_signature_det() 835 const unsigned char *sig, size_t slen ) in mbedtls_ecdsa_read_signature() argument 841 ctx, hash, hlen, sig, slen, NULL ) ); in mbedtls_ecdsa_read_signature() 849 const unsigned char *sig, size_t slen, in mbedtls_ecdsa_read_signature_restartable() argument [all …]
|
A D | bignum.c | 469 size_t i, j, slen, n; in mbedtls_mpi_read_string() local 493 slen = strlen( s ); in mbedtls_mpi_read_string() 666 size_t slen; in mbedtls_mpi_read_file() local 684 slen = strlen( s ); in mbedtls_mpi_read_file() 688 if( slen > 0 && s[slen - 1] == '\n' ) { slen--; s[slen] = '\0'; } in mbedtls_mpi_read_file() 689 if( slen > 0 && s[slen - 1] == '\r' ) { slen--; s[slen] = '\0'; } in mbedtls_mpi_read_file() 691 p = s + slen; in mbedtls_mpi_read_file() 723 slen = strlen( s ); in mbedtls_mpi_write_file() 724 s[slen++] = '\r'; in mbedtls_mpi_write_file() 725 s[slen++] = '\n'; in mbedtls_mpi_write_file() [all …]
|
A D | pkcs5.c | 220 size_t plen, const unsigned char *salt, size_t slen, in mbedtls_pkcs5_pbkdf2_hmac() argument 248 if( ( ret = mbedtls_md_hmac_update( ctx, salt, slen ) ) != 0 ) in mbedtls_pkcs5_pbkdf2_hmac()
|
A D | rsa.c | 1093 size_t slen, mbedtls_md_context_t *md_ctx ) in mgf_mask() argument 1118 if( ( ret = mbedtls_md_update( md_ctx, src, slen ) ) != 0 ) in mgf_mask() 1590 size_t slen, min_slen, hlen, offset = 0; in rsa_rsassa_pss_sign() local 1640 slen = hlen; in rsa_rsassa_pss_sign() 1642 slen = olen - hlen - 2; in rsa_rsassa_pss_sign() 1650 slen = (size_t) saltlen; in rsa_rsassa_pss_sign() 1657 p += olen - hlen - slen - 2; in rsa_rsassa_pss_sign() 1662 if( ( ret = f_rng( p_rng, salt, slen ) ) != 0 ) in rsa_rsassa_pss_sign() 1665 p += slen; in rsa_rsassa_pss_sign() 1678 if( ( ret = mbedtls_md_update( &md_ctx, salt, slen ) ) != 0 ) in rsa_rsassa_pss_sign()
|
A D | ssl_tls.c | 342 static int ssl3_prf( const unsigned char *secret, size_t slen, in ssl3_prf() argument 404 static int tls1_prf( const unsigned char *secret, size_t slen, in tls1_prf() argument 429 hs = ( slen + 1 ) / 2; in tls1_prf() 431 S2 = secret + slen - hs; in tls1_prf() 636 if( slen != 0 ) in tls_prf_generic() 728 ret = mbedtls_md_hmac_starts( &md_ctx, secret, slen ); in tls_prf_generic() 779 static int tls_prf_sha256( const unsigned char *secret, size_t slen, in tls_prf_sha256() argument 784 return( tls_prf_generic( MBEDTLS_MD_SHA256, secret, slen, in tls_prf_sha256() 791 static int tls_prf_sha384( const unsigned char *secret, size_t slen, in tls_prf_sha384() argument 796 return( tls_prf_generic( MBEDTLS_MD_SHA384, secret, slen, in tls_prf_sha384() [all …]
|
/optee_os-3.20.0/lib/libutils/isoc/ |
A D | sprintf.c | 23 int __sprintf_chk(char *str, int flag __unused, size_t slen, in __sprintf_chk() argument 29 if (slen == 0) in __sprintf_chk() 33 retval = __vsnprintf(str, slen, fmt, ap, false); in __sprintf_chk() 36 if (retval > 0 && (size_t)retval >= slen) in __sprintf_chk()
|
/optee_os-3.20.0/lib/libmbedtls/mbedtls/include/mbedtls/ |
A D | ecdsa.h | 373 unsigned char *sig, size_t *slen, 419 unsigned char *sig, size_t *slen, 476 unsigned char *sig, size_t *slen, 511 const unsigned char *sig, size_t slen ); 546 const unsigned char *sig, size_t slen,
|
A D | base64.h | 62 const unsigned char *src, size_t slen ); 82 const unsigned char *src, size_t slen );
|
A D | pkcs5.h | 92 size_t plen, const unsigned char *salt, size_t slen,
|
A D | ssl_internal.h | 377 typedef int mbedtls_ssl_tls_prf_cb( const unsigned char *secret, size_t slen,
|
A D | ssl.h | 4418 const unsigned char *secret, size_t slen,
|
/optee_os-3.20.0/lib/libutils/isoc/include/ |
A D | stdio.h | 23 int __sprintf_chk(char *str, int flag, size_t slen, const char *fmt, ...)
|
/optee_os-3.20.0/lib/libutee/ |
A D | tee_api_operations.c | 881 size_t slen, void *dst, uint64_t *dlen), in tee_buffer_update() argument 887 size_t slen = src_len; in tee_buffer_update() local 897 if (slen) in tee_buffer_update() 913 l = MIN(slen, op->block_size - op->buffer_offs); in tee_buffer_update() 915 l = MIN(slen, buffer_size - op->buffer_offs); in tee_buffer_update() 919 slen -= l; in tee_buffer_update() 944 op->buffer_offs += slen; in tee_buffer_update() 949 if (slen >= (buffer_size + buffer_left)) { in tee_buffer_update() 961 slen -= l; in tee_buffer_update() 968 memcpy(op->buffer + op->buffer_offs, src, slen); in tee_buffer_update() [all …]
|
/optee_os-3.20.0/core/lib/libfdt/ |
A D | fdt_ro.c | 97 int slen; in fdt_string_eq_() local 98 const char *p = fdt_get_string(fdt, stroffset, &slen); in fdt_string_eq_() 100 return p && (slen == len) && (memcmp(p, s, len) == 0); in fdt_string_eq_()
|