Searched refs:hash_cfg (Results 1 – 7 of 7) sorted by relevance
| /OK3568_Linux_fs/external/security/librkcrypto/demo/ |
| H A D | demo_hash.c | 43 rk_hash_config hash_cfg; in demo_hash() local 64 memset(&hash_cfg, 0x00, sizeof(hash_cfg)); in demo_hash() 65 hash_cfg.algo = hash_algo; in demo_hash() 67 res = rk_hash_init(&hash_cfg, &hash_hdl); in demo_hash() 102 rk_hash_config hash_cfg; in demo_hash_virt() local 116 memset(&hash_cfg, 0x00, sizeof(hash_cfg)); in demo_hash_virt() 117 hash_cfg.algo = hash_algo; in demo_hash_virt() 119 res = rk_hash_init(&hash_cfg, &hash_hdl); in demo_hash_virt() 167 rk_hash_config hash_cfg; in demo_hmac() local 187 memset(&hash_cfg, 0x00, sizeof(hash_cfg)); in demo_hmac() [all …]
|
| /OK3568_Linux_fs/external/security/librkcrypto/test/ |
| H A D | test_hash.c | 53 rk_hash_config hash_cfg; in test_hash_item_virt() local 64 memset(&hash_cfg, 0x00, sizeof(hash_cfg)); in test_hash_item_virt() 65 hash_cfg.algo = algo; in test_hash_item_virt() 69 hash_cfg.key = key; in test_hash_item_virt() 70 hash_cfg.key_len = key_len; in test_hash_item_virt() 74 res = rk_hash_init(&hash_cfg, &hash_hdl); in test_hash_item_virt() 145 rk_hash_config hash_cfg; in test_hash_item_fd() local 156 memset(&hash_cfg, 0x00, sizeof(hash_cfg)); in test_hash_item_fd() 157 hash_cfg.algo = algo; in test_hash_item_fd() 161 hash_cfg.key = key; in test_hash_item_fd() [all …]
|
| H A D | test_multi.c | 56 rk_hash_config hash_cfg; in test_nosupport_multi() local 84 memset(&hash_cfg, 0x00, sizeof(hash_cfg)); in test_nosupport_multi() 86 hash_cfg.algo = RK_ALGO_HMAC_SHA256; in test_nosupport_multi() 88 res = rk_hash_init(&hash_cfg, &hdl_hash1); in test_nosupport_multi() 96 res = rk_hash_init(&hash_cfg, &hdl_hash2); in test_nosupport_multi()
|
| H A D | test_throughput.c | 808 rk_hash_config hash_cfg; in test_hash_item_tp() local 821 memset(&hash_cfg, 0x00, sizeof(hash_cfg)); in test_hash_item_tp() 822 hash_cfg.algo = algo; in test_hash_item_tp() 827 hash_cfg.key = key; in test_hash_item_tp() 828 hash_cfg.key_len = key_len; in test_hash_item_tp() 834 res = rk_hash_init(&hash_cfg, &hash_hdl); in test_hash_item_tp()
|
| H A D | test_rsa.c | 574 rk_hash_config hash_cfg; in calc_padding_digest() local 581 memset(&hash_cfg, 0x00, sizeof(hash_cfg)); in calc_padding_digest() 583 hash_cfg.algo = hash_algo; in calc_padding_digest() 585 res = rk_hash_init(&hash_cfg, &hash_hdl); in calc_padding_digest()
|
| /OK3568_Linux_fs/external/security/librkcrypto/src/ |
| H A D | rkcrypto_rsa_helper.c | 497 rk_hash_config hash_cfg; in calc_padding_digest() local 500 memset(&hash_cfg, 0x00, sizeof(hash_cfg)); in calc_padding_digest() 502 hash_cfg.algo = algo; in calc_padding_digest() 504 res = rk_hash_init(&hash_cfg, &hash_hdl); in calc_padding_digest() 542 rk_hash_config hash_cfg; in mgf_mask() local 545 memset(&hash_cfg, 0x00, sizeof(hash_cfg)); in mgf_mask() 546 hash_cfg.algo = hash_algo; in mgf_mask() 559 res = rk_hash_init(&hash_cfg, &hash_hdl); in mgf_mask() 863 rk_hash_config hash_cfg; in rsa_padding_add_pss_type() local 908 memset(&hash_cfg, 0x00, sizeof(hash_cfg)); in rsa_padding_add_pss_type() [all …]
|
| H A D | rkcrypto_core.c | 875 rk_hash_config *hash_cfg; in rk_hash_final() local 881 hash_cfg = rk_get_sess_config(handle); in rk_hash_final() 882 if (!hash_cfg) { in rk_hash_final() 887 hash_tmp_len = rk_get_hash_len(hash_cfg->algo); in rk_hash_final()
|