| /base/security/huks/frameworks/huks_standard/main/common/src/ |
| H A D | hks_check_paramset.c | 359 static int32_t CheckGenKeyParamsByAlg(uint32_t alg, const struct HksParamSet *paramSet, in CheckGenKeyParamsByAlg() argument 326 CheckAndGetAlgorithm( const struct HksParamSet *paramSet, const uint32_t *expectAlg, uint32_t expectCnt, uint32_t *alg) CheckAndGetAlgorithm() argument 375 CheckGenKeyMacDeriveParams( uint32_t alg, uint32_t inputPurpose, const struct HksParamSet *paramSet, struct ParamsValues *params, uint32_t keyFlag) CheckGenKeyMacDeriveParams() argument 407 uint32_t alg; CoreCheckGenKeyParams() local 435 CheckImportKeySize(uint32_t alg, const struct ParamsValues *params, const struct HksBlob *key) CheckImportKeySize() argument 480 CheckSignVerifyParamsByAlg(uint32_t cmdId, uint32_t alg, const struct ParamsValues *inputParams) CheckSignVerifyParamsByAlg() argument 493 CheckCipherParamsByAlg( uint32_t cmdId, uint32_t alg, const struct HksParamSet *paramSet, const struct ParamsValues *inputParams) CheckCipherParamsByAlg() argument 545 CheckRsaKeyLen(uint32_t alg, uint32_t keyType, const struct ParamsValues *params, const struct HksBlob *key) CheckRsaKeyLen() argument 576 CheckEccKeyLen(uint32_t alg, uint32_t keyType, const struct ParamsValues *params, const struct HksBlob *key) CheckEccKeyLen() argument 614 CheckDsaKeyLen(uint32_t alg, uint32_t keyType, const struct ParamsValues *params, const struct HksBlob *key) CheckDsaKeyLen() argument 656 CheckCurve25519KeyLen(uint32_t alg, uint32_t keyType, const struct ParamsValues *params, const struct HksBlob *key) CheckCurve25519KeyLen() argument 695 CheckDHKeyLen(uint32_t alg, uint32_t keyType, const struct ParamsValues *params, const struct HksBlob *key) CheckDHKeyLen() argument 733 CheckKeyLen(uint32_t alg, uint32_t keyType, const struct ParamsValues *params, const struct HksBlob *key) CheckKeyLen() argument 754 CheckMutableParams(uint32_t alg, uint32_t keyType, const struct ParamsValues *params) CheckMutableParams() argument 791 CheckImportKey(uint32_t alg, uint32_t keyType, const struct ParamsValues *params, const struct HksBlob *key) CheckImportKey() argument 821 uint32_t alg; HksCoreCheckImportKeyParams() local 883 uint32_t alg; HksCoreCheckImportWrappedKeyParams() local 895 uint32_t alg; HksCoreCheckSignVerifyParams() local 931 uint32_t alg; HksLocalCheckSignVerifyParams() local 961 uint32_t alg; HksCoreCheckAgreeKeyParams() local 1005 uint32_t alg; HksCoreCheckCipherParams() local 1033 uint32_t alg; HksLocalCheckCipherParams() local 1085 uint32_t alg; HksCoreCheckDeriveKeyParams() local 1169 CheckIsSymmetricAlgorithm(uint32_t alg) CheckIsSymmetricAlgorithm() argument [all...] |
| /base/security/huks/utils/crypto_adapter/ |
| H A D | hks_client_service_adapter.c | 489 static int32_t EcKeyToPublicKey(const uint32_t alg, const EC_KEY *ecKey, struct HksBlob *eccPublicKey)
in EcKeyToPublicKey() argument 544 static int32_t X509PublicKeyToEcc(const uint32_t alg, EVP_PKEY *pkey, struct HksBlob *eccPublicKey)
in X509PublicKeyToEcc() argument 145 EccToX509PublicKey( const uint32_t alg, uint32_t keySize, const struct HksBlob *x, const struct HksBlob *y, struct HksBlob *x509Key) EccToX509PublicKey() argument 199 Sm2ToX509PublicKey( const uint32_t alg, uint32_t keySize, const struct HksBlob *x, const struct HksBlob *y, struct HksBlob *x509Key) Sm2ToX509PublicKey() argument 555 EvpPkeyToHksPubKeyInfo( const uint32_t alg, uint32_t keyLen, const EVP_PKEY *pkey, struct HksBlob *sm2PublicKey) EvpPkeyToHksPubKeyInfo() argument 601 X509PublicKeyToSm2(const uint32_t alg, EVP_PKEY *pkey, struct HksBlob *sm2PublicKey) X509PublicKeyToSm2() argument 729 TranslateFromX509PublicKey(const uint32_t alg, const struct HksBlob *x509Key, struct HksBlob *publicKey) TranslateFromX509PublicKey() argument [all...] |
| /base/security/huks/test/unittest/huks_standard_test/three_stage_test/src/ |
| H A D | hks_import_agree_test.cpp | 615 static void ModifyImportParams(uint32_t alg, uint32_t keySize, uint32_t importType) in ModifyImportParams() argument 622 static void ModifyinitOpParams(uint32_t alg, uint32_t keySize) in ModifyinitOpParams() argument 801 static int32_t ConstructImportedCurve25519Key(uint32_t id, uint32_t alg, uint32_t keySize, uint32_t importType, in ConstructImportedCurve25519Key() argument 933 static int32_t ConstructImportedKey(uint32_t id, uint32_t alg, uint32_t keySize, uint32_t importType, in ConstructImportedKey() argument 651 ConstructCurve25519Key(struct TestImportKeyData *key, uint32_t alg, uint32_t keySize, uint32_t importType, struct HksBlob *outKey) ConstructCurve25519Key() argument 1015 ConstructAgreePubKey(uint32_t alg, uint32_t keySize, uint32_t id, struct HksBlob *publicKey) ConstructAgreePubKey() argument 1084 TestAgreeOp(const struct HksBlob *keyAlias1, const struct HksBlob *keyAlias2, uint32_t alg, uint32_t keySize) TestAgreeOp() argument 1125 TestImportKey(uint32_t alg, uint32_t keySize, uint32_t importType) TestImportKey() argument 1147 ImportAgreeTest(uint32_t alg, uint32_t keySize) ImportAgreeTest() argument [all...] |
| H A D | hks_access_control_test_common.cpp | 752 int32_t ConstructEd25519KeyPair(uint32_t keySize, uint32_t alg, struct HksBlob *ed25519PubData, in ConstructEd25519KeyPair() argument
|
| /base/startup/init/interfaces/innerkits/fs_manager/libfs_hvb/ |
| H A D | fs_hvb.c | 341 char *alg = NULL; in FsHvbGetHashAlgStr() local
|
| /device/soc/hisilicon/hi3516dv300/sdk_linux/drv/interdrv/common/cipher/src/drv/cipher_v1.0/drivers/ |
| H A D | kapi_symc.c | 243 static hi_s32 kapi_symc_chk_des_3des_param(hi_cipher_alg alg, hi_cipher_work_mode mode, hi_u32 width) in kapi_symc_chk_des_3des_param() argument 276 static hi_s32 kapi_symc_chk_aes_param(hi_cipher_alg alg, hi_cipher_work_mode mode, hi_u32 width) in kapi_symc_chk_aes_param() argument 300 kapi_symc_chk_sm1_param(hi_cipher_alg alg, hi_cipher_work_mode mode, hi_u32 width, hi_u32 round) kapi_symc_chk_sm1_param() argument 331 kapi_symc_chk_sm4_param(hi_cipher_alg alg, hi_cipher_work_mode mode) kapi_symc_chk_sm4_param() argument 342 kapi_symc_width_check(hi_cipher_alg alg, hi_cipher_work_mode mode, hi_u32 width, hi_u32 round) kapi_symc_width_check() argument 496 kapi_symc_check_ccm_gcm_taglen(hi_cipher_alg alg, hi_cipher_work_mode work_mode, hi_u32 tlen) kapi_symc_check_ccm_gcm_taglen() argument [all...] |
| /kernel/linux/linux-5.10/crypto/ |
| H A D | tcrypt.c | 61 static char *alg = NULL; variable 1639 static inline int tcrypt_test(const char *alg) in tcrypt_test() argument 1652 do_test(const char *alg, u32 type, u32 mask, int m, u32 num_mb) do_test() argument [all...] |
| H A D | vmac.c | 622 struct crypto_alg *alg; in vmac_create() local [all...] |
| H A D | skcipher.c | 627 struct crypto_alg *alg = tfm->base.__crt_alg; in crypto_skcipher_encrypt() local 644 struct crypto_alg *alg = tfm->base.__crt_alg; in crypto_skcipher_decrypt() local 661 struct skcipher_alg *alg = crypto_skcipher_alg(skcipher); in crypto_skcipher_exit_tfm() local 669 struct skcipher_alg *alg = crypto_skcipher_alg(skcipher); in crypto_skcipher_init_tfm() local 692 crypto_skcipher_show(struct seq_file *m, struct crypto_alg *alg) crypto_skcipher_show() argument 709 crypto_skcipher_report(struct sk_buff *skb, struct crypto_alg *alg) crypto_skcipher_report() argument 729 crypto_skcipher_report(struct sk_buff *skb, struct crypto_alg *alg) crypto_skcipher_report() argument 795 skcipher_prepare_alg(struct skcipher_alg *alg) skcipher_prepare_alg() argument 815 crypto_register_skcipher(struct skcipher_alg *alg) crypto_register_skcipher() argument 828 crypto_unregister_skcipher(struct skcipher_alg *alg) crypto_unregister_skcipher() argument [all...] |
| H A D | shash.c | 36 bool crypto_shash_alg_has_setkey(struct shash_alg *alg) in crypto_shash_alg_has_setkey() argument 63 static void shash_set_needkey(struct crypto_shash *tfm, struct shash_alg *alg) in shash_set_needkey() argument 380 struct shash_alg *alg = __crypto_shash_alg(calg); in crypto_init_shash_ops_async() local 419 struct shash_alg *alg = crypto_shash_alg(hash); in crypto_shash_exit_tfm() local 427 struct shash_alg *alg = crypto_shash_alg(hash); in crypto_shash_init_tfm() local 462 crypto_shash_report(struct sk_buff *skb, struct crypto_alg *alg) crypto_shash_report() argument 477 crypto_shash_report(struct sk_buff *skb, struct crypto_alg *alg) crypto_shash_report() argument 485 crypto_shash_show(struct seq_file *m, struct crypto_alg *alg) crypto_shash_show() argument 524 shash_prepare_alg(struct shash_alg *alg) shash_prepare_alg() argument 555 crypto_register_shash(struct shash_alg *alg) crypto_register_shash() argument 568 crypto_unregister_shash(struct shash_alg *alg) crypto_unregister_shash() argument [all...] |
| H A D | ccm.c | 711 struct aead_alg *alg; crypto_rfc4309_create() local 866 struct crypto_alg *alg; cbcmac_create() local [all...] |
| /kernel/linux/linux-5.10/drivers/crypto/nx/ |
| H A D | nx.c | 514 static int nx_register_skcipher(struct skcipher_alg *alg, u32 fc, u32 mode) in nx_register_skcipher() argument 520 static int nx_register_aead(struct aead_alg *alg, u32 fc, u32 mode) in nx_register_aead() argument 526 static int nx_register_shash(struct shash_alg *alg, u32 fc, u32 mode, int slot) in nx_register_shash() argument 534 static void nx_unregister_skcipher(struct skcipher_alg *alg, u32 fc, u32 mode) in nx_unregister_skcipher() argument 540 static void nx_unregister_aead(struct aead_alg *alg, u32 fc, u32 mode) in nx_unregister_aead() argument 546 nx_unregister_shash(struct shash_alg *alg, u32 fc, u32 mode, int slot) nx_unregister_shash() argument [all...] |
| /kernel/linux/linux-5.10/drivers/crypto/hisilicon/sec/ |
| H A D | sec_algs.c | 256 enum sec_cipher_alg alg; in sec_alg_skcipher_setkey_aes_ecb() local 126 sec_alg_skcipher_init_template(struct sec_alg_tfm_ctx *ctx, struct sec_bd_info *req, enum sec_cipher_alg alg) sec_alg_skcipher_init_template() argument 142 sec_alg_skcipher_init_context(struct crypto_skcipher *atfm, const u8 *key, unsigned int keylen, enum sec_cipher_alg alg) sec_alg_skcipher_init_context() argument 227 sec_alg_skcipher_setkey(struct crypto_skcipher *tfm, const u8 *key, unsigned int keylen, enum sec_cipher_alg alg) sec_alg_skcipher_setkey() argument 278 enum sec_cipher_alg alg; sec_alg_skcipher_setkey_aes_cbc() local 300 enum sec_cipher_alg alg; sec_alg_skcipher_setkey_aes_ctr() local 322 enum sec_cipher_alg alg; sec_alg_skcipher_setkey_aes_xts() local [all...] |
| /kernel/linux/linux-5.10/drivers/crypto/amcc/ |
| H A D | crypto4xx_alg.c | 628 struct crypto_alg *alg = tfm->__crt_alg; in crypto4xx_hash_alg_init() local
|
| H A D | crypto4xx_core.h | 146 struct crypto4xx_alg_common alg; member
|
| /kernel/linux/linux-5.10/drivers/crypto/allwinner/sun8i-ss/ |
| H A D | sun8i-ss.h | 278 } alg; member
|
| /kernel/linux/linux-5.10/drivers/crypto/ccree/ |
| H A D | cc_driver.h | 117 enum cc_cpp_alg alg; member
|
| H A D | cc_cipher.c | 35 enum cc_cpp_alg alg; member 231 struct crypto_alg *alg = tfm->__crt_alg; in cc_cipher_exit() local 1417 struct skcipher_alg *alg; cc_create_alg() local 1463 int alg; cc_cipher_alloc() local [all...] |
| /kernel/linux/linux-5.10/drivers/crypto/allwinner/sun4i-ss/ |
| H A D | sun4i-ss.h | 166 } alg; member
|
| /kernel/linux/common_modules/tzdriver/auth/ |
| H A D | client_hash_auth.c | 383 static struct sdesc_hash *init_sdesc(struct crypto_shash *alg) in init_sdesc() argument 396 static int calc_hash(struct crypto_shash *alg, in calc_hash() argument 417 struct crypto_shash *alg; in do_sha256() local [all...] |
| /kernel/linux/linux-5.10/arch/s390/crypto/ |
| H A D | paes_s390.c | 719 static inline void __crypto_unregister_skcipher(struct skcipher_alg *alg) in __crypto_unregister_skcipher() argument
|
| /kernel/linux/linux-5.10/drivers/crypto/ccp/ |
| H A D | ccp-crypto.h | 40 struct skcipher_alg alg; member 48 struct aead_alg alg; member 61 struct ahash_alg alg; member 67 struct akcipher_alg alg; member 73 struct skcipher_alg *alg = crypto_skcipher_alg(tfm); in ccp_crypto_skcipher_alg() local 81 struct crypto_alg *alg = tfm->__crt_alg; in ccp_crypto_ahash_alg() local [all...] |
| /kernel/linux/linux-5.10/drivers/crypto/bcm/ |
| H A D | spu.c | 556 u32 spum_digest_size(u32 alg_digest_size, enum hash_alg alg, in spum_digest_size() argument [all...] |
| /kernel/linux/linux-6.6/arch/s390/crypto/ |
| H A D | paes_s390.c | 736 static inline void __crypto_unregister_skcipher(struct skcipher_alg *alg) in __crypto_unregister_skcipher() argument
|
| /kernel/linux/linux-5.10/drivers/net/ethernet/marvell/octeontx2/nic/ |
| H A D | otx2_txrx.c | 560 otx2_sqe_add_mem(struct otx2_snd_queue *sq, int *offset, int alg, u64 iova) otx2_sqe_add_mem() argument
|