/freebsd-9.3-release/crypto/openssl/crypto/dsa/ |
H A D | dsa_key.c | 82 BIGNUM *pub_key = NULL, *priv_key = NULL; local 87 if (dsa->priv_key == NULL) { 88 if ((priv_key = BN_new()) == NULL) 91 priv_key = dsa->priv_key; 94 if (!BN_rand_range(priv_key, dsa->q)) 96 while (BN_is_zero(priv_key)) ; 111 BN_with_flags(prk, priv_key, BN_FLG_CONSTTIME); 113 prk = priv_key; 119 dsa->priv_key [all...] |
H A D | dsa_lib.c | 179 ret->priv_key = NULL; 238 if (r->priv_key != NULL) 239 BN_clear_free(r->priv_key); 283 * DSA has p, q, g, optional pub_key, optional priv_key. DH has p, 284 * optional length, g, optional pub_key, optional priv_key. 305 if (r->priv_key != NULL) 306 if ((ret->priv_key = BN_dup(r->priv_key)) == NULL)
|
H A D | dsa_asn1.c | 117 ASN1_SIMPLE(DSA, priv_key, BIGNUM)
|
/freebsd-9.3-release/crypto/openssl/fips/dsa/ |
H A D | fips_dsa_key.c | 107 BIGNUM *pub_key = NULL, *priv_key = NULL; local 118 if (dsa->priv_key == NULL) { 119 if ((priv_key = BN_new()) == NULL) 122 priv_key = dsa->priv_key; 125 if (!BN_rand_range(priv_key, dsa->q)) 127 while (BN_is_zero(priv_key)) ; 142 BN_with_flags(prk, priv_key, BN_FLG_CONSTTIME); 144 prk = priv_key; 150 dsa->priv_key [all...] |
H A D | fips_dsa_lib.c | 96 if (r->priv_key != NULL) 97 BN_clear_free(r->priv_key);
|
/freebsd-9.3-release/crypto/openssl/crypto/ec/ |
H A D | ec_key.c | 81 ret->priv_key = NULL; 126 if (r->priv_key != NULL) 127 BN_clear_free(r->priv_key); 167 if (src->priv_key) { 168 if (dest->priv_key == NULL) { 169 dest->priv_key = BN_new(); 170 if (dest->priv_key == NULL) 173 if (!BN_copy(dest->priv_key, src->priv_key)) 229 BIGNUM *priv_key local 371 EC_KEY_set_private_key(EC_KEY *key, const BIGNUM *priv_key) argument [all...] |
H A D | ec_asn1.c | 999 EC_PRIVATEKEY *priv_key = NULL; local 1001 if ((priv_key = EC_PRIVATEKEY_new()) == NULL) { 1006 if ((priv_key = d2i_EC_PRIVATEKEY(&priv_key, in, len)) == NULL) { 1008 EC_PRIVATEKEY_free(priv_key); 1020 if (priv_key->parameters) { 1023 ret->group = ec_asn1_pkparameters2group(priv_key->parameters); 1031 ret->version = priv_key->version; 1033 if (priv_key->privateKey) { 1034 ret->priv_key 1089 EC_PRIVATEKEY *priv_key = NULL; local [all...] |
/freebsd-9.3-release/crypto/openssl/fips/dh/ |
H A D | fips_dh_key.c | 112 BIGNUM *pub_key = NULL, *priv_key = NULL; local 124 if (dh->priv_key == NULL) { 125 priv_key = BN_new(); 126 if (priv_key == NULL) 130 priv_key = dh->priv_key; 150 if (!BN_rand(priv_key, l, 0, 0)) 161 BN_with_flags(prk, priv_key, BN_FLG_CONSTTIME); 163 prk = priv_key; 170 dh->priv_key [all...] |
H A D | fips_dh_lib.c | 102 if (r->priv_key != NULL) 103 BN_clear_free(r->priv_key);
|
/freebsd-9.3-release/crypto/openssl/crypto/dh/ |
H A D | dh_key.c | 109 BIGNUM *pub_key = NULL, *priv_key = NULL; local 115 if (dh->priv_key == NULL) { 116 priv_key = BN_new(); 117 if (priv_key == NULL) 121 priv_key = dh->priv_key; 141 if (!BN_rand(priv_key, l, 0, 0)) 152 BN_with_flags(prk, priv_key, BN_FLG_CONSTTIME); 154 prk = priv_key; 161 dh->priv_key [all...] |
H A D | dhtest.c | 163 BN_print(out, a->priv_key); 171 BN_print(out, b->priv_key);
|
H A D | dh_lib.c | 148 ret->priv_key = NULL; 211 if (r->priv_key != NULL) 212 BN_clear_free(r->priv_key);
|
H A D | dh.h | 131 BIGNUM *priv_key; /* x */ member in struct:dh_st
|
/freebsd-9.3-release/crypto/openssl/crypto/ecdh/ |
H A D | ech_ossl.c | 116 const BIGNUM *priv_key; local 134 priv_key = EC_KEY_get0_private_key(ecdh); 135 if (priv_key == NULL) { 146 if (!EC_POINT_mul(group, tmp, NULL, pub_key, priv_key, ctx)) {
|
/freebsd-9.3-release/crypto/openssl/engines/ |
H A D | e_ubsec.c | 798 (unsigned char *)dsa->priv_key->d, 799 BN_num_bits(dsa->priv_key), 916 (unsigned char *)dh->priv_key->d, 917 BN_num_bits(dh->priv_key), 945 BIGNUM *priv_key = NULL; local 952 if (dh->priv_key == NULL) { 953 priv_key = BN_new(); 954 if (priv_key == NULL) 957 if (bn_wexpand(priv_key, dh->p->top) == NULL) 960 if (!BN_rand_range(priv_key, d [all...] |
/freebsd-9.3-release/contrib/ntp/libntp/ |
H A D | libssl_compat.c | 299 *ppriv_key = pdsa->priv_key; 306 BIGNUM * priv_key 314 replace_bn_nn(&pdsa->priv_key, priv_key);
|
/freebsd-9.3-release/contrib/bsnmp/lib/ |
H A D | snmpcrypto.c | 153 piv[i] = piv[i] ^ pdu->user.priv_key[8 + i]; 187 if (EVP_EncryptInit(&ctx, ctype, pdu->user.priv_key, iv) != 1) 215 if (EVP_DecryptInit(&ctx, ctype, pdu->user.priv_key, iv) != 1 || 283 memset(user->priv_key, 0, sizeof(user->priv_key)); 304 memcpy(user->priv_key, user->auth_key, sizeof(user->priv_key));
|
H A D | snmp.h | 146 uint8_t priv_key[SNMP_PRIV_KEY_SIZ]; member in struct:snmp_user
|
/freebsd-9.3-release/contrib/bind9/lib/dns/ |
H A D | openssldh_link.c | 123 if (dh1->priv_key != NULL || dh2->priv_key != NULL) { 124 if (dh1->priv_key == NULL || dh2->priv_key == NULL) 126 if (BN_cmp(dh1->priv_key, dh2->priv_key) != 0) 249 return (ISC_TF(dh != NULL && dh->priv_key != NULL)); 495 priv.elements[i].length = BN_num_bytes(dh->priv_key); 496 BN_bn2bin(dh->priv_key, bufs[i]); 555 dh->priv_key [all...] |
H A D | openssldsa_link.c | 328 if (dsa1->priv_key != NULL || dsa2->priv_key != NULL) { 329 if (dsa1->priv_key == NULL || dsa2->priv_key == NULL) 331 if (BN_cmp(dsa1->priv_key, dsa2->priv_key)) 422 return (ISC_TF(dsa != NULL && dsa->priv_key != NULL)); 560 priv.elements[cnt].length = BN_num_bytes(dsa->priv_key); 561 BN_bn2bin(dsa->priv_key, bufs[cnt]); 615 dsa->priv_key [all...] |
/freebsd-9.3-release/crypto/openssl/crypto/ecdsa/ |
H A D | ecs_ossl.c | 221 const BIGNUM *priv_key; local 225 priv_key = EC_KEY_get0_private_key(eckey); 227 if (group == NULL || priv_key == NULL || ecdsa == NULL) { 279 if (!BN_mod_mul(tmp, priv_key, ret->r, order, ctx)) {
|
/freebsd-9.3-release/contrib/ntp/include/ |
H A D | libssl_compat.h | 66 BIGNUM *priv_key);
|
/freebsd-9.3-release/crypto/openssl/crypto/asn1/ |
H A D | t_pkey.c | 216 if (x->priv_key) 217 if (buf_len < (i = (size_t)BN_num_bytes(x->priv_key))) 229 if (x->priv_key != NULL) { 237 if ((x->priv_key != NULL) && !print(bp, "priv:", x->priv_key, m, off)) 475 const BIGNUM *priv_key; local 491 priv_key = EC_KEY_get0_private_key(x); 492 if (priv_key != NULL) { 493 if ((i = (size_t)BN_num_bytes(priv_key)) > buf_len) 503 if (priv_key ! [all...] |
/freebsd-9.3-release/contrib/bsnmp/snmp_usm/ |
H A D | usm_snmp.c | 199 memcpy(uuser->suser.priv_key, clone->suser.priv_key, 200 sizeof(uuser->suser.priv_key)); 264 memcpy(ctx->scratch->ptr1, uuser->suser.priv_key, 266 memcpy(uuser->suser.priv_key, val->v.octetstring.octets, 362 memcpy(uuser->suser.priv_key, ctx->scratch->ptr1, 435 return (string_get(val, (char *)uuser->suser.priv_key, 0));
|
/freebsd-9.3-release/crypto/openssl/crypto/evp/ |
H A D | evp_pkey.c | 157 * Handle Two broken types: SEQUENCE {parameters, priv_key} 158 * SEQUENCE {pub_key, priv_key} 197 if (!(dsa->priv_key = ASN1_INTEGER_to_BN(privkey, NULL))) { 211 if (!BN_mod_exp(dsa->pub_key, dsa->g, dsa->priv_key, dsa->p, ctx)) { 284 const BIGNUM *priv_key; local 302 priv_key = EC_KEY_get0_private_key(eckey); 303 if (!EC_POINT_mul(group, pub_key, priv_key, NULL, NULL, ctx)) { 464 if (!(prkey = BN_to_ASN1_INTEGER(pkey->pkey.dsa->priv_key, NULL))) {
|