Home
last modified time | relevance | path

Searched refs:key (Results 1 – 25 of 89) sorted by relevance

1234

/hal_nxp-3.5.0/mcux/mcux-sdk/components/css_pkc/src/comps/mcuxClKey/src/
DmcuxClKey.c25 mcuxClKey_Handle_t key, in MCUX_CSSL_FP_FUNCTION_DEF()
36 key->type = *type; in MCUX_CSSL_FP_FUNCTION_DEF()
37 key->protection = protection; in MCUX_CSSL_FP_FUNCTION_DEF()
38 key->pSrcKeyData = srcKeyData; in MCUX_CSSL_FP_FUNCTION_DEF()
39 key->srcAux.pData = srcAuxData; in MCUX_CSSL_FP_FUNCTION_DEF()
40 key->srcAux.slot = srcAuxSlot; in MCUX_CSSL_FP_FUNCTION_DEF()
41 key->dstKey.loadLocation = mcuxClKey_LoadLocation_NOTLOADED; in MCUX_CSSL_FP_FUNCTION_DEF()
49 mcuxClKey_Handle_t key, in MCUX_CSSL_FP_FUNCTION_DEF()
53 MCUX_CSSL_FP_FUNCTION_ENTRY(mcuxClKey_loadMemory, key->protection->protectionTokenLoad); in MCUX_CSSL_FP_FUNCTION_DEF()
56 key->dstKey.pData = (uint8_t *) dstData; in MCUX_CSSL_FP_FUNCTION_DEF()
[all …]
DmcuxClKey_Protection.c27 mcuxClKey_Status_Protected_t mcuxClKey_protect_fct_none(mcuxClKey_Handle_t key) in MCUX_CSSL_FP_FUNCTION_DEF()
31 if(mcuxClKey_LoadLocation_MEMORY == key->dstKey.loadLocation) in MCUX_CSSL_FP_FUNCTION_DEF()
34 size_t len = MCUXCLKEY_GET_KEYSIZE(key); in MCUX_CSSL_FP_FUNCTION_DEF()
36 MCUX_CSSL_FP_FUNCTION_CALL(resultLen, mcuxClMemory_copy(key->dstKey.pData, in MCUX_CSSL_FP_FUNCTION_DEF()
37 key->pSrcKeyData, in MCUX_CSSL_FP_FUNCTION_DEF()
50 mcuxClKey_Status_Protected_t mcuxClKey_protect_fct_ckdf(mcuxClKey_Handle_t key) in MCUX_CSSL_FP_FUNCTION_DEF()
54 mcuxClCss_KeyIndex_t key_idx_sk = (mcuxClCss_KeyIndex_t) key->srcAux.slot; in MCUX_CSSL_FP_FUNCTION_DEF()
55 mcuxClCss_KeyIndex_t key_idx_mack = (mcuxClCss_KeyIndex_t) key->dstKey.slot; in MCUX_CSSL_FP_FUNCTION_DEF()
56 mcuxClCss_KeyProp_t key_properties = key->dstKey.key_properties; in MCUX_CSSL_FP_FUNCTION_DEF()
62 key->srcAux.pData in MCUX_CSSL_FP_FUNCTION_DEF()
[all …]
/hal_nxp-3.5.0/mcux/mcux-sdk/components/css_pkc/src/comps/mcuxClKey/inc/internal/
DmcuxClKey_Internal.h32 #define MCUXCLKEY_GET_KEYSIZE(key) ((key)->type.size) argument
38 #define MCUXCLKEY_GET_ALGOID(key) ((key)->type.algoId & MCUXCLKEY_ALGO_ID_ALGO_MASK) argument
44 #define MCUXCLKEY_GET_KEYUSAGE(key) ((key)->type.algoId & MCUXCLKEY_ALGO_ID_USAGE_MASK) argument
50 #define MCUXCLKEY_GET_KEYSLOT(key) ((key)->dstKey.slot) argument
56 #define MCUXCLKEY_GET_KEYDATA(key) ((key)->dstKey.pData) argument
62 #define MCUXCLKEY_GET_KEYLOADLOCATION(key) ((key)->dstKey.loadLocation) argument
DmcuxClKey_Protection_Internal.h42 mcuxClKey_Handle_t key
57 mcuxClKey_Handle_t key
70 mcuxClKey_Handle_t key
85 mcuxClKey_Handle_t key
100 mcuxClKey_Handle_t key
/hal_nxp-3.5.0/mcux/mcux-sdk/components/css_pkc/src/comps/mcuxClMac/src/
DmcuxClCMac.c39 if (MCUXCLKEY_ALGO_ID_AES != MCUXCLKEY_GET_ALGOID(context->key)) in MCUX_CSSL_FP_FUNCTION_DEF()
45 if(mcuxClKey_LoadLocation_MEMORY == MCUXCLKEY_GET_KEYLOADLOCATION(context->key)) in MCUX_CSSL_FP_FUNCTION_DEF()
49 else if(mcuxClKey_LoadLocation_COPRO == MCUXCLKEY_GET_KEYLOADLOCATION(context->key)) in MCUX_CSSL_FP_FUNCTION_DEF()
70 (mcuxClCss_KeyIndex_t) MCUXCLKEY_GET_KEYSLOT(context->key), in MCUX_CSSL_FP_FUNCTION_DEF()
71 (uint8_t const *) MCUXCLKEY_GET_KEYDATA(context->key), in MCUX_CSSL_FP_FUNCTION_DEF()
72 (size_t) MCUXCLKEY_GET_KEYSIZE(context->key), in MCUX_CSSL_FP_FUNCTION_DEF()
143 (mcuxClCss_KeyIndex_t) MCUXCLKEY_GET_KEYSLOT(context->key), in MCUX_CSSL_FP_FUNCTION_DEF()
144 (uint8_t const *) MCUXCLKEY_GET_KEYDATA(context->key), in MCUX_CSSL_FP_FUNCTION_DEF()
145 (size_t) MCUXCLKEY_GET_KEYSIZE(context->key), in MCUX_CSSL_FP_FUNCTION_DEF()
200 if(mcuxClKey_LoadLocation_MEMORY == MCUXCLKEY_GET_KEYLOADLOCATION(context->key)) in MCUX_CSSL_FP_FUNCTION_DEF()
[all …]
DmcuxClMac.c28 const mcuxClKey_Handle_t key, in MCUX_CSSL_FP_FUNCTION_DEF()
38 context.key = (mcuxClKey_Descriptor_t*)key; in MCUX_CSSL_FP_FUNCTION_DEF()
48 const mcuxClKey_Handle_t key, in MCUX_CSSL_FP_FUNCTION_DEF()
52 context->key = (mcuxClKey_Descriptor_t*)key; in MCUX_CSSL_FP_FUNCTION_DEF()
/hal_nxp-3.5.0/mcux/mcux-sdk/drivers/ltc/
Dfsl_ltc_edma.h59 const uint8_t *key; /*!< Input key to use for forward AES cipher*/ member
122 const uint8_t *key,
145 const uint8_t *key,
168 const uint8_t *key,
191 const uint8_t *key,
224 const uint8_t *key,
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)
[all …]
Dfsl_ltc.h286 …onst uint8_t *plaintext, uint8_t *ciphertext, uint32_t size, const uint8_t *key, uint32_t keySize);
306 const uint8_t *key,
327 const uint8_t *key,
348 const uint8_t *key,
379 const uint8_t *key,
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)
421 const uint8_t *key,
[all …]
Dfsl_ltc_edma.c356 const uint8_t *key, in LTC_AES_EncryptEcbEDMA() argument
373 …retval = ltc_symmetric_update(base, key, (uint8_t)keySize, kLTC_AlgorithmAES, kLTC_ModeECB, kLTC_M… in LTC_AES_EncryptEcbEDMA()
409 const uint8_t *key, in LTC_AES_DecryptEcbEDMA() argument
427 …status = ltc_symmetric_update(base, key, (uint8_t)keySize, kLTC_AlgorithmAES, kLTC_ModeECB, kLTC_M… in LTC_AES_DecryptEcbEDMA()
470 const uint8_t *key, in LTC_AES_EncryptCbcEDMA() argument
487 …retval = ltc_symmetric_update(base, key, (uint8_t)keySize, kLTC_AlgorithmAES, kLTC_ModeCBC, kLTC_M… in LTC_AES_EncryptCbcEDMA()
530 const uint8_t *key, in LTC_AES_DecryptCbcEDMA() argument
555 …retval = ltc_symmetric_update(base, key, (uint8_t)keySize, kLTC_AlgorithmAES, kLTC_ModeCBC, kLTC_M… in LTC_AES_DecryptCbcEDMA()
607 const uint8_t *key, in LTC_AES_CryptCtrEDMA() argument
650 …retval = ltc_symmetric_update(base, key, (uint8_t)keySize, kLTC_AlgorithmAES, kLTC_ModeCTR, kLTC_M… in LTC_AES_CryptCtrEDMA()
[all …]
Dfsl_ltc.c377 static void ltc_set_key(LTC_Type *base, const uint8_t *key, uint8_t keySize) in ltc_set_key() argument
383 base->KEY[i] = ltc_get_word_from_unaligned(&key[i * sizeof(uint32_t)]); in ltc_set_key()
396 static void ltc_get_key(LTC_Type *base, uint8_t *key, uint8_t keySize) in ltc_get_key() argument
402 ltc_set_unaligned_from_word(base->KEY[i], &key[i * sizeof(uint32_t)]); in ltc_get_key()
497 const uint8_t *key, in ltc_symmetric_alg_state() argument
514 ltc_set_key(base, key, keySize); in ltc_symmetric_alg_state()
544 const uint8_t *key, in ltc_symmetric_update() argument
550 return ltc_symmetric_alg_state(base, key, keySize, alg, mode, enc, kLTC_ModeUpdate); in ltc_symmetric_update()
566 const uint8_t *key, in ltc_symmetric_final() argument
572 return ltc_symmetric_alg_state(base, key, keySize, alg, mode, enc, kLTC_ModeFinalize); in ltc_symmetric_final()
[all …]
/hal_nxp-3.5.0/mcux/mcux-sdk/components/internal_flash/evkbmimxrt1060/
Dfsl_adapter_flexspi_nor_flash.c305 uint32_t key; in HAL_FlashInit() local
318 key = DisableGlobalIRQ(); in HAL_FlashInit()
361 EnableGlobalIRQ(key); in HAL_FlashInit()
443 uint32_t key; in HAL_FlashProgram() local
508 key = DisableGlobalIRQ(); in HAL_FlashProgram()
514 EnableGlobalIRQ(key); in HAL_FlashProgram()
530 EnableGlobalIRQ(key); in HAL_FlashProgram()
537 EnableGlobalIRQ(key); in HAL_FlashProgram()
544 EnableGlobalIRQ(key); in HAL_FlashProgram()
595 uint32_t key; in HAL_FlashEraseSector() local
[all …]
/hal_nxp-3.5.0/mcux/mcux-sdk/components/internal_flash/
Dfsl_adapter_flexspi_nor_flash.c305 uint32_t key; in HAL_FlashInit() local
318 key = DisableGlobalIRQ(); in HAL_FlashInit()
361 EnableGlobalIRQ(key); in HAL_FlashInit()
443 uint32_t key; in HAL_FlashProgram() local
508 key = DisableGlobalIRQ(); in HAL_FlashProgram()
514 EnableGlobalIRQ(key); in HAL_FlashProgram()
530 EnableGlobalIRQ(key); in HAL_FlashProgram()
537 EnableGlobalIRQ(key); in HAL_FlashProgram()
544 EnableGlobalIRQ(key); in HAL_FlashProgram()
595 uint32_t key; in HAL_FlashEraseSector() local
[all …]
/hal_nxp-3.5.0/mcux/mcux-sdk/components/internal_flash/evkbmimxrt1170/
Dfsl_adapter_flexspi_nor_flash.c294 uint32_t key; in HAL_FlashInit() local
319 key = DisableGlobalIRQ(); in HAL_FlashInit()
362 EnableGlobalIRQ(key); in HAL_FlashInit()
453 uint32_t key; in HAL_FlashProgram() local
530 key = DisableGlobalIRQ(); in HAL_FlashProgram()
536 EnableGlobalIRQ(key); in HAL_FlashProgram()
552 EnableGlobalIRQ(key); in HAL_FlashProgram()
559 EnableGlobalIRQ(key); in HAL_FlashProgram()
566 EnableGlobalIRQ(key); in HAL_FlashProgram()
626 uint32_t key; in HAL_FlashEraseSector() local
[all …]
/hal_nxp-3.5.0/mcux/mcux-sdk/components/internal_flash/evkmimxrt1040/
Dfsl_adapter_flexspi_nor_flash.c297 uint32_t key; in HAL_FlashInit() local
319 key = DisableGlobalIRQ(); in HAL_FlashInit()
362 EnableGlobalIRQ(key); in HAL_FlashInit()
451 uint32_t key; in HAL_FlashProgram() local
516 key = DisableGlobalIRQ(); in HAL_FlashProgram()
522 EnableGlobalIRQ(key); in HAL_FlashProgram()
538 EnableGlobalIRQ(key); in HAL_FlashProgram()
545 EnableGlobalIRQ(key); in HAL_FlashProgram()
552 EnableGlobalIRQ(key); in HAL_FlashProgram()
603 uint32_t key; in HAL_FlashEraseSector() local
[all …]
/hal_nxp-3.5.0/mcux/mcux-sdk/components/internal_flash/octal_flash/RT595/
Dfsl_adapter_flexspi_nor_flash.c330 uint32_t key; in HAL_FlashInit() local
348 key = DisableGlobalIRQ(); in HAL_FlashInit()
384 EnableGlobalIRQ(key); in HAL_FlashInit()
466 uint32_t key; in HAL_FlashProgram() local
508 key = DisableGlobalIRQ(); in HAL_FlashProgram()
514 EnableGlobalIRQ(key); in HAL_FlashProgram()
530 EnableGlobalIRQ(key); in HAL_FlashProgram()
537 EnableGlobalIRQ(key); in HAL_FlashProgram()
548 EnableGlobalIRQ(key); in HAL_FlashProgram()
592 uint32_t key; in HAL_FlashEraseSector() local
[all …]
/hal_nxp-3.5.0/mcux/mcux-sdk/components/internal_flash/octal_flash/
Dfsl_adapter_flexspi_nor_flash.c347 uint32_t key; in HAL_FlashInit() local
365 key = DisableGlobalIRQ(); in HAL_FlashInit()
403 EnableGlobalIRQ(key); in HAL_FlashInit()
486 uint32_t key; in HAL_FlashProgram() local
529 key = DisableGlobalIRQ(); in HAL_FlashProgram()
535 EnableGlobalIRQ(key); in HAL_FlashProgram()
551 EnableGlobalIRQ(key); in HAL_FlashProgram()
558 EnableGlobalIRQ(key); in HAL_FlashProgram()
569 EnableGlobalIRQ(key); in HAL_FlashProgram()
614 uint32_t key; in HAL_FlashEraseSector() local
[all …]
/hal_nxp-3.5.0/mcux/mcux-sdk/middleware/mmcau/asm-cm4-cm7/src/
Dmmcau_des_functions.s40 # DES: Check key parity
42 # *key pointer to 64-bit DES key with parity bits
49 # int mmcau_des_chk_parity (const unsigned char *key)
59 # load the 64-bit key into the CAU's CA0/CA1 registers
124 ldmia r1, {r3-r4} @ copy key[0-1]
163 # *key pointer to 64-bit DES key with parity bits
170 # const unsigned char *key,
184 # r1 = scratch / *key (arg1) / MMCAU_PPB_INDIRECT+(STR+CA2)<<2
196 # load the 64-bit key into the CAU's CA0/CA1 registers
/hal_nxp-3.5.0/mcux/mcux-sdk/components/css_pkc/src/comps/mcuxClKey/inc/
DmcuxClKey_Functions.h56 mcuxClKey_Handle_t key,
79 mcuxClKey_Handle_t key,
98 mcuxClKey_Handle_t key,
116 mcuxClKey_Handle_t key
132 mcuxClKey_Handle_t key,
/hal_nxp-3.5.0/mcux/mcux-sdk/drivers/caam/
Dfsl_caam.h546 const uint8_t *key,
568 const uint8_t *key,
590 const uint8_t *key,
612 const uint8_t *key,
644 const uint8_t *key,
678 const uint8_t *key,
713 const uint8_t *key,
748 const uint8_t *key,
783 const uint8_t *key,
816 const uint8_t *key,
[all …]
Dfsl_caam.c724 const uint8_t *key,
740 const uint8_t *key, in caam_aes_gcm_non_blocking() argument
764 descriptor[2] = ADD_OFFSET((uint32_t)key); in caam_aes_gcm_non_blocking()
832 const uint8_t *key, in caam_aes_ccm_check_input_args() argument
845 if ((src == NULL) || (iv == NULL) || (key == NULL) || (dst == NULL)) in caam_aes_ccm_check_input_args()
961 const uint8_t *key,
977 const uint8_t *key, in caam_aes_ccm_non_blocking() argument
990 …status = caam_aes_ccm_check_input_args(base, input, iv, key, output, ivSize, aadSize, keySize, tag… in caam_aes_ccm_non_blocking()
1001 descriptor[2] = ADD_OFFSET((uint32_t)key); in caam_aes_ccm_non_blocking()
1115 const uint8_t *key, in CAAM_AES_EncryptTagCcmNonBlocking() argument
[all …]
/hal_nxp-3.5.0/mcux/mcux-sdk/middleware/mmcau/asm-cm0p/src/
Dmmcau_des_functions.s35 # Check key parity
38 # *key pointer to 64-bit DES key with parity bits
43 # int mmcau_des_chk_parity (const unsigned char *key)
49 # r0 | *key (arg0)
63 # load the 64-bit key into the CAU's CA0/CA1 regs
/hal_nxp-3.5.0/mcux/mcux-sdk/middleware/mmcau/
Dfsl_mmcau.c142 static status_t mmcau_DesCrypt(const uint8_t *in, const uint8_t *key, uint8_t *out, bool encrypt) in mmcau_DesCrypt() argument
146 if ((in != NULL) && (key != NULL) && (out != NULL)) in mmcau_DesCrypt()
158 keyWork = mmcau_align_const(key, keyAlign, MMCAU_DES_BLOCK_SIZE); in mmcau_DesCrypt()
257 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()
275 keyWork = mmcau_align_const(key, keyAlign, sizeof(keyAlign)); in MMCAU_AES_SetKey()
316 status_t MMCAU_DES_ChkParity(const uint8_t *key) in MMCAU_DES_ChkParity() argument
320 if (key != NULL) in MMCAU_DES_ChkParity()
326 keyWork = mmcau_align_const(key, keyAlign, sizeof(keyAlign)); in MMCAU_DES_ChkParity()
346 status_t MMCAU_DES_EncryptEcb(const uint8_t *in, const uint8_t *key, uint8_t *out) in MMCAU_DES_EncryptEcb() argument
[all …]
Dcau_api.h61 void cau_aes_set_key(const unsigned char *key, const int key_size, unsigned char *key_sch);
114 int cau_des_chk_parity(const unsigned char *key);
127 void cau_des_encrypt(const unsigned char *in, const unsigned char *key, unsigned char *out);
140 void cau_des_decrypt(const unsigned char *in, const unsigned char *key, unsigned char *out);
Dfsl_mmcau.h43 status_t MMCAU_AES_SetKey(const uint8_t *key, const size_t keySize, uint8_t *keySch);
97 status_t MMCAU_DES_ChkParity(const uint8_t *key);
110 status_t MMCAU_DES_EncryptEcb(const uint8_t *in, const uint8_t *key, uint8_t *out);
123 status_t MMCAU_DES_DecryptEcb(const uint8_t *in, const uint8_t *key, uint8_t *out);
/hal_nxp-3.5.0/mcux/mcux-sdk/components/internal_flash/hyper_flash/
Dfsl_adapter_flexspi_hyper_nor_flash.c490 uint32_t key; in HAL_FlashInit() local
510 key = DisableGlobalIRQ(); in HAL_FlashInit()
563 EnableGlobalIRQ(key); in HAL_FlashInit()
654 uint32_t key; in HAL_FlashProgram() local
720 key = DisableGlobalIRQ(); in HAL_FlashProgram()
746 EnableGlobalIRQ(key); in HAL_FlashProgram()
762 EnableGlobalIRQ(key); in HAL_FlashProgram()
769 EnableGlobalIRQ(key); in HAL_FlashProgram()
784 EnableGlobalIRQ(key); in HAL_FlashProgram()
836 uint32_t key; in HAL_FlashEraseSector() local
[all …]

1234