Lines Matching refs:key
87 …int_fast16_t AESCMACLPF3_setupSegmentedOperation(AESCMACLPF3_Object *object, const CryptoKey *key);
90 const CryptoKey *key,
99 const CryptoKey *key,
256 …if (object->common.key.encoding == CryptoKey_PLAINTEXT || object->common.key.encoding == CryptoKey… in AESCMACLPF3_getResult()
267 else if (object->common.key.encoding == CryptoKey_PLAINTEXT_HSM) in AESCMACLPF3_getResult()
316 AESCommonLPF3_loadKey(&object->common.key); in AESCMACLPF3_startOperation()
529 const CryptoKey *key, in AESCMACLPF3_oneStepOperation() argument
534 DebugP_assert(key); in AESCMACLPF3_oneStepOperation()
585 object->common.key = *key; in AESCMACLPF3_oneStepOperation()
593 …if (object->common.key.encoding == CryptoKey_PLAINTEXT || object->common.key.encoding == CryptoKey… in AESCMACLPF3_oneStepOperation()
667 …t_fast16_t AESCMAC_oneStepSign(AESCMAC_Handle handle, AESCMAC_Operation *operation, CryptoKey *key) in AESCMAC_oneStepSign() argument
671 if (key->encoding == CryptoKey_PLAINTEXT || key->encoding == CryptoKey_KEYSTORE) in AESCMAC_oneStepSign()
673 status = AESCMACLPF3_oneStepOperation(handle, operation, key, AESCMAC_OP_TYPE_SIGN); in AESCMAC_oneStepSign()
676 else if (key->encoding == CryptoKey_PLAINTEXT_HSM) in AESCMAC_oneStepSign()
678 status = AESCMACLPF3HSM_oneStepOperation(handle, operation, key, AESCMAC_OP_TYPE_SIGN); in AESCMAC_oneStepSign()
691 …fast16_t AESCMAC_oneStepVerify(AESCMAC_Handle handle, AESCMAC_Operation *operation, CryptoKey *key) in AESCMAC_oneStepVerify() argument
695 if (key->encoding == CryptoKey_PLAINTEXT || key->encoding == CryptoKey_KEYSTORE) in AESCMAC_oneStepVerify()
697 status = AESCMACLPF3_oneStepOperation(handle, operation, key, AESCMAC_OP_TYPE_VERIFY); in AESCMAC_oneStepVerify()
700 else if (key->encoding == CryptoKey_PLAINTEXT_HSM) in AESCMAC_oneStepVerify()
702 status = AESCMACLPF3HSM_oneStepOperation(handle, operation, key, AESCMAC_OP_TYPE_VERIFY); in AESCMAC_oneStepVerify()
715 … int_fast16_t AESCMACLPF3_setupSegmentedOperation(AESCMACLPF3_Object *object, const CryptoKey *key) in AESCMACLPF3_setupSegmentedOperation() argument
717 DebugP_assert(key); in AESCMACLPF3_setupSegmentedOperation()
725 if (key->encoding == CryptoKey_PLAINTEXT) in AESCMACLPF3_setupSegmentedOperation()
728 status = AESCommonLPF3_setupSegmentedOperation(&object->common, key); in AESCMACLPF3_setupSegmentedOperation()
731 else if (key->encoding == CryptoKey_PLAINTEXT_HSM) in AESCMACLPF3_setupSegmentedOperation()
740 object->common.key = *key; in AESCMACLPF3_setupSegmentedOperation()
774 int_fast16_t AESCMAC_setupSign(AESCMAC_Handle handle, const CryptoKey *key) in AESCMAC_setupSign() argument
780 int_fast16_t status = AESCMACLPF3_setupSegmentedOperation(object, key); in AESCMAC_setupSign()
786 if (key->encoding == CryptoKey_PLAINTEXT_HSM) in AESCMAC_setupSign()
804 int_fast16_t AESCMAC_setupVerify(AESCMAC_Handle handle, const CryptoKey *key) in AESCMAC_setupVerify() argument
810 int_fast16_t status = AESCMACLPF3_setupSegmentedOperation(object, key); in AESCMAC_setupVerify()
816 if (key->encoding == CryptoKey_PLAINTEXT_HSM) in AESCMAC_setupVerify()
843 if (object->common.key.encoding == CryptoKey_PLAINTEXT_HSM) in AESCMAC_addData()
887 …if (object->common.key.encoding == CryptoKey_PLAINTEXT || object->common.key.encoding == CryptoKey… in AESCMAC_addData()
984 if (object->common.key.encoding == CryptoKey_PLAINTEXT_HSM) in AESCMAC_finalize()
1047 …if (object->common.key.encoding == CryptoKey_PLAINTEXT || object->common.key.encoding == CryptoKey… in AESCMAC_finalize()
1075 if (object->common.key.encoding == CryptoKey_PLAINTEXT_HSM && in AESCMAC_close()
1105 …if (((object->common.key.encoding & CRYPTOKEY_HSM) == 0U) && (!object->common.operationInProgress)) in AESCMAC_cancelOperation()
1124 if ((object->common.key.encoding == CryptoKey_PLAINTEXT_HSM) && in AESCMAC_cancelOperation()
1155 const CryptoKey *key, in AESCMACLPF3HSM_oneStepOperation() argument
1160 DebugP_assert(key); in AESCMACLPF3HSM_oneStepOperation()
1193 object->common.key = *key; in AESCMACLPF3HSM_oneStepOperation()
1201 if (object->common.key.encoding == CryptoKey_PLAINTEXT_HSM) in AESCMACLPF3HSM_oneStepOperation()
1326 …HSMLPF3_constructCreateAssetToken(assetPolicy, (uint32_t)object->common.key.u.plaintext.keyLength); in AESCMACLPF3HSM_createKeyAsset()
1390 HSMLPF3_constructLoadPlaintextAssetToken(object->common.key.u.plaintext.keyMaterial, in AESCMACLPF3HSM_LoadKeyAsset()
1391 object->common.key.u.plaintext.keyLength, in AESCMACLPF3HSM_LoadKeyAsset()