Lines Matching refs:req
71 static int ecrdsa_verify(struct akcipher_request *req) in ecrdsa_verify() argument
73 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); in ecrdsa_verify()
77 unsigned int ndigits = req->dst_len / sizeof(u64); in ecrdsa_verify()
94 !req->src || in ecrdsa_verify()
96 req->dst_len != ctx->digest_len || in ecrdsa_verify()
97 req->dst_len != ctx->curve->g.ndigits * sizeof(u64) || in ecrdsa_verify()
99 req->dst_len * 2 != req->src_len || in ecrdsa_verify()
100 WARN_ON(req->src_len > sizeof(sig)) || in ecrdsa_verify()
101 WARN_ON(req->dst_len > sizeof(digest))) in ecrdsa_verify()
104 sg_copy_to_buffer(req->src, sg_nents_for_len(req->src, req->src_len), in ecrdsa_verify()
105 sig, req->src_len); in ecrdsa_verify()
106 sg_pcopy_to_buffer(req->src, in ecrdsa_verify()
107 sg_nents_for_len(req->src, in ecrdsa_verify()
108 req->src_len + req->dst_len), in ecrdsa_verify()
109 digest, req->dst_len, req->src_len); in ecrdsa_verify()