/optee_os-3.20.0/core/lib/libtomcrypt/src/misc/base16/ |
A D | base16_decode.c | 26 unsigned long pos, out_len; in base16_decode() local 45 out_len = *outlen * 2; in base16_decode() 46 for (pos = 0; ((pos + 1 < out_len) && (pos + 1 < inlen)); pos += 2) { in base16_decode()
|
/optee_os-3.20.0/lib/libmbedtls/mbedtls/library/ |
A D | nist_kw.c | 154 *out_len = 0; in mbedtls_nist_kw_wrap() 261 *out_len = semiblocks * KW_SEMIBLOCK_LENGTH; in mbedtls_nist_kw_wrap() 295 *out_len = 0; in unwrap() 330 *out_len = ( semiblocks - 1 ) * KW_SEMIBLOCK_LENGTH; in unwrap() 355 *out_len = 0; in mbedtls_nist_kw_unwrap() 377 A, output, out_len ); in mbedtls_nist_kw_unwrap() 419 *out_len = KW_SEMIBLOCK_LENGTH; in mbedtls_nist_kw_unwrap() 425 A, output, out_len ); in mbedtls_nist_kw_unwrap() 471 *out_len = Plen; in mbedtls_nist_kw_unwrap() 482 memset( output, 0, *out_len ); in mbedtls_nist_kw_unwrap() [all …]
|
A D | hmac_drbg.c | 329 unsigned char *output, size_t out_len, in mbedtls_hmac_drbg_random_with_add() argument 335 size_t left = out_len; in mbedtls_hmac_drbg_random_with_add() 339 if( out_len > MBEDTLS_HMAC_DRBG_MAX_REQUEST ) in mbedtls_hmac_drbg_random_with_add() 399 int mbedtls_hmac_drbg_random( void *p_rng, unsigned char *output, size_t out_len ) in mbedtls_hmac_drbg_random() argument 409 ret = mbedtls_hmac_drbg_random_with_add( ctx, output, out_len, NULL, 0 ); in mbedtls_hmac_drbg_random()
|
A D | ssl_msg.c | 2749 MBEDTLS_PUT_UINT16_BE( len, ssl->out_len, 0); in mbedtls_ssl_write_record() 2789 MBEDTLS_PUT_UINT16_BE( rec.data_len, ssl->out_len, 0 ); in mbedtls_ssl_write_record() 5130 ssl->out_len = ssl->out_cid; in mbedtls_ssl_update_out_pointers() 5132 ssl->out_len += transform->out_cid_len; in mbedtls_ssl_update_out_pointers() 5134 ssl->out_len = ssl->out_ctr + 8; in mbedtls_ssl_update_out_pointers() 5136 ssl->out_iv = ssl->out_len + 2; in mbedtls_ssl_update_out_pointers() 5142 ssl->out_len = ssl->out_hdr + 3; in mbedtls_ssl_update_out_pointers() 5144 ssl->out_cid = ssl->out_len; in mbedtls_ssl_update_out_pointers()
|
A D | ssl_tls.c | 303 len_offset_out = ssl->out_len - ssl->out_buf; in handle_buffer_resizing() 327 ssl->out_len = ssl->out_buf + len_offset_out; in handle_buffer_resizing() 4011 ssl->out_len = NULL; in mbedtls_ssl_setup()
|
/optee_os-3.20.0/lib/libmbedtls/core/ |
A D | sm2-pke.c | 125 size_t out_len = 0; in sm2_mbedtls_pke_decrypt() local 212 out_len = MIN(*dst_len, C2_len); in sm2_mbedtls_pke_decrypt() 213 for (i = 0; i < out_len; i++) in sm2_mbedtls_pke_decrypt() 215 *dst_len = out_len; in sm2_mbedtls_pke_decrypt() 216 if (out_len < C2_len) { in sm2_mbedtls_pke_decrypt() 217 eom = calloc(1, C2_len - out_len); in sm2_mbedtls_pke_decrypt() 222 for (i = out_len; i < C2_len; i++) in sm2_mbedtls_pke_decrypt() 223 eom[i - out_len] = src[C1_len + i] ^ t[i]; in sm2_mbedtls_pke_decrypt() 237 res = crypto_hash_update(ctx, dst, out_len); in sm2_mbedtls_pke_decrypt() 240 if (out_len < C2_len) { in sm2_mbedtls_pke_decrypt() [all …]
|
A D | ecc.c | 361 size_t out_len = 0; in ecc_shared_secret() local 378 lmd_res = mbedtls_ecdh_calc_secret(&ecdh, &out_len, secret, in ecc_shared_secret() 384 *secret_len = out_len; in ecc_shared_secret()
|
A D | sm2-kep.c | 444 res = sm2_kdf(xUyUZAZB, sizeof(xUyUZAZB), p->out, p->out_len); in crypto_acipher_sm2_kep_derive()
|
/optee_os-3.20.0/lib/libmbedtls/mbedtls/include/mbedtls/ |
A D | nist_kw.h | 138 unsigned char *output, size_t* out_len, size_t out_size ); 165 unsigned char *output, size_t* out_len, size_t out_size);
|
A D | hmac_drbg.h | 394 int mbedtls_hmac_drbg_random( void *p_rng, unsigned char *output, size_t out_len );
|
A D | ssl.h | 1387 unsigned char *out_len; /*!< two-bytes message length field */ member
|
/optee_os-3.20.0/core/crypto/ |
A D | cbc-mac.c | 61 size_t out_len = 0; in crypto_cbc_mac_update() local 93 out_len = nblocks * mc->block_len; in crypto_cbc_mac_update() 96 out_len = mc->block_len; in crypto_cbc_mac_update() 102 false, data, out_len, out); in crypto_cbc_mac_update() 106 data += out_len; in crypto_cbc_mac_update() 107 len -= out_len; in crypto_cbc_mac_update() 111 memcpy(mc->digest, out_tmp + out_len - mc->block_len, in crypto_cbc_mac_update()
|
/optee_os-3.20.0/core/lib/libtomcrypt/ |
A D | sm2-pke.c | 126 size_t out_len = 0; in sm2_ltc_pke_decrypt() local 245 out_len = MIN(*dst_len, C2_len); in sm2_ltc_pke_decrypt() 246 for (i = 0; i < out_len; i++) in sm2_ltc_pke_decrypt() 248 *dst_len = out_len; in sm2_ltc_pke_decrypt() 249 if (out_len < C2_len) { in sm2_ltc_pke_decrypt() 250 eom = calloc(1, C2_len - out_len); in sm2_ltc_pke_decrypt() 255 for (i = out_len; i < C2_len; i++) in sm2_ltc_pke_decrypt() 256 eom[i - out_len] = src[C1_len + i] ^ t[i]; in sm2_ltc_pke_decrypt() 270 res = crypto_hash_update(ctx, dst, out_len); in sm2_ltc_pke_decrypt() 273 if (out_len < C2_len) { in sm2_ltc_pke_decrypt() [all …]
|
A D | sm2-kep.c | 351 res = sm2_kdf(xUyUZAZB, sizeof(xUyUZAZB), p->out, p->out_len); in sm2_kep_derive()
|
/optee_os-3.20.0/core/drivers/ |
A D | stm32mp15_huk.c | 86 uint8_t *out, size_t *out_len) in aes_gcm_encrypt_uid() argument 111 out, out_len, tag, &tag_len); in aes_gcm_encrypt_uid() 120 memzero_explicit(out, *out_len); in aes_gcm_encrypt_uid()
|
/optee_os-3.20.0/core/include/crypto/ |
A D | crypto.h | 298 size_t out_len; member
|
/optee_os-3.20.0/core/tee/ |
A D | tee_svc_cryp.c | 3605 .out_len = so->info.maxObjectSize, in syscall_cryp_derive_key() 3627 sk->key_size = kep_parms.out_len; in syscall_cryp_derive_key()
|