Lines Matching refs:key
142 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
348 return mmcau_DesCrypt(in, key, out, true /* 1 for encryption */); in MMCAU_DES_EncryptEcb()
351 status_t MMCAU_DES_DecryptEcb(const uint8_t *in, const uint8_t *key, uint8_t *out) in MMCAU_DES_DecryptEcb() argument
353 return mmcau_DesCrypt(in, key, out, false /* 0 for decryption */); in MMCAU_DES_DecryptEcb()