| /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() 120 static struct hash_algo hash_algo[] = { variable [all …]
|
| /OK3568_Linux_fs/u-boot/include/ |
| H A D | hash.h | 20 struct hash_algo { struct 44 int (*hash_init)(struct hash_algo *algo, void **ctxp); argument 57 int (*hash_update)(struct hash_algo *algo, void *ctx, const void *buf, argument 71 int (*hash_finish)(struct hash_algo *algo, void *ctx, void *dest_buf, argument 126 int hash_lookup_algo(const char *algo_name, struct hash_algo **algop); 140 struct hash_algo **algop);
|
| H A D | hw_sha.h | 45 int hw_sha_init(struct hash_algo *algo, void **ctxp); 59 int hw_sha_update(struct hash_algo *algo, void *ctx, const void *buf, 73 int hw_sha_finish(struct hash_algo *algo, void *ctx, void *dest_buf,
|
| /OK3568_Linux_fs/external/security/librkcrypto/src/ |
| H A D | rkcrypto_rsa_helper.c | 41 uint32_t hash_algo; member 60 static RK_RES get_oid_by_md(uint32_t hash_algo, const uint8_t **oid, uint32_t *old_len) in get_oid_by_md() argument 65 if (hash_oid_tbl[i].hash_algo == hash_algo) { in get_oid_by_md() 446 uint32_t *hlen, uint32_t *hash_algo) in get_hash_algo_from_padding() argument 488 *hash_algo = shaalgo; in get_hash_algo_from_padding() 534 uint32_t hash_algo, uint32_t hash_len) in mgf_mask() argument 546 hash_cfg.algo = hash_algo; in mgf_mask() 604 uint32_t hash_algo; in rsa_padding_add_oaep_type() local 611 res = get_hash_algo_from_padding(padding, &hlen, &hash_algo); in rsa_padding_add_oaep_type() 633 res = calc_padding_digest(hash_algo, label, label_len, p); in rsa_padding_add_oaep_type() [all …]
|
| /OK3568_Linux_fs/kernel/security/integrity/ima/ |
| H A D | ima_template_lib.c | 227 u8 hash_algo, in ima_eventdigest_init_common() argument 241 if (hash_algo < HASH_ALGO__LAST) { in ima_eventdigest_init_common() 244 hash_algo_name[hash_algo]); in ima_eventdigest_init_common() 333 u8 *cur_digest = NULL, hash_algo = HASH_ALGO_SHA1; in ima_eventdigest_ng_init() local 342 hash_algo = event_data->iint->ima_hash->algo; in ima_eventdigest_ng_init() 345 hash_algo, field_data); in ima_eventdigest_ng_init() 355 enum hash_algo hash_algo; in ima_eventdigest_modsig_init() local 364 hash_algo = HASH_ALGO_SHA1; in ima_eventdigest_modsig_init() 370 rc = ima_get_modsig_digest(event_data->modsig, &hash_algo, in ima_eventdigest_modsig_init() 374 else if (hash_algo == HASH_ALGO__LAST || cur_digestsize == 0) in ima_eventdigest_modsig_init() [all …]
|
| H A D | ima_modsig.c | 21 enum hash_algo hash_algo; member 83 hdr->hash_algo = HASH_ALGO__LAST; in ima_read_modsig() 113 &modsig->digest_size, &modsig->hash_algo); in ima_collect_modsig() 122 int ima_get_modsig_digest(const struct modsig *modsig, enum hash_algo *algo, in ima_get_modsig_digest() 125 *algo = modsig->hash_algo; in ima_get_modsig_digest()
|
| H A D | ima_appraise.c | 168 enum hash_algo ima_get_hash_algo(struct evm_ima_xattr_data *xattr_value, in ima_get_hash_algo() 172 enum hash_algo ret; in ima_get_hash_algo() 183 return sig->hash_algo; in ima_get_hash_algo() 335 enum hash_algo hash_algo; in ima_check_blacklist() local 344 ima_get_modsig_digest(modsig, &hash_algo, &digest, &digestsize); in ima_check_blacklist()
|
| H A D | ima.h | 262 enum hash_algo algo, struct modsig *modsig); 319 enum hash_algo ima_get_hash_algo(struct evm_ima_xattr_data *xattr_value, 360 static inline enum hash_algo 378 int ima_get_modsig_digest(const struct modsig *modsig, enum hash_algo *algo, 396 enum hash_algo *algo, const u8 **digest, in ima_get_modsig_digest()
|
| H A D | ima_main.c | 212 enum hash_algo hash_algo; in process_measurement() local 328 hash_algo = ima_get_hash_algo(xattr_value, xattr_len); in process_measurement() 330 rc = ima_collect_measurement(iint, file, buf, size, hash_algo, modsig); in process_measurement() 526 int hash_algo; in ima_file_hash() local 556 hash_algo = iint->ima_hash->algo; in ima_file_hash() 559 return hash_algo; in ima_file_hash()
|
| /OK3568_Linux_fs/kernel/crypto/asymmetric_keys/ |
| H A D | public_key.c | 66 const char *hash_algo, in software_key_determine_akcipher() argument 77 if (!hash_algo) in software_key_determine_akcipher() 84 pkey->pkey_algo, hash_algo); in software_key_determine_akcipher() 115 params->hash_algo, in software_key_query() 181 params->hash_algo, in software_key_eds_op() 264 if (!sig->hash_algo || strcmp(sig->hash_algo, "sm3") != 0) in cert_sig_digest_update() 272 tfm = crypto_alloc_shash(sig->hash_algo, 0, 0); in cert_sig_digest_update() 331 sig->hash_algo, in public_key_verify_signature()
|
| H A D | pkcs7_verify.c | 31 kenter(",%u,%s", sinfo->index, sinfo->sig->hash_algo); in pkcs7_digest() 37 if (!sinfo->sig->hash_algo) in pkcs7_digest() 43 tfm = crypto_alloc_shash(sinfo->sig->hash_algo, 0, 0); in pkcs7_digest() 126 enum hash_algo *hash_algo) in pkcs7_get_digest() argument 145 if (!strcmp(hash_algo_name[i], sinfo->sig->hash_algo)) { in pkcs7_get_digest() 146 *hash_algo = i; in pkcs7_get_digest()
|
| H A D | x509_cert_parser.c | 207 ctx->cert->sig->hash_algo = "md4"; in x509_note_pkey_algo() 211 ctx->cert->sig->hash_algo = "sha1"; in x509_note_pkey_algo() 215 ctx->cert->sig->hash_algo = "sha256"; in x509_note_pkey_algo() 219 ctx->cert->sig->hash_algo = "sha384"; in x509_note_pkey_algo() 223 ctx->cert->sig->hash_algo = "sha512"; in x509_note_pkey_algo() 227 ctx->cert->sig->hash_algo = "sha224"; in x509_note_pkey_algo() 231 ctx->cert->sig->hash_algo = "streebog256"; in x509_note_pkey_algo() 235 ctx->cert->sig->hash_algo = "streebog512"; in x509_note_pkey_algo() 239 ctx->cert->sig->hash_algo = "sm3"; in x509_note_pkey_algo()
|
| H A D | pkcs7_parser.c | 231 ctx->sinfo->sig->hash_algo = "md4"; in pkcs7_sig_note_digest_algo() 234 ctx->sinfo->sig->hash_algo = "md5"; in pkcs7_sig_note_digest_algo() 237 ctx->sinfo->sig->hash_algo = "sha1"; in pkcs7_sig_note_digest_algo() 240 ctx->sinfo->sig->hash_algo = "sha256"; in pkcs7_sig_note_digest_algo() 243 ctx->sinfo->sig->hash_algo = "sha384"; in pkcs7_sig_note_digest_algo() 246 ctx->sinfo->sig->hash_algo = "sha512"; in pkcs7_sig_note_digest_algo() 249 ctx->sinfo->sig->hash_algo = "sha224"; in pkcs7_sig_note_digest_algo()
|
| H A D | asym_tpm.c | 365 static int determine_akcipher(const char *encoding, const char *hash_algo, in determine_akcipher() argument 369 if (!hash_algo) { in determine_akcipher() 375 hash_algo) >= CRYPTO_MAX_ALG_NAME) in determine_akcipher() 404 ret = determine_akcipher(params->encoding, params->hash_algo, alg_name); in tpm_key_query() 458 ret = determine_akcipher(params->encoding, params->hash_algo, alg_name); in tpm_key_encrypt() 515 if (params->hash_algo) in tpm_key_decrypt() 644 if (params->hash_algo) { in tpm_key_sign() 646 lookup_asn1(params->hash_algo); in tpm_key_sign() 753 ret = determine_akcipher(sig->encoding, sig->hash_algo, alg_name); in tpm_key_verify_signature()
|
| H A D | x509_public_key.c | 43 if (!sig->hash_algo) { in x509_get_sig_params() 57 tfm = crypto_alloc_shash(sig->hash_algo, 0, 0); in x509_get_sig_params() 190 cert->sig->pkey_algo, cert->sig->hash_algo); in x509_key_preparse()
|
| /OK3568_Linux_fs/kernel/security/integrity/ |
| H A D | digsig_asymmetric.c | 98 if (hdr->hash_algo >= HASH_ALGO__LAST) in asymmetric_verify() 107 pks.hash_algo = hash_algo_name[hdr->hash_algo]; in asymmetric_verify() 108 switch (hdr->hash_algo) { in asymmetric_verify()
|
| /OK3568_Linux_fs/kernel/drivers/crypto/rockchip/ |
| H A D | rk_crypto_core.h | 374 #define RK_HASH_ALGO_INIT(hash_algo, algo_name) {\ argument 377 .algo = HASH_ALGO_##hash_algo,\ 387 .digestsize = hash_algo##_DIGEST_SIZE,\ 396 .cra_blocksize = hash_algo##_BLOCK_SIZE,\ 407 #define RK_HMAC_ALGO_INIT(hash_algo, algo_name) {\ argument 410 .algo = HASH_ALGO_##hash_algo,\ 421 .digestsize = hash_algo##_DIGEST_SIZE,\ 430 .cra_blocksize = hash_algo##_BLOCK_SIZE,\
|
| /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() 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/kernel/scripts/ |
| H A D | sign-file.c | 219 char *hash_algo = NULL; in main() local 272 hash_algo = argv[1]; in main() 274 hash_algo = argv[0]; in main() 289 if (strcmp(hash_algo, "sha1") != 0) { in main() 310 digest_algo = EVP_get_digestbyname(hash_algo); in main()
|
| /OK3568_Linux_fs/kernel/include/crypto/ |
| H A D | pkcs7.h | 45 u32 *len, enum hash_algo *hash_algo);
|
| /OK3568_Linux_fs/kernel/security/integrity/evm/ |
| H A D | evm_crypto.c | 72 static struct shash_desc *init_desc(char type, uint8_t hash_algo) in init_desc() argument 87 if (hash_algo >= HASH_ALGO__LAST) in init_desc() 90 tfm = &evm_tfm[hash_algo]; in init_desc() 91 algo = hash_algo_name[hash_algo]; in init_desc()
|
| /OK3568_Linux_fs/kernel/drivers/crypto/virtio/ |
| H A D | virtio_crypto_core.c | 296 u32 hash_algo = 0; in virtcrypto_probe() local 344 hash_algo, &hash_algo); in virtcrypto_probe() 375 vcrypto->hash_algo = hash_algo; in virtcrypto_probe()
|
| /OK3568_Linux_fs/kernel/fs/ubifs/ |
| H A D | sb.c | 182 sup->hash_algo = cpu_to_le16(c->auth_hash_algo); in create_default_filesystem() 187 sup->hash_algo = cpu_to_le16(0xffff); in create_default_filesystem() 543 int hash_algo; in authenticate_sb_node() local 565 hash_algo = le16_to_cpu(sup->hash_algo); in authenticate_sb_node() 566 if (hash_algo >= HASH_ALGO__LAST) { in authenticate_sb_node() 568 hash_algo); in authenticate_sb_node() 572 if (strcmp(hash_algo_name[hash_algo], c->auth_hash_name)) { in authenticate_sb_node() 574 " but %s is specified", hash_algo_name[hash_algo], in authenticate_sb_node()
|
| /OK3568_Linux_fs/external/security/librkcrypto/demo/ |
| H A D | demo_hash.c | 37 static uint32_t hash_algo = RK_ALGO_SHA256; variable 65 hash_cfg.algo = hash_algo; in demo_hash() 117 hash_cfg.algo = hash_algo; in demo_hash_virt()
|
| /OK3568_Linux_fs/prebuilts/gcc/linux-x86/arm/gcc-arm-10.3-2021.07-x86_64-arm-none-linux-gnueabihf/arm-none-linux-gnueabihf/libc/usr/include/linux/ |
| H A D | hash_info.h | 17 enum hash_algo { enum
|