Home
last modified time | relevance | path

Searched refs:out_len (Results 1 – 25 of 28) sorted by relevance

12

/optee_os/lib/libmbedtls/mbedtls/library/
A Dnist_kw.c193 *out_len = 0; in mbedtls_nist_kw_wrap()
300 *out_len = semiblocks * KW_SEMIBLOCK_LENGTH; in mbedtls_nist_kw_wrap()
334 *out_len = 0; in unwrap()
369 *out_len = ( semiblocks - 1 ) * KW_SEMIBLOCK_LENGTH; in unwrap()
394 *out_len = 0; in mbedtls_nist_kw_unwrap()
416 A, output, out_len ); in mbedtls_nist_kw_unwrap()
458 *out_len = KW_SEMIBLOCK_LENGTH; in mbedtls_nist_kw_unwrap()
464 A, output, out_len ); in mbedtls_nist_kw_unwrap()
510 *out_len = Plen; in mbedtls_nist_kw_unwrap()
521 memset( output, 0, *out_len ); in mbedtls_nist_kw_unwrap()
[all …]
A Dhmac_drbg.c329 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 Dssl_msg.c2877 ssl->out_len[0] = (unsigned char)( len >> 8 ); in mbedtls_ssl_write_record()
2878 ssl->out_len[1] = (unsigned char)( len ); in mbedtls_ssl_write_record()
2918 ssl->out_len[0] = (unsigned char)( rec.data_len >> 8 ); in mbedtls_ssl_write_record()
2919 ssl->out_len[1] = (unsigned char)( rec.data_len ); in mbedtls_ssl_write_record()
5210 ssl->out_len = ssl->out_cid; in mbedtls_ssl_update_out_pointers()
5212 ssl->out_len += transform->out_cid_len; in mbedtls_ssl_update_out_pointers()
5214 ssl->out_len = ssl->out_ctr + 8; in mbedtls_ssl_update_out_pointers()
5216 ssl->out_iv = ssl->out_len + 2; in mbedtls_ssl_update_out_pointers()
5222 ssl->out_len = ssl->out_hdr + 3; in mbedtls_ssl_update_out_pointers()
5224 ssl->out_cid = ssl->out_len; in mbedtls_ssl_update_out_pointers()
/optee_os/lib/libmbedtls/core/
A Dsm2-pke.c125 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 Decc.c317 size_t out_len = 0; in ecc_shared_secret() local
332 lmd_res = mbedtls_ecdh_calc_secret(&ecdh, &out_len, secret, in ecc_shared_secret()
338 *secret_len = out_len; in ecc_shared_secret()
A Dsm2-kep.c444 res = sm2_kdf(xUyUZAZB, sizeof(xUyUZAZB), p->out, p->out_len); in crypto_acipher_sm2_kep_derive()
/optee_os/core/lib/libtomcrypt/src/misc/base16/
A Dbase16_decode.c33 unsigned long pos, out_len; in base16_decode() local
52 out_len = *outlen * 2; in base16_decode()
53 for (pos = 0; ((pos + 1 < out_len) && (pos + 1 < inlen)); pos += 2) { in base16_decode()
/optee_os/core/lib/libtomcrypt/
A Dsm2-pke.c125 size_t out_len = 0; in sm2_ltc_pke_decrypt() local
244 out_len = MIN(*dst_len, C2_len); in sm2_ltc_pke_decrypt()
245 for (i = 0; i < out_len; i++) in sm2_ltc_pke_decrypt()
247 *dst_len = out_len; in sm2_ltc_pke_decrypt()
248 if (out_len < C2_len) { in sm2_ltc_pke_decrypt()
249 eom = calloc(1, C2_len - out_len); in sm2_ltc_pke_decrypt()
254 for (i = out_len; i < C2_len; i++) in sm2_ltc_pke_decrypt()
255 eom[i - out_len] = src[C1_len + i] ^ t[i]; in sm2_ltc_pke_decrypt()
269 res = crypto_hash_update(ctx, dst, out_len); in sm2_ltc_pke_decrypt()
272 if (out_len < C2_len) { in sm2_ltc_pke_decrypt()
[all …]
A Dsm2-kep.c351 res = sm2_kdf(xUyUZAZB, sizeof(xUyUZAZB), p->out, p->out_len); in sm2_kep_derive()
/optee_os/core/crypto/
A Dcbc-mac.c61 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/out/arm/export-ta_arm32/host_include/mbedtls/
A Dnist_kw.h138 unsigned char *output, size_t* out_len, size_t out_size );
165 unsigned char *output, size_t* out_len, size_t out_size);
A Dhmac_drbg.h390 int mbedtls_hmac_drbg_random( void *p_rng, unsigned char *output, size_t out_len );
A Dssl.h1316 unsigned char *out_len; /*!< two-bytes message length field */ member
/optee_os/out/arm/export-ta_arm32/include/mbedtls/
A Dnist_kw.h138 unsigned char *output, size_t* out_len, size_t out_size );
165 unsigned char *output, size_t* out_len, size_t out_size);
A Dhmac_drbg.h390 int mbedtls_hmac_drbg_random( void *p_rng, unsigned char *output, size_t out_len );
A Dssl.h1316 unsigned char *out_len; /*!< two-bytes message length field */ member
/optee_os/lib/libmbedtls/mbedtls/include/mbedtls/
A Dnist_kw.h138 unsigned char *output, size_t* out_len, size_t out_size );
165 unsigned char *output, size_t* out_len, size_t out_size);
A Dhmac_drbg.h390 int mbedtls_hmac_drbg_random( void *p_rng, unsigned char *output, size_t out_len );
A Dssl.h1316 unsigned char *out_len; /*!< two-bytes message length field */ member
/optee_os/out/arm/export-ta_arm64/include/mbedtls/
A Dnist_kw.h138 unsigned char *output, size_t* out_len, size_t out_size );
165 unsigned char *output, size_t* out_len, size_t out_size);
A Dhmac_drbg.h390 int mbedtls_hmac_drbg_random( void *p_rng, unsigned char *output, size_t out_len );
A Dssl.h1316 unsigned char *out_len; /*!< two-bytes message length field */ member
/optee_os/out/arm/export-ta_arm64/host_include/mbedtls/
A Dnist_kw.h138 unsigned char *output, size_t* out_len, size_t out_size );
165 unsigned char *output, size_t* out_len, size_t out_size);
A Dhmac_drbg.h390 int mbedtls_hmac_drbg_random( void *p_rng, unsigned char *output, size_t out_len );
/optee_os/core/include/crypto/
A Dcrypto.h258 size_t out_len; member

Completed in 68 milliseconds

12