Home | History | Annotate | Download | only in engine

Lines Matching full:bignum

107 static int bn2crparam(const BIGNUM *a, struct crparam *crp);
108 static int crparam2bn(struct crparam *crp, BIGNUM *a);
110 static int cryptodev_asym(struct crypt_kop *kop, int rlen, BIGNUM *r,
111 int slen, BIGNUM *s);
113 static int cryptodev_bn_mod_exp(BIGNUM *r, const BIGNUM *a,
114 const BIGNUM *p, const BIGNUM *m, BN_CTX *ctx, BN_MONT_CTX *m_ctx);
115 static int cryptodev_rsa_nocrt_mod_exp(BIGNUM *r0, const BIGNUM *I,
117 static int cryptodev_rsa_mod_exp(BIGNUM *r0, const BIGNUM *I, RSA *rsa, BN_CTX *ctx);
118 static int cryptodev_dsa_bn_mod_exp(DSA *dsa, BIGNUM *r, BIGNUM *a,
119 const BIGNUM *p, const BIGNUM *m, BN_CTX *ctx, BN_MONT_CTX *m_ctx);
120 static int cryptodev_dsa_dsa_mod_exp(DSA *dsa, BIGNUM *t1, BIGNUM *g,
121 BIGNUM *u1, BIGNUM *pub_key, BIGNUM *u2, BIGNUM *p,
127 static int cryptodev_mod_exp_dh(const DH *dh, BIGNUM *r, const BIGNUM *a,
128 const BIGNUM *p, const BIGNUM *m, BN_CTX *ctx,
131 const BIGNUM *pub_key, DH *dh);
890 * Convert a BIGNUM to the representation that /dev/crypto needs.
895 bn2crparam(const BIGNUM *a, struct crparam *crp)
926 /* Convert a /dev/crypto parameter to a BIGNUM */
928 crparam2bn(struct crparam *crp, BIGNUM *a)
964 cryptodev_asym(struct crypt_kop *kop, int rlen, BIGNUM *r, int slen, BIGNUM *s)
994 cryptodev_bn_mod_exp(BIGNUM *r, const BIGNUM *a, const BIGNUM *p,
995 const BIGNUM *m, BN_CTX *ctx, BN_MONT_CTX *in_mont)
1038 cryptodev_rsa_nocrt_mod_exp(BIGNUM *r0, const BIGNUM *I, RSA *rsa, BN_CTX *ctx)
1048 cryptodev_rsa_mod_exp(BIGNUM *r0, const BIGNUM *I, RSA *rsa, BN_CTX *ctx)
1109 cryptodev_dsa_bn_mod_exp(DSA *dsa, BIGNUM *r, BIGNUM *a, const BIGNUM *p,
1110 const BIGNUM *m, BN_CTX *ctx, BN_MONT_CTX *m_ctx)
1116 cryptodev_dsa_dsa_mod_exp(DSA *dsa, BIGNUM *t1, BIGNUM *g,
1117 BIGNUM *u1, BIGNUM *pub_key, BIGNUM *u2, BIGNUM *p,
1120 BIGNUM t2;
1151 BIGNUM *r = NULL, *s = NULL;
1249 cryptodev_mod_exp_dh(const DH *dh, BIGNUM *r, const BIGNUM *a,
1250 const BIGNUM *p, const BIGNUM *m, BN_CTX *ctx,
1257 cryptodev_dh_compute_key(unsigned char *key, const BIGNUM *pub_key, DH *dh)