Home
last modified time | relevance | path

Searched refs:nonce_len (Results 1 – 16 of 16) sorted by relevance

/optee_os/core/crypto/
A Daes-gcm.c72 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 Dcrypto.c377 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 Dctr_drbg.c367 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 Dinternal_aes-gcm.h58 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 Dcrypto.h63 const uint8_t *nonce, size_t nonce_len,
A Dcrypto_impl.h244 const uint8_t *nonce, size_t nonce_len,
/optee_os/core/drivers/crypto/crypto_api/authenc/
A Dauthenc.c78 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 Dccm.c64 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 Dgcm.c63 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 Dtee_svc_cryp.h61 size_t nonce_len, size_t tag_len,
/optee_os/out/arm/export-ta_arm64/host_include/
A Dutee_syscalls.h135 size_t nonce_len, size_t tag_len, size_t aad_len,
/optee_os/out/arm/export-ta_arm64/include/
A Dutee_syscalls.h135 size_t nonce_len, size_t tag_len, size_t aad_len,
/optee_os/lib/libutee/include/
A Dutee_syscalls.h135 size_t nonce_len, size_t tag_len, size_t aad_len,
/optee_os/out/arm/export-ta_arm32/host_include/
A Dutee_syscalls.h135 size_t nonce_len, size_t tag_len, size_t aad_len,
/optee_os/out/arm/export-ta_arm32/include/
A Dutee_syscalls.h135 size_t nonce_len, size_t tag_len, size_t aad_len,
/optee_os/core/tee/
A Dtee_svc_cryp.c3216 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()

Completed in 21 milliseconds