Lines Matching refs:req
86 static int rsa_enc(struct akcipher_request *req) in rsa_enc() argument
88 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); in rsa_enc()
103 m = mpi_read_raw_from_sgl(req->src, req->src_len); in rsa_enc()
111 ret = mpi_write_to_sgl(c, req->dst, req->dst_len, &sign); in rsa_enc()
125 static int rsa_dec(struct akcipher_request *req) in rsa_dec() argument
127 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); in rsa_dec()
142 c = mpi_read_raw_from_sgl(req->src, req->src_len); in rsa_dec()
150 ret = mpi_write_to_sgl(m, req->dst, req->dst_len, &sign); in rsa_dec()
163 static int rsa_sign(struct akcipher_request *req) in rsa_sign() argument
165 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); in rsa_sign()
180 m = mpi_read_raw_from_sgl(req->src, req->src_len); in rsa_sign()
188 ret = mpi_write_to_sgl(s, req->dst, req->dst_len, &sign); in rsa_sign()
202 static int rsa_verify(struct akcipher_request *req) in rsa_verify() argument
204 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); in rsa_verify()
219 s = mpi_read_raw_from_sgl(req->src, req->src_len); in rsa_verify()
229 ret = mpi_write_to_sgl(m, req->dst, req->dst_len, &sign); in rsa_verify()