Lines Matching refs:rsa_mpi_key
19 struct rsa_mpi_key { struct
29 static int _rsa_enc(const struct rsa_mpi_key *key, MPI c, MPI m) in _rsa_enc() argument
43 static int _rsa_dec(const struct rsa_mpi_key *key, MPI m, MPI c) in _rsa_dec()
57 static int _rsa_sign(const struct rsa_mpi_key *key, MPI s, MPI m) in _rsa_sign()
71 static int _rsa_verify(const struct rsa_mpi_key *key, MPI m, MPI s) in _rsa_verify()
81 static inline struct rsa_mpi_key *rsa_get_key(struct crypto_akcipher *tfm) in rsa_get_key()
89 const struct rsa_mpi_key *pkey = rsa_get_key(tfm); in rsa_enc()
128 const struct rsa_mpi_key *pkey = rsa_get_key(tfm); in rsa_dec()
166 const struct rsa_mpi_key *pkey = rsa_get_key(tfm); in rsa_sign()
205 const struct rsa_mpi_key *pkey = rsa_get_key(tfm); in rsa_verify()
242 static void rsa_free_mpi_key(struct rsa_mpi_key *key) in rsa_free_mpi_key()
270 struct rsa_mpi_key *mpi_key = akcipher_tfm_ctx(tfm); in rsa_set_pub_key()
304 struct rsa_mpi_key *mpi_key = akcipher_tfm_ctx(tfm); in rsa_set_priv_key()
341 struct rsa_mpi_key *pkey = akcipher_tfm_ctx(tfm); in rsa_max_size()
348 struct rsa_mpi_key *pkey = akcipher_tfm_ctx(tfm); in rsa_exit_tfm()
367 .cra_ctxsize = sizeof(struct rsa_mpi_key),