/optee_os-3.20.0/lib/libmbedtls/mbedtls/library/ |
A D | entropy_poll.c | 66 *olen = 0; in mbedtls_platform_entropy_poll() 81 *olen = len; in mbedtls_platform_entropy_poll() 176 *olen = ret; in mbedtls_platform_entropy_poll() 191 *olen = len; in mbedtls_platform_entropy_poll() 195 *olen = 0; in mbedtls_platform_entropy_poll() 209 *olen = len; in mbedtls_platform_entropy_poll() 224 *olen = 0; in mbedtls_null_entropy_poll() 240 *olen = 0; in mbedtls_hardclock_poll() 257 *olen = 0; in mbedtls_havege_poll() 262 *olen = len; in mbedtls_havege_poll() [all …]
|
A D | base64.c | 44 int mbedtls_base64_encode( unsigned char *dst, size_t dlen, size_t *olen, in mbedtls_base64_encode() argument 53 *olen = 0; in mbedtls_base64_encode() 61 *olen = BASE64_SIZE_T_MAX; in mbedtls_base64_encode() 69 *olen = n + 1; in mbedtls_base64_encode() 105 *olen = p - dst; in mbedtls_base64_encode() 114 int mbedtls_base64_decode( unsigned char *dst, size_t dlen, size_t *olen, in mbedtls_base64_decode() argument 171 *olen = 0; in mbedtls_base64_decode() 184 *olen = n; in mbedtls_base64_decode() 209 *olen = p - dst; in mbedtls_base64_decode()
|
A D | cipher.c | 552 *olen = 0; in mbedtls_cipher_update() 564 *olen = ilen; in mbedtls_cipher_update() 578 *olen = ilen; in mbedtls_cipher_update() 587 *olen = ilen; in mbedtls_cipher_update() 698 *olen = ilen; in mbedtls_cipher_update() 713 *olen = ilen; in mbedtls_cipher_update() 729 *olen = ilen; in mbedtls_cipher_update() 750 *olen = ilen; in mbedtls_cipher_update() 765 *olen = ilen; in mbedtls_cipher_update() 965 *olen = 0; in mbedtls_cipher_finish() [all …]
|
A D | nist_kw.c | 149 size_t olen, padlen = 0; in mbedtls_nist_kw_wrap() local 290 size_t olen; in unwrap() local 351 size_t i, olen; in mbedtls_nist_kw_unwrap() local 589 size_t olen; in mbedtls_nist_kw_self_test() local 611 if( ret != 0 || kw_out_len[i] != olen || in mbedtls_nist_kw_self_test() 632 out, olen, out, &olen, sizeof( out ) ); in mbedtls_nist_kw_self_test() 634 if( ret != 0 || olen != kw_msg_len[i] || in mbedtls_nist_kw_self_test() 650 olen = sizeof( out ); in mbedtls_nist_kw_self_test() 666 if( ret != 0 || kwp_out_len[i] != olen || in mbedtls_nist_kw_self_test() 687 olen, out, &olen, sizeof( out ) ); in mbedtls_nist_kw_self_test() [all …]
|
A D | ecdh.c | 297 size_t *olen, int point_format, in ecdh_make_params_internal() argument 343 *olen = grp_len + pt_len; in ecdh_make_params_internal() 354 int mbedtls_ecdh_make_params( mbedtls_ecdh_context *ctx, size_t *olen, in mbedtls_ecdh_make_params() argument 361 ECDH_VALIDATE_RET( olen != NULL ); in mbedtls_ecdh_make_params() 520 size_t *olen, int point_format, in ecdh_make_public_internal() argument 560 int mbedtls_ecdh_make_public( mbedtls_ecdh_context *ctx, size_t *olen, in mbedtls_ecdh_make_public() argument 567 ECDH_VALIDATE_RET( olen != NULL ); in mbedtls_ecdh_make_public() 683 *olen = ctx->grp.pbits / 8 + ( ( ctx->grp.pbits % 8 ) != 0 ); in ecdh_calc_secret_internal() 686 return mbedtls_mpi_write_binary_le( &ctx->z, buf, *olen ); in ecdh_calc_secret_internal() 688 return mbedtls_mpi_write_binary( &ctx->z, buf, *olen ); in ecdh_calc_secret_internal() [all …]
|
A D | ssl_cli.c | 105 *olen = 0; in ssl_write_hostname_ext() 175 *olen = 0; in ssl_write_renegotiation_ext() 225 *olen = 0; in ssl_write_signature_algorithms_ext() 322 *olen = 0; in ssl_write_supported_elliptic_curves_ext() 391 *olen = 0; in ssl_write_supported_point_formats_ext() 406 *olen = 6; in ssl_write_supported_point_formats_ext() 424 *olen = 0; in ssl_write_ecjpake_kkpp_ext() 506 *olen = 0; in ssl_write_cid_ext() 543 *olen = 0; in ssl_write_max_fragment_length_ext() 561 *olen = 5; in ssl_write_max_fragment_length_ext() [all …]
|
A D | entropy.c | 265 size_t olen; in entropy_gather_internal() local 278 olen = 0; in entropy_gather_internal() 280 buf, MBEDTLS_ENTROPY_MAX_GATHER, &olen ) ) != 0 ) in entropy_gather_internal() 288 if( olen > 0 ) in entropy_gather_internal() 291 buf, olen ) ) != 0 ) in entropy_gather_internal() 293 ctx->source[i].size += olen; in entropy_gather_internal() 546 size_t len, size_t *olen ) in entropy_dummy_source() argument 551 *olen = len; in entropy_dummy_source() 563 size_t olen = 0; in mbedtls_entropy_source_self_test_gather() local 569 buf_len - entropy_len, &olen ) ) != 0 ) in mbedtls_entropy_source_self_test_gather() [all …]
|
A D | ssl_srv.c | 2319 *olen = 0; in ssl_write_truncated_hmac_ext() 2331 *olen = 4; in ssl_write_truncated_hmac_ext() 2344 *olen = 0; in ssl_write_cid_ext() 2410 *olen = 0; in ssl_write_encrypt_then_mac_ext() 2422 *olen = 4; in ssl_write_encrypt_then_mac_ext() 2449 *olen = 4; in ssl_write_extended_ms_ext() 2474 *olen = 4; in ssl_write_session_ticket_ext() 2541 *olen = 5; in ssl_write_max_fragment_length_ext() 2572 *olen = 6; in ssl_write_supported_point_formats_ext() 2586 *olen = 0; in ssl_write_ecjpake_kkpp_ext() [all …]
|
A D | rsa.c | 724 size_t olen; in mbedtls_rsa_public() local 748 olen = ctx->len; in mbedtls_rsa_public() 862 size_t olen; in mbedtls_rsa_private() local 1044 olen = ctx->len; in mbedtls_rsa_private() 1153 size_t olen; in mbedtls_rsa_rsaes_oaep_encrypt() local 1177 olen = ctx->len; in mbedtls_rsa_rsaes_oaep_encrypt() 1240 size_t nb_pad, olen; in mbedtls_rsa_rsaes_pkcs1_v15_encrypt() local 1253 olen = ctx->len; in mbedtls_rsa_rsaes_pkcs1_v15_encrypt() 1477 if( *olen != 0 ) in mbedtls_rsa_rsaes_oaep_decrypt() 1587 size_t olen; in rsa_rsassa_pss_sign() local [all …]
|
A D | dhm.c | 209 unsigned char *output, size_t *olen, in mbedtls_dhm_make_params() argument 218 DHM_VALIDATE_RET( olen != NULL ); in mbedtls_dhm_make_params() 248 *olen = p - output; in mbedtls_dhm_make_params() 303 unsigned char *output, size_t olen, in mbedtls_dhm_make_public() argument 312 if( olen < 1 || olen > ctx->len ) in mbedtls_dhm_make_public() 321 MBEDTLS_MPI_CHK( mbedtls_mpi_write_binary( &ctx->GX, output, olen ) ); in mbedtls_dhm_make_public() 401 unsigned char *output, size_t output_size, size_t *olen, in mbedtls_dhm_calc_secret() argument 409 DHM_VALIDATE_RET( olen != NULL ); in mbedtls_dhm_calc_secret() 442 *olen = mbedtls_mpi_size( &ctx->K ); in mbedtls_dhm_calc_secret() 443 MBEDTLS_MPI_CHK( mbedtls_mpi_write_binary( &ctx->K, output, *olen ) ); in mbedtls_dhm_calc_secret()
|
A D | ecjpake.c | 484 size_t *olen, in ecjpake_kkpp_write() argument 497 *olen = p - buf; in ecjpake_kkpp_write() 523 unsigned char *buf, size_t len, size_t *olen, in mbedtls_ecjpake_write_round_one() argument 529 ECJPAKE_VALIDATE_RET( olen != NULL ); in mbedtls_ecjpake_write_round_one() 657 unsigned char *buf, size_t len, size_t *olen, in mbedtls_ecjpake_write_round_two() argument 671 ECJPAKE_VALIDATE_RET( olen != NULL ); in mbedtls_ecjpake_write_round_two() 725 *olen = p - buf; in mbedtls_ecjpake_write_round_two() 739 unsigned char *buf, size_t len, size_t *olen, in mbedtls_ecjpake_derive_secret() argument 751 ECJPAKE_VALIDATE_RET( olen != NULL ); in mbedtls_ecjpake_derive_secret() 754 *olen = mbedtls_md_get_size( ctx->md_info ); in mbedtls_ecjpake_derive_secret() [all …]
|
A D | cmac.c | 124 size_t olen, block_size; in cmac_generate_subkeys() local 131 if( ( ret = mbedtls_cipher_update( ctx, L, block_size, L, &olen ) ) != 0 ) in cmac_generate_subkeys() 240 size_t n, j, olen, block_size; in mbedtls_cipher_cmac_update() local 262 &olen ) ) != 0 ) in mbedtls_cipher_cmac_update() 282 &olen ) ) != 0 ) in mbedtls_cipher_cmac_update() 311 size_t olen, block_size; in mbedtls_cipher_cmac_finish() local 342 &olen ) ) != 0 ) in mbedtls_cipher_cmac_finish()
|
/optee_os-3.20.0/lib/libmbedtls/mbedtls/include/mbedtls/ |
A D | entropy_poll.h | 52 unsigned char *output, size_t len, size_t *olen ); 60 unsigned char *output, size_t len, size_t *olen ); 70 unsigned char *output, size_t len, size_t *olen ); 78 unsigned char *output, size_t len, size_t *olen ); 91 unsigned char *output, size_t len, size_t *olen ); 101 unsigned char *output, size_t len, size_t *olen );
|
A D | base64.h | 61 int mbedtls_base64_encode( unsigned char *dst, size_t dlen, size_t *olen, 81 int mbedtls_base64_decode( unsigned char *dst, size_t dlen, size_t *olen,
|
A D | ecjpake.h | 164 unsigned char *buf, size_t len, size_t *olen, 205 unsigned char *buf, size_t len, size_t *olen, 245 unsigned char *buf, size_t len, size_t *olen,
|
A D | pkcs11.h | 138 int mode, size_t *olen, 176 int mode, size_t *olen, in mbedtls_ssl_pkcs11_decrypt() argument 180 return mbedtls_pkcs11_decrypt( (mbedtls_pkcs11_context *) ctx, mode, olen, input, output, in mbedtls_ssl_pkcs11_decrypt()
|
A D | cipher.h | 335 void (*add_padding)( unsigned char *output, size_t olen, size_t data_len ); 790 size_t *olen ); 815 unsigned char *output, size_t *olen ); 890 unsigned char *output, size_t *olen ); 949 unsigned char *output, size_t *olen, 1008 unsigned char *output, size_t *olen, 1065 size_t *olen, size_t tag_len ); 1121 size_t *olen, size_t tag_len );
|
A D | dhm.h | 197 unsigned char *output, size_t *olen, 264 unsigned char *output, size_t olen, 295 unsigned char *output, size_t output_size, size_t *olen,
|
A D | ecdh.h | 282 int mbedtls_ecdh_make_params( mbedtls_ecdh_context *ctx, size_t *olen, 364 int mbedtls_ecdh_make_public( mbedtls_ecdh_context *ctx, size_t *olen, 421 int mbedtls_ecdh_calc_secret( mbedtls_ecdh_context *ctx, size_t *olen,
|
A D | pk_internal.h | 77 unsigned char *output, size_t *olen, size_t osize, 83 unsigned char *output, size_t *olen, size_t osize,
|
A D | oid.h | 504 const char **oid, size_t *olen ); 527 const char **oid, size_t *olen ); 564 const char **oid, size_t *olen ); 616 int mbedtls_oid_get_oid_by_md( mbedtls_md_type_t md_alg, const char **oid, size_t *olen );
|
A D | pem.h | 146 unsigned char *buf, size_t buf_len, size_t *olen );
|
/optee_os-3.20.0/core/lib/libtomcrypt/src/mac/blake2/ |
A D | blake2bmac_test.c | 281 unsigned long olen = mlen; in blake2bmac_test() 284 blake2bmac_init(&st, olen, key, klen); in blake2bmac_test() 291 blake2bmac_done(&st, out, &olen); in blake2bmac_test() 292 …if (compare_testvector(out, olen, mac, mlen, "BLAKE2B MAC multi", ilen) != 0) return CRYPT_FAIL_TE… in blake2bmac_test() 295 blake2bmac_init(&st, olen, key, klen); in blake2bmac_test() 297 blake2bmac_done(&st, out, &olen); in blake2bmac_test() 298 …if (compare_testvector(out, olen, mac, mlen, "BLAKE2B MAC single", ilen) != 0) return CRYPT_FAIL_T… in blake2bmac_test()
|
A D | blake2smac_test.c | 281 unsigned long olen = mlen; in blake2smac_test() 284 blake2smac_init(&st, olen, key, klen); in blake2smac_test() 291 blake2smac_done(&st, out, &olen); in blake2smac_test() 292 …if (compare_testvector(out, olen, mac, mlen, "BLAKE2S MAC multi", ilen) != 0) return CRYPT_FAIL_TE… in blake2smac_test() 295 blake2smac_init(&st, olen, key, klen); in blake2smac_test() 297 blake2smac_done(&st, out, &olen); in blake2smac_test() 298 …if (compare_testvector(out, olen, mac, mlen, "BLAKE2S MAC single", ilen) != 0) return CRYPT_FAIL_T… in blake2smac_test()
|
/optee_os-3.20.0/lib/libmbedtls/core/ |
A D | dh.c | 104 size_t olen = 0; in crypto_acipher_dh_shared_secret() local 124 &olen, mbd_rand, NULL); in crypto_acipher_dh_shared_secret() 129 crypto_bignum_bin2bn(buf, olen, secret); in crypto_acipher_dh_shared_secret()
|