Home
last modified time | relevance | path

Searched refs:dlen (Results 1 – 25 of 34) sorted by relevance

12

/optee_os/core/crypto/
A Drng_fortuna.c65 uint8_t dlen; member
104 res = hash_update(ctx, data, dlen); in key_from_data()
176 size_t dlen) in push_ring_buffer() argument
204 size_t dlen; in pop_ring_buffer() local
213 dlen = MIN(ring_buffer.elem[ring_buffer.end].dlen, RING_BUF_DATA_SIZE); in pop_ring_buffer()
214 assert(ring_buffer.elem[ring_buffer.end].dlen == dlen); in pop_ring_buffer()
219 return dlen; in pop_ring_buffer()
255 size_t dlen; in drain_ring_buffer() local
258 if (!dlen) in drain_ring_buffer()
299 const void *data, size_t dlen) in crypto_rng_add_event() argument
[all …]
A Drng_hw.c11 size_t dlen __unused) in crypto_rng_init()
19 size_t dlen __unused) in crypto_rng_add_event()
/optee_os/lib/libutils/ext/
A Dstrlcat.c55 size_t dlen; in strlcat() local
60 dlen = d - dst; in strlcat()
61 n = siz - dlen; in strlcat()
64 return dlen + strlen(s); in strlcat()
75 return dlen + (s - src); /* count does not include NUL */ in strlcat()
/optee_os/lib/libutee/
A Dbase64.c16 bool _base64_enc(const void *data, size_t dlen, char *buf, size_t *blen) in _base64_enc() argument
22 n = _base64_enc_len(dlen); in _base64_enc()
28 for (n = 0; n < dlen; n += 3) { in _base64_enc()
34 if ((n + 1) < dlen) in _base64_enc()
38 if ((n + 2) < dlen) in _base64_enc()
43 if ((n + 1) < dlen) in _base64_enc()
47 if ((n + 2) < dlen) in _base64_enc()
A Dtee_api_operations.c873 size_t slen, void *dst, uint64_t *dlen), in tee_buffer_update() argument
881 size_t dlen = *dest_len; in tee_buffer_update() local
922 tmp_dlen = dlen; in tee_buffer_update()
927 dlen -= tmp_dlen; in tee_buffer_update()
948 tmp_dlen = dlen; in tee_buffer_update()
955 dlen -= tmp_dlen; in tee_buffer_update()
/optee_os/core/lib/libtomcrypt/src/pk/asn1/der/bit/
A Dder_decode_bit_string.c31 unsigned long dlen, blen, x, y; in der_decode_bit_string() local
53 if ((err = der_decode_asn1_length(in + x, &y, &dlen)) != CRYPT_OK) { in der_decode_bit_string()
58 if ((dlen == 0) || (dlen > (inlen - x))) { in der_decode_bit_string()
63 blen = ((dlen - 1) << 3) - (in[x++] & 7); in der_decode_bit_string()
A Dder_decode_raw_bit_string.c34 unsigned long dlen, blen, x, y; in der_decode_raw_bit_string() local
56 if ((err = der_decode_asn1_length(in + x, &y, &dlen)) != CRYPT_OK) { in der_decode_raw_bit_string()
61 if ((dlen == 0) || (dlen > (inlen - x))) { in der_decode_raw_bit_string()
66 blen = ((dlen - 1) << 3) - (in[x++] & 7); in der_decode_raw_bit_string()
/optee_os/core/lib/libtomcrypt/src/misc/pbes/
A Dpbes.c26 unsigned long klen, keylen, dlen; in pbes_decrypt() local
64 dlen = arg->enc_data->size; in pbes_decrypt()
65 if ((err = padding_depad(dec_data, &dlen, LTC_PAD_PKCS7)) != CRYPT_OK) goto LBL_ERROR; in pbes_decrypt()
66 diff = (long)arg->enc_data->size - (long)dlen; in pbes_decrypt()
71 *dec_size = dlen; in pbes_decrypt()
/optee_os/core/tee/
A Dtee_ta_enc_manager.c43 size_t dlen = len; in tee_ta_decrypt_update() local
46 dst, &dlen); in tee_ta_decrypt_update()
57 size_t dlen = len; in tee_ta_decrypt_final() local
59 res = crypto_authenc_dec_final(enc_ctx, src, len, dst, &dlen, in tee_ta_decrypt_final()
A Dtee_svc_cryp.c2595 size_t dlen = 0; in tee_svc_cipher_update_helper() local
2612 dlen = 0; in tee_svc_cipher_update_helper()
3295 size_t dlen = 0; in syscall_authenc_update_payload() local
3353 size_t dlen = 0; in syscall_authenc_enc_final() local
3377 dlen = 0; in syscall_authenc_enc_final()
3438 size_t dlen = 0; in syscall_authenc_dec_final() local
3461 dlen = 0; in syscall_authenc_dec_final()
3531 size_t dlen = 0; in syscall_asymm_operate() local
3604 &dlen); in syscall_asymm_operate()
3608 &dlen); in syscall_asymm_operate()
[all …]
A Dfs_htree.c109 size_t idx, size_t vers, void *data, size_t dlen) in rpc_read() argument
124 if (bytes != dlen) in rpc_read()
127 memcpy(data, p, dlen); in rpc_read()
148 size_t vers, const void *data, size_t dlen) in rpc_write() argument
158 memcpy(p, data, dlen); in rpc_write()
/optee_os/out/arm/export-ta_arm32/host_include/mbedtls/
A Dbase64.h59 int mbedtls_base64_encode( unsigned char *dst, size_t dlen, size_t *olen,
79 int mbedtls_base64_decode( unsigned char *dst, size_t dlen, size_t *olen,
A Dssl_internal.h380 unsigned char *dstbuf, size_t dlen );
/optee_os/out/arm/export-ta_arm64/host_include/mbedtls/
A Dbase64.h59 int mbedtls_base64_encode( unsigned char *dst, size_t dlen, size_t *olen,
79 int mbedtls_base64_decode( unsigned char *dst, size_t dlen, size_t *olen,
/optee_os/lib/libmbedtls/mbedtls/include/mbedtls/
A Dbase64.h59 int mbedtls_base64_encode( unsigned char *dst, size_t dlen, size_t *olen,
79 int mbedtls_base64_decode( unsigned char *dst, size_t dlen, size_t *olen,
/optee_os/out/arm/export-ta_arm64/include/mbedtls/
A Dbase64.h59 int mbedtls_base64_encode( unsigned char *dst, size_t dlen, size_t *olen,
79 int mbedtls_base64_decode( unsigned char *dst, size_t dlen, size_t *olen,
/optee_os/out/arm/export-ta_arm32/include/mbedtls/
A Dbase64.h59 int mbedtls_base64_encode( unsigned char *dst, size_t dlen, size_t *olen,
79 int mbedtls_base64_decode( unsigned char *dst, size_t dlen, size_t *olen,
A Dssl_internal.h380 unsigned char *dstbuf, size_t dlen );
/optee_os/core/lib/libtomcrypt/src/pk/rsa/
A Drsa_set.c29 const unsigned char *d, unsigned long dlen, in rsa_set_key() argument
44 if (d && dlen) { in rsa_set_key()
45 …if ((err = mp_read_unsigned_bin(key->d , (unsigned char *)d , dlen)) != CRYPT_OK) { goto LBL_ERR; } in rsa_set_key()
/optee_os/lib/libmbedtls/mbedtls/library/
A Dbase64.c164 int mbedtls_base64_encode( unsigned char *dst, size_t dlen, size_t *olen, in mbedtls_base64_encode() argument
187 if( ( dlen < n + 1 ) || ( NULL == dst ) ) in mbedtls_base64_encode()
242 int mbedtls_base64_decode( unsigned char *dst, size_t dlen, size_t *olen, in mbedtls_base64_decode() argument
303 if( dst == NULL || dlen < n ) in mbedtls_base64_decode()
A Dssl_tls13_keys.c97 unsigned char *dst, size_t *dlen ) in ssl_tls1_3_hkdf_encode_label() argument
130 *dlen = total_hkdf_lbl_len; in ssl_tls1_3_hkdf_encode_label()
A Dssl_tls.c338 unsigned char *dstbuf, size_t dlen ) in ssl3_prf() argument
359 for( i = 0; i < dlen / 16; i++ ) in ssl3_prf()
399 unsigned char *dstbuf, size_t dlen ) in tls1_prf() argument
448 for( i = 0; i < dlen; i += 16 ) in tls1_prf()
458 k = ( i + 16 > dlen ) ? dlen % 16 : 16; in tls1_prf()
484 for( i = 0; i < dlen; i += 20 ) in tls1_prf()
494 k = ( i + 20 > dlen ) ? dlen % 20 : 20; in tls1_prf()
608 dlen ); in tls_prf_generic()
686 for( i = 0; i < dlen; i += md_len ) in tls_prf_generic()
696 k = ( i + md_len > dlen ) ? dlen % md_len : md_len; in tls_prf_generic()
[all …]
A Drsa.c1104 static int mgf_mask( unsigned char *dst, size_t dlen, unsigned char *src, in mgf_mask() argument
1122 while( dlen > 0 ) in mgf_mask()
1125 if( dlen < hlen ) in mgf_mask()
1126 use_len = dlen; in mgf_mask()
1142 dlen -= use_len; in mgf_mask()
/optee_os/core/pta/tests/
A Daes_perf.c119 size_t dlen = len; in update_ae() local
121 return crypto_authenc_update_payload(ctx, mode, src, len, dst, &dlen); in update_ae()
/optee_os/core/include/crypto/
A Dcrypto.h318 TEE_Result crypto_rng_init(const void *data, size_t dlen);
334 const void *data, size_t dlen);

Completed in 61 milliseconds

12