Lines Matching refs:checksum
64 struct checksum_algo *checksum = info->checksum; in padding_pkcs_15_verify() local
65 int ret, pad_len = msg_len - checksum->checksum_len; in padding_pkcs_15_verify()
68 ret = rsa_verify_padding(msg, pad_len, checksum); in padding_pkcs_15_verify()
105 static int mask_generation_function1(struct checksum_algo *checksum, in mask_generation_function1() argument
113 int hash_len = checksum->checksum_len; in mask_generation_function1()
132 ret = checksum->calculate(checksum->name, in mask_generation_function1()
156 static int compute_hash_prime(struct checksum_algo *checksum, in compute_hash_prime() argument
172 ret = checksum->calculate(checksum->name, region, region_count, hprime); in compute_hash_prime()
197 struct checksum_algo *checksum = info->checksum; in padding_pss_verify() local
233 mask_generation_function1(checksum, h, h_len, db_mask, db_mask_len); in padding_pss_verify()
254 compute_hash_prime(checksum, pad_zero, 8, in padding_pss_verify()
296 struct checksum_algo *checksum = info->checksum; in rsa_verify_key() local
300 if (!prop || !sig || !hash || !checksum) in rsa_verify_key()
308 debug("Checksum algorithm: %s", checksum->name); in rsa_verify_key()
318 hash_len = checksum->checksum_len; in rsa_verify_key()
415 if (info->checksum->checksum_len > in rsa_verify()
418 __func__, info->checksum->name, info->crypto->name); in rsa_verify()
429 ret = info->checksum->calculate(info->checksum->name, in rsa_verify()