/netbsd-current/external/lgpl3/gmp/dist/mpn/generic/ |
H A D | brootinv.c | 83 mp_limb_t kinv, k2, r0, y0; local 94 binvert_limb (kinv, k); 107 r0 = kinv * (k2 * r0 * 2 - y0 * powsquaredlimb(r0, k2 & 0x3f)); /* 8 bits */ 108 r0 = kinv * (k2 * r0 * 2 - y0 * powsquaredlimb(r0, k2 & 0x3fff)); /* 16 bits */ 114 r0 = kinv * (k2 * r0 * 2 - y0 * powsquaredlimb(r0, k2)); 156 mpn_pi1_bdiv_q_1 (rp, tp, bn, k, kinv, 0);
|
H A D | broot.c | 80 mp_limb_t a0, r0, km1, kp1h, kinv; local 105 binvert_limb (kinv, k); 116 r0 = kinv * r0 * (k+1 - akm1[0] * powlimb (r0, k & 0x7f)); /* 8 bits */ 117 r0 = kinv * r0 * (k+1 - akm1[0] * powlimb (r0, k & 0x7fff)); /* 16 bits */ 118 r0 = kinv * r0 * (k+1 - akm1[0] * powlimb (r0, k)); /* 32 bits */ 124 r0 = kinv * r0 * (k+1 - akm1[0] * powlimb (r0, k)); 164 mpn_pi1_bdiv_q_1 (rp + rn, ep + rn, sizes[i] - rn, k, kinv, 0);
|
/netbsd-current/crypto/external/bsd/openssl.old/dist/crypto/ec/ |
H A D | ecdsa_sign.c | 20 const BIGNUM *kinv, const BIGNUM *rp, 24 return eckey->meth->sign_sig(dgst, dlen, kinv, rp, eckey); 36 unsigned char *sig, unsigned int *siglen, const BIGNUM *kinv, 40 return eckey->meth->sign(type, dgst, dlen, sig, siglen, kinv, r, eckey); 19 ECDSA_do_sign_ex(const unsigned char *dgst, int dlen, const BIGNUM *kinv, const BIGNUM *rp, EC_KEY *eckey) argument 35 ECDSA_sign_ex(int type, const unsigned char *dgst, int dlen, unsigned char *sig, unsigned int *siglen, const BIGNUM *kinv, const BIGNUM *r, EC_KEY *eckey) argument
|
H A D | ecdsa_ossl.c | 19 const BIGNUM *kinv, const BIGNUM *r, EC_KEY *eckey) 23 s = ECDSA_do_sign_ex(dgst, dlen, kinv, r, eckey); 159 BIGNUM *kinv = NULL, *s, *m = NULL; local 220 if (!ecdsa_sign_setup(eckey, ctx, &kinv, &ret->r, dgst, dgst_len)) { 224 ckinv = kinv; 261 * if kinv and r have been supplied by the caller, don't 262 * generate new kinv and r values 282 BN_clear_free(kinv); 17 ossl_ecdsa_sign(int type, const unsigned char *dgst, int dlen, unsigned char *sig, unsigned int *siglen, const BIGNUM *kinv, const BIGNUM *r, EC_KEY *eckey) argument
|
H A D | ec_kmeth.c | 210 const BIGNUM *kinv, const BIGNUM *r, 285 const BIGNUM *kinv, const BIGNUM *r, 206 EC_KEY_METHOD_set_sign(EC_KEY_METHOD *meth, int (*sign)(int type, const unsigned char *dgst, int dlen, unsigned char *sig, unsigned int *siglen, const BIGNUM *kinv, const BIGNUM *r, EC_KEY *eckey), int (*sign_setup)(EC_KEY *eckey, BN_CTX *ctx_in, BIGNUM **kinvp, BIGNUM **rp), ECDSA_SIG *(*sign_sig)(const unsigned char *dgst, int dgst_len, const BIGNUM *in_kinv, const BIGNUM *in_r, EC_KEY *eckey)) argument 281 EC_KEY_METHOD_get_sign(const EC_KEY_METHOD *meth, int (**psign)(int type, const unsigned char *dgst, int dlen, unsigned char *sig, unsigned int *siglen, const BIGNUM *kinv, const BIGNUM *r, EC_KEY *eckey), int (**psign_setup)(EC_KEY *eckey, BN_CTX *ctx_in, BIGNUM **kinvp, BIGNUM **rp), ECDSA_SIG *(**psign_sig)(const unsigned char *dgst, int dgst_len, const BIGNUM *in_kinv, const BIGNUM *in_r, EC_KEY *eckey)) argument
|
H A D | ec_local.h | 617 *sig, unsigned int *siglen, const BIGNUM *kinv, 648 const BIGNUM *kinv, const BIGNUM *r, EC_KEY *eckey);
|
/netbsd-current/crypto/external/bsd/openssl/dist/crypto/ec/ |
H A D | ecdsa_sign.c | 26 const BIGNUM *kinv, const BIGNUM *rp, 30 return eckey->meth->sign_sig(dgst, dlen, kinv, rp, eckey); 42 unsigned char *sig, unsigned int *siglen, const BIGNUM *kinv, 46 return eckey->meth->sign(type, dgst, dlen, sig, siglen, kinv, r, eckey); 25 ECDSA_do_sign_ex(const unsigned char *dgst, int dlen, const BIGNUM *kinv, const BIGNUM *rp, EC_KEY *eckey) argument 41 ECDSA_sign_ex(int type, const unsigned char *dgst, int dlen, unsigned char *sig, unsigned int *siglen, const BIGNUM *kinv, const BIGNUM *r, EC_KEY *eckey) argument
|
H A D | ecdsa_ossl.c | 69 const BIGNUM *kinv, const BIGNUM *r, EC_KEY *eckey) 73 if (sig == NULL && (kinv == NULL || r == NULL)) { 78 s = ECDSA_do_sign_ex(dgst, dlen, kinv, r, eckey); 219 BIGNUM *kinv = NULL, *s, *m = NULL; local 284 if (!ecdsa_sign_setup(eckey, ctx, &kinv, &ret->r, dgst, dgst_len)) { 288 ckinv = kinv; 325 * if kinv and r have been supplied by the caller, don't 326 * generate new kinv and r values 351 BN_clear_free(kinv); 67 ossl_ecdsa_sign(int type, const unsigned char *dgst, int dlen, unsigned char *sig, unsigned int *siglen, const BIGNUM *kinv, const BIGNUM *r, EC_KEY *eckey) argument
|
H A D | ecp_s390x_nistp.c | 127 const BIGNUM *kinv, 175 if (r == NULL || kinv == NULL) { 193 if (ossl_ec_group_do_inverse_ord(group, k, kinv, NULL) == 0 303 const BIGNUM *kinv,\ 307 return ecdsa_s390x_nistp_sign_sig(dgst, dgstlen, kinv, r, eckey, \ 125 ecdsa_s390x_nistp_sign_sig(const unsigned char *dgst, int dgstlen, const BIGNUM *kinv, const BIGNUM *r, EC_KEY *eckey, unsigned int fc, int len) argument
|
H A D | ec_kmeth.c | 237 const BIGNUM *kinv, const BIGNUM *r, 312 const BIGNUM *kinv, const BIGNUM *r, 233 EC_KEY_METHOD_set_sign(EC_KEY_METHOD *meth, int (*sign)(int type, const unsigned char *dgst, int dlen, unsigned char *sig, unsigned int *siglen, const BIGNUM *kinv, const BIGNUM *r, EC_KEY *eckey), int (*sign_setup)(EC_KEY *eckey, BN_CTX *ctx_in, BIGNUM **kinvp, BIGNUM **rp), ECDSA_SIG *(*sign_sig)(const unsigned char *dgst, int dgst_len, const BIGNUM *in_kinv, const BIGNUM *in_r, EC_KEY *eckey)) argument 308 EC_KEY_METHOD_get_sign(const EC_KEY_METHOD *meth, int (**psign)(int type, const unsigned char *dgst, int dlen, unsigned char *sig, unsigned int *siglen, const BIGNUM *kinv, const BIGNUM *r, EC_KEY *eckey), int (**psign_setup)(EC_KEY *eckey, BN_CTX *ctx_in, BIGNUM **kinvp, BIGNUM **rp), ECDSA_SIG *(**psign_sig)(const unsigned char *dgst, int dgst_len, const BIGNUM *in_kinv, const BIGNUM *in_r, EC_KEY *eckey)) argument
|
H A D | ec_local.h | 182 const BIGNUM *kinv, const BIGNUM *r, 649 *sig, unsigned int *siglen, const BIGNUM *kinv, 683 const BIGNUM *kinv, const BIGNUM *r, EC_KEY *eckey);
|
/netbsd-current/crypto/external/bsd/openssl/dist/test/ |
H A D | ecdsatest.c | 86 BIGNUM *kinv = NULL, *rp = NULL; local 131 if (!TEST_true(ECDSA_sign_setup(key, NULL, &kinv, &rp)) 133 kinv, rp, key)) 155 BN_clear_free(kinv); 358 BIGNUM *kinv = NULL, *rp = NULL; local 372 && TEST_int_eq(ECDSA_sign_setup(eckey, NULL, &kinv, &rp), 1) 374 kinv, rp, eckey), 1) 378 kinv, rp, eckey), 1) 384 BN_free(kinv);
|
/netbsd-current/crypto/external/bsd/openssl.old/dist/crypto/dsa/ |
H A D | dsa_ossl.c | 64 BIGNUM *kinv = NULL; local 99 if (!dsa_sign_setup(dsa, ctx, &kinv, &ret->r, dgst, dlen)) 147 if (!BN_mod_mul(ret->s, ret->s, kinv, dsa->q, ctx)) 172 BN_clear_free(kinv); 187 BIGNUM *k, *kinv = NULL, *r = *rp; local 282 if ((kinv = dsa_mod_inverse_fermat(k, dsa->q, ctx)) == NULL) 286 *kinvp = kinv; 287 kinv = NULL;
|
/netbsd-current/crypto/external/bsd/openssl/dist/crypto/dsa/ |
H A D | dsa_ossl.c | 75 BIGNUM *kinv = NULL; local 113 if (!dsa_sign_setup(dsa, ctx, &kinv, &ret->r, dgst, dlen)) 164 if (!BN_mod_mul(ret->s, ret->s, kinv, dsa->params.q, ctx)) 194 BN_clear_free(kinv); 214 BIGNUM *k, *kinv = NULL, *r = *rp; local 317 if ((kinv = dsa_mod_inverse_fermat(k, dsa->params.q, ctx)) == NULL) 321 *kinvp = kinv; 322 kinv = NULL;
|
/netbsd-current/crypto/external/bsd/heimdal/dist/lib/hcrypto/ |
H A D | dsa.c | 71 free_if(dsa->kinv);
|
H A D | dsa.h | 103 BIGNUM *kinv; member in struct:DSA
|
/netbsd-current/crypto/external/bsd/openssl.old/dist/test/ |
H A D | ecdsatest.c | 108 BIGNUM *kinv = NULL, *rp = NULL; local 150 if (!TEST_true(ECDSA_sign_setup(key, NULL, &kinv, &rp)) 152 kinv, rp, key)) 178 BN_clear_free(kinv);
|
/netbsd-current/crypto/external/bsd/openssl/dist/providers/implementations/signature/ |
H A D | ecdsa_sig.c | 93 BIGNUM *kinv; member in struct:__anon551 186 if (ctx->kattest && !ECDSA_sign_setup(ctx->ec, NULL, &ctx->kinv, &ctx->r)) 196 ret = ECDSA_sign_ex(0, tbs, tbslen, sig, &sltmp, ctx->kinv, ctx->r, ctx->ec); 385 BN_clear_free(ctx->kinv); 411 if (srcctx->kinv != NULL || srcctx->r != NULL)
|
/netbsd-current/crypto/external/bsd/openssl.old/dist/include/openssl/ |
H A D | ec.h | 1198 * \param kinv BIGNUM with a pre-computed inverse k (optional) 1205 const BIGNUM *kinv, const BIGNUM *rp, 1223 * \param kinv BIGNUM pointer for the inverse of k 1227 int ECDSA_sign_setup(EC_KEY *eckey, BN_CTX *ctx, BIGNUM **kinv, BIGNUM **rp); 1249 * \param kinv BIGNUM with a pre-computed inverse k (optional) 1257 const BIGNUM *kinv, const BIGNUM *rp, EC_KEY *eckey); 1308 const BIGNUM *kinv, const BIGNUM *r, 1352 const BIGNUM *kinv, const BIGNUM *r,
|
/netbsd-current/crypto/external/bsd/openssl/dist/include/openssl/ |
H A D | ec.h | 1372 * \param kinv BIGNUM with a pre-computed inverse k (optional) 1379 int dgstlen, const BIGNUM *kinv, 1397 * \param kinv BIGNUM pointer for the inverse of k 1402 BIGNUM **kinv, BIGNUM **rp); 1425 * \param kinv BIGNUM with a pre-computed inverse k (optional) 1433 unsigned int *siglen, const BIGNUM *kinv, 1485 const BIGNUM *kinv, const BIGNUM *r, 1529 const BIGNUM *kinv, const BIGNUM *r,
|