Home
last modified time | relevance | path

Searched refs:iv_len (Results 1 – 25 of 58) sorted by relevance

123

/optee_os/lib/libmbedtls/mbedtls/library/
A Dccm.c149 const unsigned char *iv, size_t iv_len, in ccm_auth_crypt() argument
175 if( iv_len < 7 || iv_len > 13 ) in ccm_auth_crypt()
181 q = 16 - 1 - (unsigned char) iv_len; in ccm_auth_crypt()
200 memcpy( b + 1, iv, iv_len ); in ccm_auth_crypt()
258 memcpy( ctr + 1, iv, iv_len ); in ccm_auth_crypt()
259 memset( ctr + 1 + iv_len, 0, q ); in ccm_auth_crypt()
321 const unsigned char *iv, size_t iv_len, in mbedtls_ccm_star_encrypt_and_tag() argument
337 const unsigned char *iv, size_t iv_len, in mbedtls_ccm_encrypt_and_tag() argument
359 const unsigned char *iv, size_t iv_len, in mbedtls_ccm_star_auth_decrypt() argument
377 iv, iv_len, add, add_len, in mbedtls_ccm_star_auth_decrypt()
[all …]
A Dcipher.c412 size_t iv_len ) in mbedtls_cipher_set_iv() argument
417 CIPHER_VALIDATE_RET( iv_len == 0 || iv != NULL ); in mbedtls_cipher_set_iv()
431 if( iv_len > MBEDTLS_MAX_IV_LENGTH ) in mbedtls_cipher_set_iv()
435 actual_iv_size = iv_len; in mbedtls_cipher_set_iv()
441 if( actual_iv_size > iv_len ) in mbedtls_cipher_set_iv()
1246 CIPHER_VALIDATE_RET( iv_len == 0 || iv != NULL ); in mbedtls_cipher_crypt()
1360 iv, iv_len, in mbedtls_cipher_aead_encrypt()
1440 iv, iv_len, in mbedtls_cipher_aead_decrypt()
1523 CIPHER_VALIDATE_RET( iv_len == 0 || iv != NULL ); in mbedtls_cipher_auth_encrypt()
1546 CIPHER_VALIDATE_RET( iv_len == 0 || iv != NULL ); in mbedtls_cipher_auth_decrypt()
[all …]
A Dgcm.c274 size_t iv_len, in mbedtls_gcm_starts() argument
290 if( iv_len == 0 || in mbedtls_gcm_starts()
291 ( (uint64_t) iv_len ) >> 61 != 0 || in mbedtls_gcm_starts()
304 if( iv_len == 12 ) in mbedtls_gcm_starts()
306 memcpy( ctx->y, iv, iv_len ); in mbedtls_gcm_starts()
312 PUT_UINT32_BE( iv_len * 8, work_buf, 12 ); in mbedtls_gcm_starts()
315 while( iv_len > 0 ) in mbedtls_gcm_starts()
317 use_len = ( iv_len < 16 ) ? iv_len : 16; in mbedtls_gcm_starts()
324 iv_len -= use_len; in mbedtls_gcm_starts()
466 size_t iv_len, in mbedtls_gcm_crypt_and_tag() argument
[all …]
A Dssl_tls13_keys.c200 size_t slen, size_t key_len, size_t iv_len, in mbedtls_ssl_tls1_3_make_traffic_keys() argument
225 keys->client_write_iv, iv_len ); in mbedtls_ssl_tls1_3_make_traffic_keys()
233 keys->server_write_iv, iv_len ); in mbedtls_ssl_tls1_3_make_traffic_keys()
238 keys->iv_len = iv_len; in mbedtls_ssl_tls1_3_make_traffic_keys()
/optee_os/lib/libmbedtls/mbedtls/include/mbedtls/
A Dccm.h159 const unsigned char *iv, size_t iv_len,
207 const unsigned char *iv, size_t iv_len,
244 const unsigned char *iv, size_t iv_len,
289 const unsigned char *iv, size_t iv_len,
A Dgcm.h172 size_t iv_len,
216 size_t iv_len,
244 size_t iv_len,
A Dcipher.h713 size_t iv_len );
880 const unsigned char *iv, size_t iv_len,
938 const unsigned char *iv, size_t iv_len,
997 const unsigned char *iv, size_t iv_len,
1053 const unsigned char *iv, size_t iv_len,
1109 const unsigned char *iv, size_t iv_len,
/optee_os/out/arm/export-ta_arm64/include/mbedtls/
A Dccm.h159 const unsigned char *iv, size_t iv_len,
207 const unsigned char *iv, size_t iv_len,
244 const unsigned char *iv, size_t iv_len,
289 const unsigned char *iv, size_t iv_len,
A Dgcm.h172 size_t iv_len,
216 size_t iv_len,
244 size_t iv_len,
A Dcipher.h713 size_t iv_len );
880 const unsigned char *iv, size_t iv_len,
938 const unsigned char *iv, size_t iv_len,
997 const unsigned char *iv, size_t iv_len,
1053 const unsigned char *iv, size_t iv_len,
1109 const unsigned char *iv, size_t iv_len,
/optee_os/out/arm/export-ta_arm32/host_include/mbedtls/
A Dccm.h159 const unsigned char *iv, size_t iv_len,
207 const unsigned char *iv, size_t iv_len,
244 const unsigned char *iv, size_t iv_len,
289 const unsigned char *iv, size_t iv_len,
A Dgcm.h172 size_t iv_len,
216 size_t iv_len,
244 size_t iv_len,
A Dcipher.h713 size_t iv_len );
880 const unsigned char *iv, size_t iv_len,
938 const unsigned char *iv, size_t iv_len,
997 const unsigned char *iv, size_t iv_len,
1053 const unsigned char *iv, size_t iv_len,
1109 const unsigned char *iv, size_t iv_len,
/optee_os/out/arm/export-ta_arm32/include/mbedtls/
A Dccm.h159 const unsigned char *iv, size_t iv_len,
207 const unsigned char *iv, size_t iv_len,
244 const unsigned char *iv, size_t iv_len,
289 const unsigned char *iv, size_t iv_len,
A Dgcm.h172 size_t iv_len,
216 size_t iv_len,
244 size_t iv_len,
A Dcipher.h713 size_t iv_len );
880 const unsigned char *iv, size_t iv_len,
938 const unsigned char *iv, size_t iv_len,
997 const unsigned char *iv, size_t iv_len,
1053 const unsigned char *iv, size_t iv_len,
1109 const unsigned char *iv, size_t iv_len,
/optee_os/out/arm/export-ta_arm64/host_include/mbedtls/
A Dccm.h159 const unsigned char *iv, size_t iv_len,
207 const unsigned char *iv, size_t iv_len,
244 const unsigned char *iv, size_t iv_len,
289 const unsigned char *iv, size_t iv_len,
A Dgcm.h172 size_t iv_len,
216 size_t iv_len,
244 size_t iv_len,
A Dcipher.h713 size_t iv_len );
880 const unsigned char *iv, size_t iv_len,
938 const unsigned char *iv, size_t iv_len,
997 const unsigned char *iv, size_t iv_len,
1053 const unsigned char *iv, size_t iv_len,
1109 const unsigned char *iv, size_t iv_len,
/optee_os/core/drivers/crypto/crypto_api/cipher/
A Dcipher.c77 size_t key2_len, const uint8_t *iv, size_t iv_len) in cipher_init() argument
82 if ((!key1 && key1_len) || (!key2 && key2_len) || (!iv && iv_len)) { in cipher_init()
86 CRYPTO_TRACE("iv @%p-%zu bytes", iv, iv_len); in cipher_init()
99 .iv.length = iv_len, in cipher_init()
/optee_os/core/include/drivers/
A Dzynqmp_csu_aes.h29 const void *iv, size_t iv_len,
35 const void *iv, size_t iv_len,
/optee_os/core/lib/libtomcrypt/
A Dxts.c40 size_t iv_len __unused) in ltc_xts_init()
47 if (iv_len != sizeof(c->tweak)) in ltc_xts_init()
54 if ((int)iv_len != cipher_descriptor[c->cipher_idx]->block_length) in ltc_xts_init()
/optee_os/core/drivers/crypto/se050/glue/
A Duser.c66 uint8_t *iv, size_t iv_len, in glue_cipher_one_go() argument
70 if (crypto_cipher_init(cipher, mode, key, key_len, NULL, 0, iv, iv_len)) in glue_cipher_one_go()
/optee_os/core/pta/tests/
A Daes_perf.c61 size_t iv_len = 0; in init_ctx() local
95 iv_len = sizeof(aes_iv); in init_ctx()
99 key2_len, iv, iv_len); in init_ctx()
/optee_os/core/drivers/
A Dzynqmp_csu_aes.c281 const void *iv, size_t iv_len, in zynqmp_csu_aes_decrypt_data() argument
296 if (iv_len != ZYNQMP_GCM_IV_SIZE) { in zynqmp_csu_aes_decrypt_data()
333 const void *iv, size_t iv_len, in zynqmp_csu_aes_encrypt_data() argument
348 if (iv_len != ZYNQMP_GCM_IV_SIZE) { in zynqmp_csu_aes_encrypt_data()

Completed in 47 milliseconds

123