Home
last modified time | relevance | path

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

/optee_os-3.20.0/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.c380 const uint8_t *nonce, size_t nonce_len, in crypto_authenc_init() argument
384 return ae_ops(ctx)->init(ctx, mode, key, key_len, nonce, nonce_len, in crypto_authenc_init()
/optee_os-3.20.0/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.h64 const uint8_t *nonce, size_t nonce_len,
A Dcrypto_impl.h250 const uint8_t *nonce, size_t nonce_len,
/optee_os-3.20.0/lib/libmbedtls/mbedtls/library/
A Dctr_drbg.c364 size_t nonce_len ) in mbedtls_ctr_drbg_reseed_internal() argument
372 if( nonce_len > MBEDTLS_CTR_DRBG_MAX_SEED_INPUT - ctx->entropy_len ) in mbedtls_ctr_drbg_reseed_internal()
374 if( len > MBEDTLS_CTR_DRBG_MAX_SEED_INPUT - ctx->entropy_len - nonce_len ) in mbedtls_ctr_drbg_reseed_internal()
387 if( nonce_len != 0 ) in mbedtls_ctr_drbg_reseed_internal()
389 if( 0 != ctx->f_entropy( ctx->p_entropy, seed + seedlen, nonce_len ) ) in mbedtls_ctr_drbg_reseed_internal()
393 seedlen += nonce_len; in mbedtls_ctr_drbg_reseed_internal()
455 size_t nonce_len; in mbedtls_ctr_drbg_seed() local
475 nonce_len = ( ctx->reseed_counter >= 0 ? in mbedtls_ctr_drbg_seed()
488 nonce_len ) ) != 0 ) in mbedtls_ctr_drbg_seed()
/optee_os-3.20.0/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-3.20.0/core/lib/libtomcrypt/
A Dccm.c65 const uint8_t *nonce, size_t nonce_len, in crypto_aes_ccm_init() argument
85 if (nonce_len > TEE_CCM_NONCE_MAX_LENGTH) in crypto_aes_ccm_init()
103 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-3.20.0/core/drivers/
A Dstm32mp15_huk.c92 size_t nonce_len = sizeof(nonce); in aes_gcm_encrypt_uid() local
106 nonce_len, TEE_AES_BLOCK_SIZE, 0, uid_len); in aes_gcm_encrypt_uid()
/optee_os-3.20.0/scripts/
A Dsign_encrypt.py506 [enc_algo, flags, nonce_len,
511 if nonce_len != 12:
513 .format(nonce_len))
514 self.nonce = self.inf[offs:offs + nonce_len]
515 offs += nonce_len
589 [enc_algo, flags, nonce_len,
608 print(' iv_size: {} (bytes)'.format(nonce_len))
609 if nonce_len != NONCE_SIZE:
611 .format(nonce_len))
612 nonce = self.inf[offs:offs + nonce_len]
[all …]
/optee_os-3.20.0/core/include/tee/
A Dtee_svc_cryp.h62 size_t nonce_len, size_t tag_len,
/optee_os-3.20.0/lib/libutee/include/
A Dutee_syscalls.h136 size_t nonce_len, size_t tag_len, size_t aad_len,
/optee_os-3.20.0/core/tee/
A Dtee_svc_cryp.c3699 size_t nonce_len, size_t tag_len, in syscall_authenc_init() argument
3713 (uaddr_t)nonce, nonce_len); in syscall_authenc_init()
3729 key->key_size, nonce, nonce_len, tag_len, in syscall_authenc_init()

Completed in 47 milliseconds