/optee_os/core/crypto/ |
A D | aes-gcm.c | 72 size_t nonce_len, size_t tag_len) in __gcm_init() argument 84 if (nonce_len == (96 / 8)) { in __gcm_init() 85 memcpy(state->ctr, nonce, nonce_len); in __gcm_init() 88 ghash_update_pad_zero(state, nonce, nonce_len); in __gcm_init() 89 ghash_update_lengths(state, 0, nonce_len); in __gcm_init() 127 size_t nonce_len, size_t tag_len) in internal_aes_gcm_init() argument 137 return __gcm_init(&ctx->state, ek, mode, nonce, nonce_len, tag_len); in internal_aes_gcm_init() 371 const void *nonce, size_t nonce_len, in internal_aes_gcm_enc() argument 394 const void *nonce, size_t nonce_len, in internal_aes_gcm_dec() argument 463 const uint8_t *nonce, size_t nonce_len, in aes_gcm_init() argument [all …]
|
A D | crypto.c | 377 const uint8_t *nonce, size_t nonce_len, in crypto_authenc_init() argument 381 return ae_ops(ctx)->init(ctx, mode, key, key_len, nonce, nonce_len, in crypto_authenc_init()
|
/optee_os/lib/libmbedtls/mbedtls/library/ |
A D | ctr_drbg.c | 367 size_t nonce_len ) in mbedtls_ctr_drbg_reseed_internal() argument 375 if( nonce_len > MBEDTLS_CTR_DRBG_MAX_SEED_INPUT - ctx->entropy_len ) in mbedtls_ctr_drbg_reseed_internal() 377 if( len > MBEDTLS_CTR_DRBG_MAX_SEED_INPUT - ctx->entropy_len - nonce_len ) in mbedtls_ctr_drbg_reseed_internal() 390 if( nonce_len != 0 ) in mbedtls_ctr_drbg_reseed_internal() 392 if( 0 != ctx->f_entropy( ctx->p_entropy, seed + seedlen, nonce_len ) ) in mbedtls_ctr_drbg_reseed_internal() 396 seedlen += nonce_len; in mbedtls_ctr_drbg_reseed_internal() 458 size_t nonce_len; in mbedtls_ctr_drbg_seed() local 478 nonce_len = ( ctx->reseed_counter >= 0 ? in mbedtls_ctr_drbg_seed() 491 nonce_len ) ) != 0 ) in mbedtls_ctr_drbg_seed()
|
/optee_os/core/include/crypto/ |
A D | internal_aes-gcm.h | 58 size_t nonce_len, size_t tag_len); 76 const void *nonce, size_t nonce_len, 82 const void *nonce, size_t nonce_len,
|
A D | crypto.h | 63 const uint8_t *nonce, size_t nonce_len,
|
A D | crypto_impl.h | 244 const uint8_t *nonce, size_t nonce_len,
|
/optee_os/core/drivers/crypto/crypto_api/authenc/ |
A D | authenc.c | 78 size_t nonce_len, size_t tag_len, size_t aad_len, in authenc_init() argument 84 if ((!key && key_len) || (!nonce && nonce_len)) { in authenc_init() 87 CRYPTO_TRACE("nonce @%p-%zu bytes", nonce, nonce_len); in authenc_init() 98 .nonce.length = nonce_len, in authenc_init()
|
/optee_os/core/lib/libtomcrypt/ |
A D | ccm.c | 64 const uint8_t *nonce, size_t nonce_len, in crypto_aes_ccm_init() argument 84 if (nonce_len > TEE_CCM_NONCE_MAX_LENGTH) in crypto_aes_ccm_init() 98 ltc_res = ccm_add_nonce(&ccm->ctx, nonce, nonce_len); in crypto_aes_ccm_init()
|
A D | gcm.c | 63 const uint8_t *nonce, size_t nonce_len, in crypto_aes_gcm_init() argument 83 ltc_res = gcm_add_iv(&gcm->ctx, nonce, nonce_len); in crypto_aes_gcm_init()
|
/optee_os/core/include/tee/ |
A D | tee_svc_cryp.h | 61 size_t nonce_len, size_t tag_len,
|
/optee_os/out/arm/export-ta_arm64/host_include/ |
A D | utee_syscalls.h | 135 size_t nonce_len, size_t tag_len, size_t aad_len,
|
/optee_os/out/arm/export-ta_arm64/include/ |
A D | utee_syscalls.h | 135 size_t nonce_len, size_t tag_len, size_t aad_len,
|
/optee_os/lib/libutee/include/ |
A D | utee_syscalls.h | 135 size_t nonce_len, size_t tag_len, size_t aad_len,
|
/optee_os/out/arm/export-ta_arm32/host_include/ |
A D | utee_syscalls.h | 135 size_t nonce_len, size_t tag_len, size_t aad_len,
|
/optee_os/out/arm/export-ta_arm32/include/ |
A D | utee_syscalls.h | 135 size_t nonce_len, size_t tag_len, size_t aad_len,
|
/optee_os/core/tee/ |
A D | tee_svc_cryp.c | 3216 size_t nonce_len, size_t tag_len, in syscall_authenc_init() argument 3228 (uaddr_t)nonce, nonce_len); in syscall_authenc_init() 3244 key->key_size, nonce, nonce_len, tag_len, in syscall_authenc_init()
|