Lines Matching refs:rsa_len
2425 u32 rsa_len; in parse_config() local
2462 rsa_len = (cfg0 >> 10) & 0x3; in parse_config()
2465 if (rsa_len == 0) { in parse_config()
2468 } else if (rsa_len == 1) { in parse_config()
2471 } else if (rsa_len == 2) { in parse_config()
2562 u32 rsa_len = si->rsa_algo / 8; in mode2_verify() local
2571 for (i = 0; i < rsa_len; i++) { in mode2_verify()
2572 rsa_m_rev[i] = rsa_m[rsa_len - 1 - i]; in mode2_verify()
2573 signature_rev[i] = signature[rsa_len - 1 - i]; in mode2_verify()
2579 ret = rsa_mod_exp(mod_exp_dev, signature_rev, rsa_len, &prop, sign_ret); in mode2_verify()
2585 ret = rsa_mod_exp(mod_exp_dev, signature, rsa_len, &prop, sign_ret); in mode2_verify()
2594 for (i = 0; i < rsa_len / 2; i++) { in mode2_verify()
2596 sign_ret[i] = sign_ret[rsa_len - 1 - i]; in mode2_verify()
2597 sign_ret[rsa_len - 1 - i] = tmp; in mode2_verify()
2601 ret = memcmp(digest, sign_ret + (rsa_len - si->digest_len), si->digest_len); in mode2_verify()