Home
last modified time | relevance | path

Searched defs:usageSpec (Results 1 – 25 of 34) sorted by relevance

12

/base/security/huks/frameworks/huks_standard/main/crypto_engine/mbedtls/src/
Dhks_mbedtls_ecdsa.c42 int32_t HksMbedtlsEcdsaSign(const struct HksBlob *key, const struct HksUsageSpec *usageSpec, in HksMbedtlsEcdsaSign()
95 int32_t HksMbedtlsEcdsaVerify(const struct HksBlob *key, const struct HksUsageSpec *usageSpec, in HksMbedtlsEcdsaVerify()
Dhks_mbedtls_rsa.c263 static int32_t HksMbedtlsRsaCrypt(const struct HksBlob *key, const struct HksUsageSpec *usageSpec, in HksMbedtlsRsaCrypt()
318 int32_t HksMbedtlsRsaEncrypt(const struct HksBlob *key, const struct HksUsageSpec *usageSpec, in HksMbedtlsRsaEncrypt()
325 int32_t HksMbedtlsRsaDecrypt(const struct HksBlob *key, const struct HksUsageSpec *usageSpec, in HksMbedtlsRsaDecrypt()
348 …ic int32_t HksMbedtlsRsaSignVerify(const struct HksBlob *key, const struct HksUsageSpec *usageSpec, in HksMbedtlsRsaSignVerify()
396 int32_t HksMbedtlsRsaSign(const struct HksBlob *key, const struct HksUsageSpec *usageSpec, in HksMbedtlsRsaSign()
405 int32_t HksMbedtlsRsaVerify(const struct HksBlob *key, const struct HksUsageSpec *usageSpec, in HksMbedtlsRsaVerify()
Dhks_mbedtls_aes.c142 const struct HksUsageSpec *usageSpec, const bool encrypt) in AesCbcNoPaddingCryptInit()
342 const struct HksUsageSpec *usageSpec, const bool encrypt) in AesCbcPkcs7CryptInit()
452 static int32_t AesCbcCrypt(const struct HksBlob *key, const struct HksUsageSpec *usageSpec, in AesCbcCrypt()
473 const struct HksUsageSpec *usageSpec, const bool encrypt) in AesCbcCryptInit()
528 static int32_t AesEncryptGcm(const struct HksBlob *key, const struct HksUsageSpec *usageSpec, in AesEncryptGcm()
567 static int32_t AesEncryptGcmInit(void **cryptoCtx, const struct HksUsageSpec *usageSpec, const stru… in AesEncryptGcmInit()
667 static int32_t AesDecryptGcm(const struct HksBlob *key, const struct HksUsageSpec *usageSpec, in AesDecryptGcm()
705 …esDecryptGcmInit(void **cryptoCtx, const struct HksBlob *key, const struct HksUsageSpec *usageSpec) in AesDecryptGcmInit()
818 static int32_t AesEncryptCcm(const struct HksBlob *key, const struct HksUsageSpec *usageSpec, in AesEncryptCcm()
857 static int32_t AesDecryptCcm(const struct HksBlob *key, const struct HksUsageSpec *usageSpec, in AesDecryptCcm()
[all …]
Dhks_mbedtls_engine.c29 static int32_t EncryptCheckParam(const struct HksBlob *key, const struct HksUsageSpec *usageSpec, in EncryptCheckParam()
228 int32_t HksCryptoHalSign(const struct HksBlob *key, const struct HksUsageSpec *usageSpec, in HksCryptoHalSign()
242 int32_t HksCryptoHalVerify(const struct HksBlob *key, const struct HksUsageSpec *usageSpec, in HksCryptoHalVerify()
269 int32_t HksCryptoHalEncrypt(const struct HksBlob *key, const struct HksUsageSpec *usageSpec, in HksCryptoHalEncrypt()
280 int32_t HksCryptoHalEncryptInit(const struct HksBlob *key, const struct HksUsageSpec *usageSpec, vo… in HksCryptoHalEncryptInit()
331 int32_t HksCryptoHalDecrypt(const struct HksBlob *key, const struct HksUsageSpec *usageSpec, in HksCryptoHalDecrypt()
342 int32_t HksCryptoHalDecryptInit(const struct HksBlob *key, const struct HksUsageSpec *usageSpec, vo… in HksCryptoHalDecryptInit()
Dhks_crypto_ed25519.c167 int32_t HksEd25519Sign(const struct HksBlob *key, const struct HksUsageSpec *usageSpec, in HksEd25519Sign()
192 int32_t HksEd25519Verify(const struct HksBlob *key, const struct HksUsageSpec *usageSpec, in HksEd25519Verify()
/base/security/huks/frameworks/huks_standard/main/crypto_engine/openssl/src/
Dhks_openssl_rsa.c316 static int32_t HksOpensslRsaCryptInit(EVP_PKEY_CTX *ctx, const struct HksUsageSpec *usageSpec) in HksOpensslRsaCryptInit()
340 static int32_t HksOpensslRsaCrypt(const struct HksBlob *key, const struct HksUsageSpec *usageSpec, in HksOpensslRsaCrypt()
389 int32_t HksOpensslRsaEncrypt(const struct HksBlob *key, const struct HksUsageSpec *usageSpec, in HksOpensslRsaEncrypt()
396 int32_t HksOpensslRsaDecrypt(const struct HksBlob *key, const struct HksUsageSpec *usageSpec, in HksOpensslRsaDecrypt()
421 static int32_t SetRsaPadding(EVP_PKEY_CTX *ctx, const struct HksUsageSpec *usageSpec) in SetRsaPadding()
456 static EVP_PKEY_CTX *InitRsaCtx(const struct HksBlob *key, const struct HksUsageSpec *usageSpec, bo… in InitRsaCtx()
504 int32_t HksOpensslRsaSign(const struct HksBlob *key, const struct HksUsageSpec *usageSpec, in HksOpensslRsaSign()
521 int32_t HksOpensslRsaVerify(const struct HksBlob *key, const struct HksUsageSpec *usageSpec, in HksOpensslRsaVerify()
Dhks_openssl_engine.c63 static int32_t SignVerifyCheckParam(const struct HksBlob *key, const struct HksUsageSpec *usageSpec, in SignVerifyCheckParam()
108 static int32_t EncryptCheckParam(const struct HksBlob *key, const struct HksUsageSpec *usageSpec, in EncryptCheckParam()
123 static int32_t DecryptCheckParam(const struct HksBlob *key, const struct HksUsageSpec *usageSpec, in DecryptCheckParam()
350 int32_t HksCryptoHalSign(const struct HksBlob *key, const struct HksUsageSpec *usageSpec, in HksCryptoHalSign()
361 int32_t HksCryptoHalVerify(const struct HksBlob *key, const struct HksUsageSpec *usageSpec, in HksCryptoHalVerify()
383 int32_t HksCryptoHalEncrypt(const struct HksBlob *key, const struct HksUsageSpec *usageSpec, in HksCryptoHalEncrypt()
394 int32_t HksCryptoHalEncryptInit(const struct HksBlob *key, const struct HksUsageSpec *usageSpec, vo… in HksCryptoHalEncryptInit()
451 int32_t HksCryptoHalDecrypt(const struct HksBlob *key, const struct HksUsageSpec *usageSpec, in HksCryptoHalDecrypt()
462 int32_t HksCryptoHalDecryptInit(const struct HksBlob *key, const struct HksUsageSpec *usageSpec, vo… in HksCryptoHalDecryptInit()
Dhks_openssl_aes.c57 struct HksCipherParam *cipherParam, bool isEncrypt, const struct HksUsageSpec *usageSpec) in OpensslBlockCipherCryptInitParams()
85 … const struct HksBlob *key, const struct HksUsageSpec *usageSpec, bool isEncrypt, void **cryptoCtx, in OpensslBlockCipherCryptInit()
346 …const struct HksBlob *key, const struct HksUsageSpec *usageSpec, bool isEncrypt, EVP_CIPHER_CTX **… in OpensslAesAeadInit()
390 static int32_t OpensslAesAeadEncryptFinal(EVP_CIPHER_CTX *ctx, const struct HksUsageSpec *usageSpec, in OpensslAesAeadEncryptFinal()
426 …EVP_CIPHER_CTX *ctx, const struct HksUsageSpec *usageSpec, const struct HksBlob *message, struct H… in OpensslAesAeadDecryptFinal()
489 … const struct HksBlob *key, const struct HksUsageSpec *usageSpec, bool isEncrypt, void **cryptoCtx) in OpensslAesAeadCryptInit()
680 …const struct HksBlob *key, const struct HksUsageSpec *usageSpec, bool isEncrypt, EVP_CIPHER_CTX **… in OpensslAesCipherInit()
780 …slAesEncryptInit(void **cryptoCtx, const struct HksBlob *key, const struct HksUsageSpec *usageSpec) in HksOpensslAesEncryptInit()
877 const struct HksUsageSpec *usageSpec) in HksOpensslAesDecryptInit()
999 int32_t HksOpensslAesEncrypt(const struct HksBlob *key, const struct HksUsageSpec *usageSpec, in HksOpensslAesEncrypt()
[all …]
Dhks_openssl_sm2.c200 int32_t HksOpensslSm2Verify(const struct HksBlob *key, const struct HksUsageSpec *usageSpec, in HksOpensslSm2Verify()
217 int32_t HksOpensslSm2Sign(const struct HksBlob *key, const struct HksUsageSpec *usageSpec, in HksOpensslSm2Sign()
Dhks_openssl_sm4.c91 …slSm4EncryptInit(void **cryptoCtx, const struct HksBlob *key, const struct HksUsageSpec *usageSpec) in HksOpensslSm4EncryptInit()
171 const struct HksUsageSpec *usageSpec) in HksOpensslSm4DecryptInit()
Dhks_openssl_dsa.c332 static EVP_PKEY_CTX *InitDSACtx(const struct HksBlob *key, const struct HksUsageSpec *usageSpec, bo… in InitDSACtx()
390 int32_t HksOpensslDsaSign(const struct HksBlob *key, const struct HksUsageSpec *usageSpec, in HksOpensslDsaSign()
407 int32_t HksOpensslDsaVerify(const struct HksBlob *key, const struct HksUsageSpec *usageSpec, in HksOpensslDsaVerify()
Dhks_openssl_curve25519.c236 int32_t HksOpensslEd25519Sign(const struct HksBlob *key, const struct HksUsageSpec *usageSpec, in HksOpensslEd25519Sign()
282 int32_t HksOpensslEd25519Verify(const struct HksBlob *key, const struct HksUsageSpec *usageSpec, in HksOpensslEd25519Verify()
Dhks_openssl_ecc.c510 int32_t HksOpensslEcdsaVerify(const struct HksBlob *key, const struct HksUsageSpec *usageSpec, in HksOpensslEcdsaVerify()
526 int32_t HksOpensslEcdsaSign(const struct HksBlob *key, const struct HksUsageSpec *usageSpec, in HksOpensslEcdsaSign()
/base/security/huks/frameworks/huks_standard/main/core/src/
Dhks_local_engine.c159 const struct HksUsageSpec *usageSpec, const struct HksBlob *inData, struct HksBlob *outData) in CipherEncrypt()
200 struct HksUsageSpec *usageSpec = NULL; in EncryptAndDecrypt() local
290 static int32_t GetSignVerifyMessage(struct HksUsageSpec *usageSpec, const struct HksBlob *srcData, in GetSignVerifyMessage()
320 struct HksUsageSpec usageSpec = {0}; in HksLocalSign() local
352 struct HksUsageSpec usageSpec = {0}; in HksLocalVerify() local
/base/security/huks/frameworks/huks_standard/main/common/src/
Dhks_crypto_adapter.c49 void HksFillUsageSpec(const struct HksParamSet *paramSet, struct HksUsageSpec *usageSpec) in HksFillUsageSpec()
75 void HksFreeUsageSpec(struct HksUsageSpec **usageSpec) in HksFreeUsageSpec()
110 …const struct HksParamSet *paramSet, struct HksBlob *inputText, struct HksUsageSpec *usageSpec, boo… in HksFillAeadParam()
148 int32_t HksFillIvParam(const struct HksParamSet *paramSet, struct HksUsageSpec *usageSpec) in HksFillIvParam()
178 struct HksUsageSpec *usageSpec = (struct HksUsageSpec *)HksMalloc(sizeof(struct HksUsageSpec)); in HksBuildCipherUsageSpec() local
/base/security/huks/services/huks_standard/huks_engine/main/core/src/
Dhks_attest_utils.c156 const struct HksUsageSpec *usageSpec) in GetRsaPublicKey()
212 …licKey(struct HksBlob *key, const struct HksPubKeyInfo *info, const struct HksUsageSpec *usageSpec) in HksGetPublicKey()
Dhks_keyblob.c151 bool isEncrypt, struct HksUsageSpec *usageSpec) in BuildKeyBlobUsageSpec()
188 struct HksUsageSpec *usageSpec = (struct HksUsageSpec *)HksMalloc(sizeof(struct HksUsageSpec)); in EncryptAndDecryptKeyBlob() local
189 HKS_IF_NULL_RETURN(usageSpec, HKS_ERROR_MALLOC_FAIL) in EncryptAndDecryptKeyBlob() local
Dhks_upgrade_key_info.c194 struct HksUsageSpec *usageSpec, struct HksBlob *cipherKey) in BuildDecryptMeterail()
259 static int32_t DecryptKey(const struct HksBlob *kek, const struct HksUsageSpec *usageSpec, in DecryptKey()
376 struct HksUsageSpec usageSpec; in GetNewFormatKey() local
Dhks_core_service_three_stage.c62 static int32_t CheckRsaCipherData(bool isEncrypt, uint32_t keyLen, struct HksUsageSpec *usageSpec, in CheckRsaCipherData()
156 static int32_t CheckBlockCipherData(bool isEncrypt, const struct HksUsageSpec *usageSpec, in CheckBlockCipherData()
176 struct HksUsageSpec usageSpec = {0}; in HksCheckFinishOutSize() local
481 struct HksUsageSpec usageSpec; in CoreSignVerify() local
544 struct HksUsageSpec *usageSpec = NULL; in CoreCipherInit() local
722 struct HksUsageSpec usageSpec; in RsaCipherFinish() local
Dhks_keyblob_lite.c98 bool isEncrypt, struct HksUsageSpec *usageSpec) in BuildKeyBlobUsageSpec()
159 struct HksUsageSpec usageSpec = { .algParam = (void *)&aeadParam }; in EncryptAndDecryptKeyBlob() local
/base/security/huks/test/unittest/huks_standard_test/crypto_engine_test/src/
Dhks_crypto_hal_aes_decrypt.cpp33 HksUsageSpec usageSpec = {0}; member
409 …void RunTestAesGcmDecrypt(struct HksBlob *key, const HksUsageSpec *usageSpec, struct HksBlob *decr… in RunTestAesGcmDecrypt()
485 HksUsageSpec usageSpec = { in GcmRunTestCase() local
Dhks_crypto_hal_rsa_decrypt.cpp32 HksUsageSpec usageSpec = {0}; member
Dhks_crypto_hal_rsa_sign.cpp33 HksUsageSpec usageSpec = {0}; member
1463 struct HksUsageSpec usageSpec = testCaseParams.usageSpec; in RunTestCase() local
Dhks_crypto_hal_rsa_encrypt.cpp32 HksUsageSpec usageSpec = {0}; member
Dhks_crypto_hal_aes_cipher.cpp33 HksUsageSpec usageSpec = {0}; member
641 …void RunTestGcmDecrypt(const HksUsageSpec &usageSpec, struct HksBlob *key, struct HksBlob *decrypt… in RunTestGcmDecrypt()

12