| /OK3568_Linux_fs/u-boot/common/ |
| H A D | hash.c | 34 static int hash_init_sha1(struct hash_algo *algo, void **ctxp) in hash_init_sha1() 42 static int hash_update_sha1(struct hash_algo *algo, void *ctx, const void *buf, in hash_update_sha1() 49 static int hash_finish_sha1(struct hash_algo *algo, void *ctx, void *dest_buf, in hash_finish_sha1() 62 static int hash_init_sha256(struct hash_algo *algo, void **ctxp) in hash_init_sha256() 70 static int hash_update_sha256(struct hash_algo *algo, void *ctx, in hash_update_sha256() 77 static int hash_finish_sha256(struct hash_algo *algo, void *ctx, void in hash_finish_sha256() 89 static int hash_init_crc32(struct hash_algo *algo, void **ctxp) in hash_init_crc32() 97 static int hash_update_crc32(struct hash_algo *algo, void *ctx, in hash_update_crc32() 104 static int hash_finish_crc32(struct hash_algo *algo, void *ctx, void *dest_buf, in hash_finish_crc32() 218 struct hash_algo *algo; in hash_parse_string() local [all …]
|
| /OK3568_Linux_fs/external/security/rk_tee_user/v2/export-ta_arm32/include/ |
| H A D | utee_defines.h | 55 static inline uint32_t __tee_alg_get_class(uint32_t algo) in __tee_alg_get_class() 69 #define TEE_ALG_GET_CLASS(algo) __tee_alg_get_class(algo) argument 71 static inline uint32_t __tee_alg_get_main_alg(uint32_t algo) in __tee_alg_get_main_alg() 85 #define TEE_ALG_GET_MAIN_ALG(algo) __tee_alg_get_main_alg(algo) argument 88 #define TEE_ALG_GET_CHAIN_MODE(algo) (((algo) >> 8) & 0xF) argument 98 static inline uint32_t __tee_alg_get_digest_hash(uint32_t algo) in __tee_alg_get_digest_hash() 107 #define TEE_ALG_GET_DIGEST_HASH(algo) __tee_alg_get_digest_hash(algo) argument 110 #define TEE_ALG_GET_ECC_CURVE(algo) (((algo) >> 12) & 0xF) argument 113 #define TEE_ALG_GET_INTERNAL_HASH(algo) (((algo) >> 20) & 0x7) argument 115 static inline uint32_t __tee_alg_get_key_type(uint32_t algo, bool with_priv) in __tee_alg_get_key_type() [all …]
|
| /OK3568_Linux_fs/external/security/rk_tee_user/v2/export-ta_arm64/host_include/ |
| H A D | utee_defines.h | 55 static inline uint32_t __tee_alg_get_class(uint32_t algo) in __tee_alg_get_class() 69 #define TEE_ALG_GET_CLASS(algo) __tee_alg_get_class(algo) argument 71 static inline uint32_t __tee_alg_get_main_alg(uint32_t algo) in __tee_alg_get_main_alg() 85 #define TEE_ALG_GET_MAIN_ALG(algo) __tee_alg_get_main_alg(algo) argument 88 #define TEE_ALG_GET_CHAIN_MODE(algo) (((algo) >> 8) & 0xF) argument 98 static inline uint32_t __tee_alg_get_digest_hash(uint32_t algo) in __tee_alg_get_digest_hash() 107 #define TEE_ALG_GET_DIGEST_HASH(algo) __tee_alg_get_digest_hash(algo) argument 110 #define TEE_ALG_GET_ECC_CURVE(algo) (((algo) >> 12) & 0xF) argument 113 #define TEE_ALG_GET_INTERNAL_HASH(algo) (((algo) >> 20) & 0x7) argument 115 static inline uint32_t __tee_alg_get_key_type(uint32_t algo, bool with_priv) in __tee_alg_get_key_type() [all …]
|
| /OK3568_Linux_fs/external/security/rk_tee_user/v2/export-ta_arm64/include/ |
| H A D | utee_defines.h | 55 static inline uint32_t __tee_alg_get_class(uint32_t algo) in __tee_alg_get_class() 69 #define TEE_ALG_GET_CLASS(algo) __tee_alg_get_class(algo) argument 71 static inline uint32_t __tee_alg_get_main_alg(uint32_t algo) in __tee_alg_get_main_alg() 85 #define TEE_ALG_GET_MAIN_ALG(algo) __tee_alg_get_main_alg(algo) argument 88 #define TEE_ALG_GET_CHAIN_MODE(algo) (((algo) >> 8) & 0xF) argument 98 static inline uint32_t __tee_alg_get_digest_hash(uint32_t algo) in __tee_alg_get_digest_hash() 107 #define TEE_ALG_GET_DIGEST_HASH(algo) __tee_alg_get_digest_hash(algo) argument 110 #define TEE_ALG_GET_ECC_CURVE(algo) (((algo) >> 12) & 0xF) argument 113 #define TEE_ALG_GET_INTERNAL_HASH(algo) (((algo) >> 20) & 0x7) argument 115 static inline uint32_t __tee_alg_get_key_type(uint32_t algo, bool with_priv) in __tee_alg_get_key_type() [all …]
|
| /OK3568_Linux_fs/external/security/rk_tee_user/v2/export-ta_arm32/host_include/ |
| H A D | utee_defines.h | 55 static inline uint32_t __tee_alg_get_class(uint32_t algo) in __tee_alg_get_class() 69 #define TEE_ALG_GET_CLASS(algo) __tee_alg_get_class(algo) argument 71 static inline uint32_t __tee_alg_get_main_alg(uint32_t algo) in __tee_alg_get_main_alg() 85 #define TEE_ALG_GET_MAIN_ALG(algo) __tee_alg_get_main_alg(algo) argument 88 #define TEE_ALG_GET_CHAIN_MODE(algo) (((algo) >> 8) & 0xF) argument 98 static inline uint32_t __tee_alg_get_digest_hash(uint32_t algo) in __tee_alg_get_digest_hash() 107 #define TEE_ALG_GET_DIGEST_HASH(algo) __tee_alg_get_digest_hash(algo) argument 110 #define TEE_ALG_GET_ECC_CURVE(algo) (((algo) >> 12) & 0xF) argument 113 #define TEE_ALG_GET_INTERNAL_HASH(algo) (((algo) >> 20) & 0x7) argument 115 static inline uint32_t __tee_alg_get_key_type(uint32_t algo, bool with_priv) in __tee_alg_get_key_type() [all …]
|
| /OK3568_Linux_fs/external/security/rk_tee_user/v1/export-user_ta/include/ |
| H A D | utee_defines.h | 66 #define TEE_ALG_GET_CLASS(algo) (((algo) >> 28) & 0xF) argument 68 #define TEE_ALG_GET_KEY_TYPE(algo, with_private_key) \ argument 73 #define TEE_ALG_GET_MAIN_ALG(algo) ((algo) & 0xFF) argument 76 #define TEE_ALG_GET_CHAIN_MODE(algo) (((algo) >> 8) & 0xF) argument 79 #define TEE_ALG_GET_DIGEST_HASH(algo) (((algo) >> 12) & 0xF) argument 82 #define TEE_ALG_GET_ECC_CURVE(algo) (((algo) >> 16) & 0xF) argument 85 #define TEE_ALG_GET_INTERNAL_HASH(algo) (((algo) >> 20) & 0x7) argument 92 #define TEE_INTERNAL_HASH_TO_ALGO(algo) \ argument 96 #define TEE_DIGEST_HASH_TO_ALGO(algo) \ argument
|
| /OK3568_Linux_fs/external/security/rk_tee_user/v1/export-user_ta/host_include/ |
| H A D | utee_defines.h | 66 #define TEE_ALG_GET_CLASS(algo) (((algo) >> 28) & 0xF) argument 68 #define TEE_ALG_GET_KEY_TYPE(algo, with_private_key) \ argument 73 #define TEE_ALG_GET_MAIN_ALG(algo) ((algo) & 0xFF) argument 76 #define TEE_ALG_GET_CHAIN_MODE(algo) (((algo) >> 8) & 0xF) argument 79 #define TEE_ALG_GET_DIGEST_HASH(algo) (((algo) >> 12) & 0xF) argument 82 #define TEE_ALG_GET_ECC_CURVE(algo) (((algo) >> 16) & 0xF) argument 85 #define TEE_ALG_GET_INTERNAL_HASH(algo) (((algo) >> 20) & 0x7) argument 92 #define TEE_INTERNAL_HASH_TO_ALGO(algo) \ argument 96 #define TEE_DIGEST_HASH_TO_ALGO(algo) \ argument
|
| /OK3568_Linux_fs/external/security/librkcrypto/test/ |
| H A D | test_throughput.c | 23 uint32_t algo, uint32_t mode, uint32_t operation, in test_otp_key_item_tp() 99 uint32_t algo, key_id, mode, operation, len, key_len; in test_otp_key_virt_tp() local 149 uint32_t algo, key_id, mode, operation, len, key_len; in test_otp_key_fd_tp() local 224 static int test_cipher_item_tp(bool is_virt, uint32_t key_len, uint32_t algo, in test_cipher_item_tp() 316 uint32_t algo, mode, operation, len, key_len; in test_cipher_tp() local 322 uint32_t algo; in test_cipher_tp() member 458 static int test_ae_item_tp(bool is_virt, uint32_t key_len, uint32_t algo, in test_ae_item_tp() 644 uint32_t algo, mode, len, key_len, aad_len; in test_ae_tp() local 652 uint32_t algo; in test_ae_tp() member 798 static int test_hash_item_tp(bool is_virt, bool is_hmac, uint32_t algo, in test_hash_item_tp() [all …]
|
| H A D | cmode_adapter.c | 8 RK_RES soft_cipher(uint32_t algo, uint32_t mode, uint32_t operation, in soft_cipher() 92 RK_RES soft_ae(uint32_t algo, uint32_t mode, uint32_t operation, in soft_ae() 150 RK_RES soft_hash(uint32_t algo, const uint8_t *in, uint32_t in_len, uint8_t *out, uint32_t *out_len) in soft_hash() 189 RK_RES soft_hmac(uint32_t algo, const uint8_t *key, uint32_t key_len, in soft_hmac()
|
| H A D | test_hash.c | 18 uint32_t algo; member 54 uint32_t algo, key_len; in test_hash_item_virt() local 146 uint32_t algo, key_len; in test_hash_item_fd() local
|
| H A D | test_cipher.c | 20 uint32_t algo; member 96 uint32_t algo = 0, mode = 0, key_len, iv_len, operation; in test_cipher_item_virt() local 251 uint32_t algo = 0, mode = 0, key_len = 0, iv_len, operation; in test_cipher_item_fd() local
|
| H A D | test_ae.c | 19 uint32_t algo[2]; member 47 uint32_t algo = 0, mode = 0, key_len, iv_len, data_len, aad_len, operation; in test_ae_item_virt() local 264 uint32_t algo = 0, mode = 0, key_len, iv_len, data_len, aad_len, operation; in test_ae_item_fd() local
|
| H A D | test_otp_key_crypto.c | 51 uint32_t algo; member 153 uint32_t algo = 0, mode = 0, key_len, data_len, operation; in test_otp_key_item_virt() local 291 uint32_t algo = 0, mode = 0, key_len, data_len, operation; in test_otp_key_item_fd() local
|
| /OK3568_Linux_fs/external/security/rk_tee_user/v2/ta/rk_public_api/ |
| H A D | rk_crypto_api.c | 242 uint32_t algo, TEE_OperationMode mode) in rk_cipher_crypto() 490 uint8_t *iv, uint32_t algo, TEE_OperationMode mode) in rk_cipher_begin() 866 uint32_t payload_len, uint32_t algo, TEE_OperationMode mode) in rk_ae_begin() 1043 TEE_Result rk_hash_begin(crypto_ctx_t *ctx, uint32_t algo) in rk_hash_begin() 1106 uint32_t out_len, uint32_t algo) in rk_hash_crypto() 1151 uint8_t *iv, uint32_t algo) in rk_mac_crypto() 1257 uint8_t *iv, uint32_t algo) in rk_mac_begin() 1508 TEE_Result rk_rsa_begin(crypto_ctx_t *ctx, rsa_key_t *key, uint32_t algo, in rk_rsa_begin() 1672 rsa_key_t *key, uint32_t algo, TEE_OperationMode mode) in rk_rsa_crypto() 1755 uint32_t algo, TEE_OperationMode mode) in rk_rsa_sign() [all …]
|
| /OK3568_Linux_fs/u-boot/drivers/crypto/fsl/ |
| H A D | fsl_hash.c | 45 static enum caam_hash_algos get_hash_type(struct hash_algo *algo) in get_hash_type() 162 unsigned char *pout, enum caam_hash_algos algo) in caam_hash() 198 int hw_sha_init(struct hash_algo *algo, void **ctxp) in hw_sha_init() 203 int hw_sha_update(struct hash_algo *algo, void *ctx, const void *buf, in hw_sha_update() 209 int hw_sha_finish(struct hash_algo *algo, void *ctx, void *dest_buf, in hw_sha_finish()
|
| /OK3568_Linux_fs/external/security/rk_tee_user/v2/host/xtest/ |
| H A D | sha_perf.c | 108 static const char *algo_str(uint32_t algo) in algo_str() 126 static int hash_size(uint32_t algo) in hash_size() 148 static void alloc_shm(size_t sz, uint32_t algo, int offset) in alloc_shm() 236 static void prepare_op(int algo) in prepare_op() 286 extern void sha_perf_run_test(int algo, size_t size, unsigned int n, in sha_perf_run_test() 355 int algo, size_t size, int warmup, int l, int n) in usage() 394 int algo = TA_SHA_SHA1; /* Algorithm (-a) */ in sha_perf_runner_cmd_parser() local
|
| H A D | benchmark_2000.c | 32 int algo = TA_SHA_SHA1; /* Algorithm */ in xtest_tee_benchmark_2001() local 46 int algo = TA_SHA_SHA256; /* Algorithm */ in xtest_tee_benchmark_2002() local
|
| H A D | regression_8000.c | 316 #define TEST_HKDF_DATA(section, algo, id, oeb /* omit empty bufs */) \ in xtest_test_derivation_hkdf() argument 326 uint32_t algo; in xtest_test_derivation_hkdf() member 453 #define TEST_CONCAT_KDF_DATA(name, algo, id, oeb /* omit empty bufs */) \ in xtest_test_derivation_concat_kdf() argument 464 uint32_t algo; in xtest_test_derivation_concat_kdf() member 572 #define TEST_PBKDF2_DATA(level, section, algo, id, oeb /* omit empty bufs */) \ in xtest_test_derivation_pbkdf2() argument 588 uint32_t algo; in xtest_test_derivation_pbkdf2() member
|
| /OK3568_Linux_fs/external/security/rk_tee_user/v1/ta/rk_public_api/ |
| H A D | rk_crypto_api.c | 242 uint32_t algo, TEE_OperationMode mode) in rk_cipher_crypto() 474 uint8_t *iv, uint32_t algo, TEE_OperationMode mode) in rk_cipher_begin() 836 uint32_t payload_len, uint32_t algo, TEE_OperationMode mode) in rk_ae_begin() 1005 TEE_Result rk_hash_begin(crypto_ctx_t *ctx, uint32_t algo) in rk_hash_begin() 1062 uint32_t out_len, uint32_t algo) in rk_hash_crypto() 1107 uint8_t *iv, uint32_t algo) in rk_mac_crypto() 1207 uint8_t *iv, uint32_t algo) in rk_mac_begin() 1452 TEE_Result rk_rsa_begin(crypto_ctx_t *ctx, rsa_key_t *key, uint32_t algo, in rk_rsa_begin() 1616 rsa_key_t *key, uint32_t algo, TEE_OperationMode mode) in rk_rsa_crypto() 1697 uint32_t algo, TEE_OperationMode mode) in rk_rsa_sign() [all …]
|
| /OK3568_Linux_fs/kernel/arch/mips/generic/ |
| H A D | board-ocelot.its.S | 11 algo = "sha1"; define 22 algo = "sha1"; define
|
| /OK3568_Linux_fs/kernel/net/ipv6/ |
| H A D | seg6_hmac.c | 106 struct seg6_hmac_algo *algo; in __hmac_get_algo() local 122 struct seg6_hmac_algo *algo; in __do_hmac() local 354 struct seg6_hmac_algo *algo; in seg6_hmac_init_algo() local 415 struct seg6_hmac_algo *algo = NULL; in seg6_hmac_exit() local
|
| /OK3568_Linux_fs/kernel/crypto/ |
| H A D | tcrypt.c | 251 static void test_mb_aead_speed(const char *algo, int enc, int secs, in test_mb_aead_speed() 519 static void test_aead_speed(const char *algo, int enc, unsigned int secs, in test_aead_speed() 812 static void test_mb_ahash_speed(const char *algo, unsigned int secs, in test_mb_ahash_speed() 1055 static void test_ahash_speed_common(const char *algo, unsigned int secs, in test_ahash_speed_common() 1136 static void test_ahash_speed(const char *algo, unsigned int secs, in test_ahash_speed() 1142 static void test_hash_speed(const char *algo, unsigned int secs, in test_hash_speed() 1249 static void test_mb_skcipher_speed(const char *algo, int enc, int secs, in test_mb_skcipher_speed() 1490 static void test_skcipher_speed(const char *algo, int enc, unsigned int secs, in test_skcipher_speed() 1620 static void test_acipher_speed(const char *algo, int enc, unsigned int secs, in test_acipher_speed() 1628 static void test_cipher_speed(const char *algo, int enc, unsigned int secs, in test_cipher_speed()
|
| /OK3568_Linux_fs/kernel/drivers/crypto/rockchip/ |
| H A D | rk_crypto_v3.c | 99 static bool rk_is_cipher_support(struct rk_crypto_dev *rk_dev, u32 algo, u32 mode, u32 key_len) in rk_is_cipher_support() 146 static bool rk_is_hash_support(struct rk_crypto_dev *rk_dev, u32 algo, u32 type) in rk_is_hash_support()
|
| /OK3568_Linux_fs/external/security/librkcrypto/demo/ |
| H A D | demo_ae.c | 40 static uint32_t algo = RK_ALGO_AES; variable 43 static RK_RES set_ae_config(rk_ae_config *config, uint32_t algo, uint32_t mode, uint32_t operation, in set_ae_config()
|
| /OK3568_Linux_fs/kernel/lib/raid6/ |
| H A D | algos.c | 126 const struct raid6_recov_calls *const *algo; in raid6_choose_recov() local 150 const struct raid6_calls *const *algo; in raid6_choose_gen() local
|