Home
last modified time | relevance | path

Searched refs:keySize (Results 1 – 25 of 28) sorted by relevance

12

/hal_nxp-3.5.0/mcux/mcux-sdk/drivers/puf_v3/
Dfsl_puf_v3.c394 …GetKey(PUF_Type *base, puf_key_ctx_t *keyCtx, puf_key_dest_t keyDest, uint8_t *key, size_t keySize) in PUF_GetKey() argument
421 if (keySize & 0x7u) in PUF_GetKey()
426 else if ((keySize > 128u) && !((keySize == 256u) || (keySize == 384u) || (keySize == 512u))) in PUF_GetKey()
440 context[0] = PUF_KEY_OPERATION_CONTEXT_TYPE | ((keySize * 8u) & PUF_CONTEXT_KEY_LEN_MASK); in PUF_GetKey()
467 if (keySize >= sizeof(uint32_t)) in PUF_GetKey()
471 keySize -= sizeof(uint32_t); in PUF_GetKey()
495 PUF_Type *base, puf_key_ctx_t *keyCtx, size_t keySize, uint8_t *keyCode, size_t keyCodeSize) in PUF_WrapGeneratedRandom() argument
516 if (keySize & 0x7u) in PUF_WrapGeneratedRandom()
521 else if ((keySize > 128u) && !((keySize == 256u) || (keySize == 384u) || (keySize == 512u))) in PUF_WrapGeneratedRandom()
527 if (keyCodeSize < PUF_GET_KEY_CODE_SIZE_FOR_KEY_SIZE(keySize)) in PUF_WrapGeneratedRandom()
[all …]
Dfsl_puf_v3.h185 …etKey(PUF_Type *base, puf_key_ctx_t *keyCtx, puf_key_dest_t keyDest, uint8_t *key, size_t keySize);
200 PUF_Type *base, puf_key_ctx_t *keyCtx, size_t keySize, uint8_t *keyCode, size_t keyCodeSize);
232 …*base, puf_key_dest_t keyDest, uint8_t *keyCode, size_t keyCodeSize, uint8_t *key, size_t keySize);
/hal_nxp-3.5.0/mcux/mcux-sdk/drivers/hashcrypt/
Dfsl_hashcrypt.c397 size_t keySize = 0; in hashcrypt_aes_load_userKey() local
399 switch (handle->keySize) in hashcrypt_aes_load_userKey()
402 keySize = 16; in hashcrypt_aes_load_userKey()
405 keySize = 24; in hashcrypt_aes_load_userKey()
408 keySize = 32; in hashcrypt_aes_load_userKey()
414 if (keySize == 0U) in hashcrypt_aes_load_userKey()
418 hashcrypt_load_data(base, &handle->keyWord[0], keySize); in hashcrypt_aes_load_userKey()
1184 …PT_AES_SetKey(HASHCRYPT_Type *base, hashcrypt_handle_t *handle, const uint8_t *key, size_t keySize) in HASHCRYPT_AES_SetKey() argument
1188 switch (keySize) in HASHCRYPT_AES_SetKey()
1191 handle->keySize = kHASHCRYPT_Aes128; in HASHCRYPT_AES_SetKey()
[all …]
Dfsl_hashcrypt.h151 hashcrypt_aes_keysize_t keySize; member
244 …T_AES_SetKey(HASHCRYPT_Type *base, hashcrypt_handle_t *handle, const uint8_t *key, size_t keySize);
/hal_nxp-3.5.0/mcux/mcux-sdk/drivers/iee/
Dfsl_iee.c65 config->keySize = kIEE_AesCTR128XTS256; in IEE_GetDefaultConfig()
81 … IEE_REGATTR_BYP(config->bypass) | IEE_REGATTR_MD(config->mode) | IEE_REGATTR_KS(config->keySize); in IEE_SetRegionConfig()
99 … IEE_Type *base, iee_region_t region, iee_aes_key_num_t keyNum, const uint8_t *key, size_t keySize) in IEE_SetRegionKey() argument
118 while (keySize >= sizeof(uint32_t)) in IEE_SetRegionKey()
121 keySize -= sizeof(uint32_t); in IEE_SetRegionKey()
Dfsl_iee.h89 iee_aes_key_size_t keySize; /*!< size of AES key */ member
147 …IEE_Type *base, iee_region_t region, iee_aes_key_num_t keyNum, const uint8_t *key, size_t keySize);
/hal_nxp-3.5.0/mcux/mcux-sdk/drivers/ltc/
Dfsl_ltc.h270 …nerateDecryptKey(LTC_Type *base, const uint8_t *encryptKey, uint8_t *decryptKey, uint32_t keySize);
286 …onst uint8_t *plaintext, uint8_t *ciphertext, uint32_t size, const uint8_t *key, uint32_t keySize);
307 uint32_t keySize,
328 uint32_t keySize);
349 uint32_t keySize,
380 uint32_t keySize,
385 #define LTC_AES_DecryptCtr(base, input, output, size, counter, key, keySize, counterlast, szLeft) \ argument
386 LTC_AES_CryptCtr(base, input, output, size, counter, key, keySize, counterlast, szLeft)
389 #define LTC_AES_EncryptCtr(base, input, output, size, counter, key, keySize, counterlast, szLeft) \ argument
390 LTC_AES_CryptCtr(base, input, output, size, counter, key, keySize, counterlast, szLeft)
[all …]
Dfsl_ltc.c195 bool ltc_check_key_size(const uint32_t keySize) in ltc_check_key_size() argument
197 return ((keySize == 16u) in ltc_check_key_size()
199 || ((keySize == 24u)) in ltc_check_key_size()
202 || ((keySize == 32u)) in ltc_check_key_size()
377 static void ltc_set_key(LTC_Type *base, const uint8_t *key, uint8_t keySize) in ltc_set_key() argument
381 for (i = 0; i < ((uint32_t)keySize / 4u); i++) in ltc_set_key()
396 static void ltc_get_key(LTC_Type *base, uint8_t *key, uint8_t keySize) in ltc_get_key() argument
400 for (i = 0; i < ((uint32_t)keySize / 4U); i++) in ltc_get_key()
498 uint8_t keySize, in ltc_symmetric_alg_state() argument
514 ltc_set_key(base, key, keySize); in ltc_symmetric_alg_state()
[all …]
Dfsl_ltc_edma.h60 uint32_t keySize; /*!< Size of the input key, in bytes. Must be 16, 24, or 32.*/ member
123 uint32_t keySize);
146 uint32_t keySize,
169 uint32_t keySize);
192 uint32_t keySize,
225 uint32_t keySize,
230 #define LTC_AES_DecryptCtrEDMA(base, handle, input, output, size, counter, key, keySize, counterlas… argument
231 …LTC_AES_CryptCtrEDMA(base, handle, input, output, size, counter, key, keySize, counterlast, szLeft)
234 #define LTC_AES_EncryptCtrEDMA(base, handle, input, output, size, counter, key, keySize, counterlas… argument
235 …LTC_AES_CryptCtrEDMA(base, handle, input, output, size, counter, key, keySize, counterlast, szLeft)
Dfsl_ltc_edma.c357 uint32_t keySize) in LTC_AES_EncryptEcbEDMA() argument
361 if (((uint32_t)(ltc_check_key_size(keySize)) == 0U) || (size < 16u) || in LTC_AES_EncryptEcbEDMA()
373 …retval = ltc_symmetric_update(base, key, (uint8_t)keySize, kLTC_AlgorithmAES, kLTC_ModeECB, kLTC_M… in LTC_AES_EncryptEcbEDMA()
410 uint32_t keySize, in LTC_AES_DecryptEcbEDMA() argument
415 if (((uint32_t)(ltc_check_key_size(keySize)) == 0u) || (size < 16u) || in LTC_AES_DecryptEcbEDMA()
427 …status = ltc_symmetric_update(base, key, (uint8_t)keySize, kLTC_AlgorithmAES, kLTC_ModeECB, kLTC_M… in LTC_AES_DecryptEcbEDMA()
471 uint32_t keySize) in LTC_AES_EncryptCbcEDMA() argument
475 if (!(ltc_check_key_size(keySize)) || (size < 16u) || in LTC_AES_EncryptCbcEDMA()
487 …retval = ltc_symmetric_update(base, key, (uint8_t)keySize, kLTC_AlgorithmAES, kLTC_ModeCBC, kLTC_M… in LTC_AES_EncryptCbcEDMA()
531 uint32_t keySize, in LTC_AES_DecryptCbcEDMA() argument
[all …]
/hal_nxp-3.5.0/mcux/mcux-sdk/drivers/caam/
Dfsl_caam.h512 size_t keySize);
547 size_t keySize);
569 size_t keySize);
591 size_t keySize);
613 size_t keySize);
645 size_t keySize,
679 size_t keySize,
714 size_t keySize,
749 size_t keySize,
784 size_t keySize,
[all …]
Dfsl_caam.c423 bool caam_check_key_size(const uint32_t keySize);
424 bool caam_check_key_size(const uint32_t keySize) in caam_check_key_size() argument
426 return ((keySize == 16u) || ((keySize == 24u)) || ((keySize == 32u))); in caam_check_key_size()
725 size_t keySize,
741 size_t keySize, in caam_aes_gcm_non_blocking() argument
763 descriptor[1] |= (keySize & DESC_KEY_SIZE_MASK); in caam_aes_gcm_non_blocking()
836 size_t keySize, in caam_aes_ccm_check_input_args() argument
863 if (!caam_check_key_size(keySize)) in caam_aes_ccm_check_input_args()
962 size_t keySize,
978 size_t keySize, in caam_aes_ccm_non_blocking() argument
[all …]
/hal_nxp-3.5.0/mcux/mcux-sdk/drivers/puf/
Dfsl_puf.c439 …PUF_Type *base, puf_key_index_register_t keyIndex, size_t keySize, uint8_t *keyCode, size_t keyCod… in PUF_SetIntrinsicKey() argument
458 …if ((keySize < (uint32_t)kPUF_KeySizeMin) || (keySize > (uint32_t)kPUF_KeySizeMax) || (0U != (keyS… in PUF_SetIntrinsicKey()
464 if (keyCodeSize < PUF_GET_KEY_CODE_SIZE_FOR_KEY_SIZE(keySize)) in PUF_SetIntrinsicKey()
477 base->KEYSIZE = keySize >> 3; in PUF_SetIntrinsicKey()
839 …UF_GetKey(PUF_Type *base, const uint8_t *keyCode, size_t keyCodeSize, uint8_t *key, size_t keySize) in PUF_GetKey() argument
866 if (keyCodeSize < PUF_GET_KEY_CODE_SIZE_FOR_KEY_SIZE(keySize)) in PUF_GetKey()
909 if (keySize >= sizeof(uint32_t)) in PUF_GetKey()
913 keySize -= sizeof(uint32_t); in PUF_GetKey()
Dfsl_puf.h210 …PUF_Type *base, puf_key_index_register_t keyIndex, size_t keySize, uint8_t *keyCode, size_t keyCod…
250 …F_GetKey(PUF_Type *base, const uint8_t *keyCode, size_t keyCodeSize, uint8_t *key, size_t keySize);
/hal_nxp-3.5.0/mcux/mcux-sdk/middleware/mmcau/
Dfsl_mmcau.c257 status_t MMCAU_AES_SetKey(const uint8_t *key, const size_t keySize, uint8_t *keySch) in MMCAU_AES_SetKey() argument
262 …if (((keySize != 16u) && (keySize != 24u) && (keySize != 32u)) || (NULL == key) || (NULL == keySch… in MMCAU_AES_SetKey()
279 cau_aes_set_key(keyWork, ((int)keySize * 8), keySchWork); in MMCAU_AES_SetKey()
284 if (keySize == 16u) in MMCAU_AES_SetKey()
288 else if (keySize == 24u) in MMCAU_AES_SetKey()
Dfsl_mmcau.h43 status_t MMCAU_AES_SetKey(const uint8_t *key, const size_t keySize, uint8_t *keySch);
/hal_nxp-3.5.0/mcux/mcux-sdk/drivers/bee/
Dfsl_bee.c175 status_t BEE_SetRegionKey(BEE_Type *base, bee_region_t region, const uint8_t *key, size_t keySize) in BEE_SetRegionKey() argument
180 if ((0U != ((uintptr_t)key & 0x3u)) || (keySize != 16U)) in BEE_SetRegionKey()
194 aligned_memcpy((uint32_t *)(uint32_t)&base->AES_KEY0_W0, key, keySize); in BEE_SetRegionKey()
Dfsl_bee.h212 status_t BEE_SetRegionKey(BEE_Type *base, bee_region_t region, const uint8_t *key, size_t keySize);
/hal_nxp-3.5.0/mcux/mcux-sdk/drivers/cau3/
Dfsl_cau3.h244 size_t keySize,
323 status_t CAU3_AES_SetKey(CAU3_Type *base, cau3_handle_t *handle, const uint8_t *key, size_t keySize
421 …tus_t CAU3_TDES_SetKey(CAU3_Type *base, cau3_handle_t *handle, const uint8_t *key, size_t keySize);
555 …ACHA20_POLY1305_SetKey(CAU3_Type *base, cau3_handle_t *handle, const uint8_t *key, size_t keySize);
Dfsl_cau3.c72 uint32_t keySize; /*!< key size in bytes, 0 = invalid context */ member
803 … CAU3_Type *base, const uint8_t *key, size_t keySize, uint32_t keySlot, cau3_task_done_t taskDone);
1074 … CAU3_Type *base, const uint8_t *key, size_t keySize, uint32_t keySlot, cau3_task_done_t taskDone) in cau3_load_key() argument
1089 base->CC_R[17] = keySize; /* IV size */ in cau3_load_key()
1367 status_t CAU3_LoadSpecialKeyContext(CAU3_Type *base, size_t keySize, cau3_key_slot_t keySlot, cau3_… in CAU3_LoadSpecialKeyContext() argument
1381 base->CC_R[16] = keySize; /* keySize [8,16,24,32] */ in CAU3_LoadSpecialKeyContext()
1536 status_t CAU3_AES_SetKey(CAU3_Type *base, cau3_handle_t *handle, const uint8_t *key, size_t keySize) in CAU3_AES_SetKey() argument
1547 if ((keySize != 16U) && (keySize != 32U)) in CAU3_AES_SetKey()
1552 cau3KeyCtx.keySize = keySize; in CAU3_AES_SetKey()
1556 while (keySize != 0U) in CAU3_AES_SetKey()
[all …]
/hal_nxp-3.5.0/mcux/mcux-sdk/drivers/dcp/
Dfsl_dcp.c206 size_t keySize = 16u; in dcp_aes_set_sram_based_key() local
207 while (keySize != 0U) in dcp_aes_set_sram_based_key()
209 keySize -= sizeof(uint32_t); in dcp_aes_set_sram_based_key()
316 status_t DCP_AES_SetKey(DCP_Type *base, dcp_handle_t *handle, const uint8_t *key, size_t keySize) in DCP_AES_SetKey() argument
337 if (keySize != 16U) in DCP_AES_SetKey()
344 while (keySize != 0U) in DCP_AES_SetKey()
346 keySize -= sizeof(uint32_t); in DCP_AES_SetKey()
Dfsl_dcp.h326 status_t DCP_AES_SetKey(DCP_Type *base, dcp_handle_t *handle, const uint8_t *key, size_t keySize);
/hal_nxp-3.5.0/mcux/mcux-sdk/drivers/aes/
Dfsl_aes.c164 static status_t aes_load_key(AES_Type *base, const uint8_t *key, size_t keySize) in aes_load_key() argument
171 switch (keySize) in aes_load_key()
372 status_t AES_SetKey(AES_Type *base, const uint8_t *key, size_t keySize) in AES_SetKey() argument
374 return aes_load_key(base, key, keySize); in AES_SetKey()
Dfsl_aes.h69 status_t AES_SetKey(AES_Type *base, const uint8_t *key, size_t keySize);
/hal_nxp-3.5.0/mcux/mcux-sdk/devices/LPC54S005/
DLPC54S005.h19809 uint32_t (*aesLoadKeyFromSW)(uint32_t keySize, uint32_t *key);

12