/optee_os-3.20.0/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 | 380 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 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 | 64 const uint8_t *nonce, size_t nonce_len,
|
A D | crypto_impl.h | 250 const uint8_t *nonce, size_t nonce_len,
|
/optee_os-3.20.0/lib/libmbedtls/mbedtls/library/ |
A D | ctr_drbg.c | 364 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 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-3.20.0/core/lib/libtomcrypt/ |
A D | ccm.c | 65 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 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-3.20.0/core/drivers/ |
A D | stm32mp15_huk.c | 92 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 D | sign_encrypt.py | 506 [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 D | tee_svc_cryp.h | 62 size_t nonce_len, size_t tag_len,
|
/optee_os-3.20.0/lib/libutee/include/ |
A D | utee_syscalls.h | 136 size_t nonce_len, size_t tag_len, size_t aad_len,
|
/optee_os-3.20.0/core/tee/ |
A D | tee_svc_cryp.c | 3699 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()
|