Lines Matching refs:sig_len
75 const uint32_t sig_len, const uint8_t *hash, in rsa_verify_key() argument
87 if (sig_len != (prop->num_bits / 8)) { in rsa_verify_key()
88 debug("Signature is of incorrect length %d\n", sig_len); in rsa_verify_key()
95 if (sig_len > RSA_MAX_SIG_BITS / 8) { in rsa_verify_key()
96 debug("Signature length %u exceeds maximum %d\n", sig_len, in rsa_verify_key()
101 uint8_t buf[sig_len]; in rsa_verify_key()
110 ret = rsa_mod_exp(mod_exp_dev, sig, sig_len, prop, buf); in rsa_verify_key()
112 ret = rsa_mod_exp_sw(sig, sig_len, prop, buf); in rsa_verify_key()
129 if (memcmp((uint8_t *)buf + pad_len, hash, sig_len - pad_len)) { in rsa_verify_key()
154 uint sig_len, int node) in rsa_verify_with_keynode() argument
185 ret = rsa_verify_key(&prop, sig, sig_len, hash, in rsa_verify_with_keynode()
193 uint8_t *sig, uint sig_len) in rsa_verify() argument
230 ret = rsa_verify_with_keynode(info, hash, sig, sig_len, in rsa_verify()
239 ret = rsa_verify_with_keynode(info, hash, sig, sig_len, node); in rsa_verify()
248 ret = rsa_verify_with_keynode(info, hash, sig, sig_len, in rsa_verify()