| /base/security/huks/frameworks/huks_standard/main/crypto_engine/mbedtls/src/ |
| D | hks_mbedtls_ecdsa.c | 42 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()
|
| D | hks_mbedtls_rsa.c | 263 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()
|
| D | hks_mbedtls_aes.c | 142 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 …]
|
| D | hks_mbedtls_engine.c | 29 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()
|
| D | hks_crypto_ed25519.c | 167 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/ |
| D | hks_openssl_rsa.c | 316 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()
|
| D | hks_openssl_engine.c | 63 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()
|
| D | hks_openssl_aes.c | 57 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 …]
|
| D | hks_openssl_sm2.c | 200 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()
|
| D | hks_openssl_sm4.c | 91 …slSm4EncryptInit(void **cryptoCtx, const struct HksBlob *key, const struct HksUsageSpec *usageSpec) in HksOpensslSm4EncryptInit() 171 const struct HksUsageSpec *usageSpec) in HksOpensslSm4DecryptInit()
|
| D | hks_openssl_dsa.c | 332 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()
|
| D | hks_openssl_curve25519.c | 236 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()
|
| D | hks_openssl_ecc.c | 510 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/ |
| D | hks_local_engine.c | 159 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/ |
| D | hks_crypto_adapter.c | 49 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/ |
| D | hks_attest_utils.c | 156 const struct HksUsageSpec *usageSpec) in GetRsaPublicKey() 212 …licKey(struct HksBlob *key, const struct HksPubKeyInfo *info, const struct HksUsageSpec *usageSpec) in HksGetPublicKey()
|
| D | hks_keyblob.c | 151 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
|
| D | hks_upgrade_key_info.c | 194 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
|
| D | hks_core_service_three_stage.c | 62 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
|
| D | hks_keyblob_lite.c | 98 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/ |
| D | hks_crypto_hal_aes_decrypt.cpp | 33 HksUsageSpec usageSpec = {0}; member 409 …void RunTestAesGcmDecrypt(struct HksBlob *key, const HksUsageSpec *usageSpec, struct HksBlob *decr… in RunTestAesGcmDecrypt() 485 HksUsageSpec usageSpec = { in GcmRunTestCase() local
|
| D | hks_crypto_hal_rsa_decrypt.cpp | 32 HksUsageSpec usageSpec = {0}; member
|
| D | hks_crypto_hal_rsa_sign.cpp | 33 HksUsageSpec usageSpec = {0}; member 1463 struct HksUsageSpec usageSpec = testCaseParams.usageSpec; in RunTestCase() local
|
| D | hks_crypto_hal_rsa_encrypt.cpp | 32 HksUsageSpec usageSpec = {0}; member
|
| D | hks_crypto_hal_aes_cipher.cpp | 33 HksUsageSpec usageSpec = {0}; member 641 …void RunTestGcmDecrypt(const HksUsageSpec &usageSpec, struct HksBlob *key, struct HksBlob *decrypt… in RunTestGcmDecrypt()
|