Lines Matching refs:exponent_size
97 const void *exponent, size_t exponent_size, in dnssec_rsa_verify_raw() argument
111 e = BN_bin2bn(exponent, exponent_size, NULL); in dnssec_rsa_verify_raw()
168 ge = gcry_mpi_scan(&e, GCRYMPI_FMT_USG, exponent, exponent_size, NULL); in dnssec_rsa_verify_raw()
244 size_t exponent_size, modulus_size; in dnssec_rsa_verify() local
257 exponent_size = in dnssec_rsa_verify()
261 if (exponent_size < 256) in dnssec_rsa_verify()
264 if (3 + exponent_size >= dnskey->dnskey.key_size) in dnssec_rsa_verify()
267 modulus = (uint8_t*) dnskey->dnskey.key + 3 + exponent_size; in dnssec_rsa_verify()
268 modulus_size = dnskey->dnskey.key_size - 3 - exponent_size; in dnssec_rsa_verify()
274 exponent_size = (size_t) ((uint8_t*) dnskey->dnskey.key)[0]; in dnssec_rsa_verify()
276 if (exponent_size <= 0) in dnssec_rsa_verify()
279 if (1 + exponent_size >= dnskey->dnskey.key_size) in dnssec_rsa_verify()
282 modulus = (uint8_t*) dnskey->dnskey.key + 1 + exponent_size; in dnssec_rsa_verify()
283 modulus_size = dnskey->dnskey.key_size - 1 - exponent_size; in dnssec_rsa_verify()
290 exponent, exponent_size, in dnssec_rsa_verify()