| /netbsd-src/crypto/external/bsd/openssl.old/dist/include/openssl/ |
| H A D | dsa.h | 67 # define d2i_DSAparams_fp(fp,x) (DSA *)ASN1_d2i_fp((char *(*)())DSA_new, \ 71 # define d2i_DSAparams_bio(bp,x) ASN1_d2i_bio_of(DSA,DSA_new,d2i_DSAparams,bp,x) 72 # define i2d_DSAparams_bio(bp,x) ASN1_i2d_bio_of_const(DSA,i2d_DSAparams,bp,x) 74 DSA *DSAparams_dup(DSA *x); 82 DSA_SIG *DSA_do_sign(const unsigned char *dgst, int dlen, DSA *dsa); 84 DSA_SIG *sig, DSA *dsa); 90 int DSA_set_method(DSA *dsa, const DSA_METHOD *); 91 const DSA_METHOD *DSA_get_method(DSA *d); 93 DSA *DSA_new(void); 94 DSA *DSA_new_method(ENGINE *engine); [all …]
|
| /netbsd-src/crypto/external/bsd/openssl/dist/include/openssl/ |
| H A D | dsa.h | 102 (DSA *)ASN1_d2i_fp((char *(*)())DSA_new, \ 108 ASN1_d2i_bio_of(DSA, DSA_new, d2i_DSAparams, bp, x) 110 ASN1_i2d_bio_of(DSA, i2d_DSAparams, bp, x) 112 DECLARE_ASN1_DUP_FUNCTION_name_attr(OSSL_DEPRECATEDIN_3_0, DSA, DSAparams) 114 DSA *dsa); 116 DSA_SIG *sig, DSA *dsa); 122 OSSL_DEPRECATEDIN_3_0 int DSA_set_method(DSA *dsa, const DSA_METHOD *); 123 OSSL_DEPRECATEDIN_3_0 const DSA_METHOD *DSA_get_method(DSA *d); 125 OSSL_DEPRECATEDIN_3_0 DSA *DSA_new(void); 126 OSSL_DEPRECATEDIN_3_0 DSA *DSA_new_method(ENGINE *engine); [all …]
|
| /netbsd-src/crypto/external/bsd/openssl/dist/crypto/dsa/ |
| H A D | dsa_asn1.c | 34 DSA_free((DSA *)*pval); in dsa_cb() 42 ASN1_EMBED(DSA, version, INT32), 43 ASN1_SIMPLE(DSA, params.p, BIGNUM), 44 ASN1_SIMPLE(DSA, params.q, BIGNUM), 45 ASN1_SIMPLE(DSA, params.g, BIGNUM), 46 ASN1_SIMPLE(DSA, pub_key, BIGNUM), 47 ASN1_SIMPLE(DSA, priv_key, CBIGNUM) 48 } static_ASN1_SEQUENCE_END_cb(DSA, DSAPrivateKey) 50 IMPLEMENT_ASN1_ENCODE_FUNCTIONS_fname(DSA, DSAPrivateKey, DSAPrivateKey) 53 ASN1_SIMPLE(DSA, params.p, BIGNUM), [all …]
|
| H A D | dsa_lib.c | 26 static DSA *dsa_new_intern(ENGINE *engine, OSSL_LIB_CTX *libctx); 30 int DSA_set_ex_data(DSA *d, int idx, void *arg) in DSA_set_ex_data() 35 void *DSA_get_ex_data(const DSA *d, int idx) in DSA_get_ex_data() 41 DH *DSA_dup_DH(const DSA *r) in DSA_dup_DH() 86 void DSA_clear_flags(DSA *d, int flags) in DSA_clear_flags() 91 int DSA_test_flags(const DSA *d, int flags) in DSA_test_flags() 96 void DSA_set_flags(DSA *d, int flags) in DSA_set_flags() 101 ENGINE *DSA_get0_engine(DSA *d) in DSA_get0_engine() 106 int DSA_set_method(DSA *dsa, const DSA_METHOD *meth) in DSA_set_method() 128 const DSA_METHOD *DSA_get_method(DSA *d) in DSA_get_method() [all …]
|
| H A D | dsa_meth.c | 108 (const unsigned char *, int, DSA *) in DSA_meth_get_sign() 114 DSA_SIG *(*sign) (const unsigned char *, int, DSA *)) in DSA_meth_set_sign() argument 121 (DSA *, BN_CTX *, BIGNUM **, BIGNUM **) in DSA_meth_get_sign_setup() 127 int (*sign_setup) (DSA *, BN_CTX *, BIGNUM **, BIGNUM **)) in DSA_meth_set_sign_setup() 134 (const unsigned char *, int, DSA_SIG *, DSA *) in DSA_meth_get_verify() 140 int (*verify) (const unsigned char *, int, DSA_SIG *, DSA *)) in DSA_meth_set_verify() argument 147 (DSA *, BIGNUM *, const BIGNUM *, const BIGNUM *, const BIGNUM *, in DSA_meth_get_mod_exp() 154 int (*mod_exp) (DSA *, BIGNUM *, const BIGNUM *, const BIGNUM *, in DSA_meth_set_mod_exp() 163 (DSA *, BIGNUM *, const BIGNUM *, const BIGNUM *, const BIGNUM *, BN_CTX *, in DSA_meth_get_bn_mod_exp() 170 int (*bn_mod_exp) (DSA *, BIGNUM *, const BIGNUM *, const BIGNUM *, in DSA_meth_set_bn_mod_exp() [all …]
|
| H A D | dsa_local.h | 48 DSA_SIG *(*dsa_do_sign) (const unsigned char *dgst, int dlen, DSA *dsa); 49 int (*dsa_sign_setup) (DSA *dsa, BN_CTX *ctx_in, BIGNUM **kinvp, 52 DSA_SIG *sig, DSA *dsa); 53 int (*dsa_mod_exp) (DSA *dsa, BIGNUM *rr, const BIGNUM *a1, 57 int (*bn_mod_exp) (DSA *dsa, BIGNUM *r, const BIGNUM *a, const BIGNUM *p, 59 int (*init) (DSA *dsa); 60 int (*finish) (DSA *dsa); 64 int (*dsa_paramgen) (DSA *dsa, int bits, 69 int (*dsa_keygen) (DSA *dsa); 72 DSA_SIG *ossl_dsa_do_sign_int(const unsigned char *dgst, int dlen, DSA *dsa);
|
| H A D | dsa_prn.c | 22 int DSA_print_fp(FILE *fp, const DSA *x, int off) in DSA_print_fp() 37 int DSAparams_print_fp(FILE *fp, const DSA *x) in DSAparams_print_fp() 53 int DSA_print(BIO *bp, const DSA *x, int off) in DSA_print() 60 ret = EVP_PKEY_set1_DSA(pk, (DSA *)x); in DSA_print() 67 int DSAparams_print(BIO *bp, const DSA *x) in DSAparams_print() 74 ret = EVP_PKEY_set1_DSA(pk, (DSA *)x); in DSAparams_print()
|
| H A D | dsa_backend.c | 30 int ossl_dsa_key_fromdata(DSA *dsa, const OSSL_PARAM params[], in ossl_dsa_key_fromdata() 66 int ossl_dsa_is_foreign(const DSA *dsa) in ossl_dsa_is_foreign() 69 if (dsa->engine != NULL || DSA_get_method((DSA *)dsa) != DSA_OpenSSL()) in ossl_dsa_is_foreign() 82 DSA *ossl_dsa_dup(const DSA *dsa, int selection) in ossl_dsa_dup() 84 DSA *dupkey = NULL; in ossl_dsa_dup() 123 DSA *ossl_dsa_key_from_pkcs8(const PKCS8_PRIV_KEY_INFO *p8inf, in ossl_dsa_key_from_pkcs8() 137 DSA *dsa = NULL; in ossl_dsa_key_from_pkcs8()
|
| /netbsd-src/crypto/external/bsd/heimdal/dist/lib/hcrypto/ |
| H A D | dsa.h | 46 #define DSA hc_DSA macro 66 typedef struct DSA DSA; typedef 77 DSA_SIG * (*dsa_do_sign)(const unsigned char *, int, DSA *); 78 int (*dsa_sign_setup)(DSA *, BN_CTX *, BIGNUM **, BIGNUM **); 79 int (*dsa_do_verify)(const unsigned char *, int, DSA_SIG *, DSA *); 80 int (*dsa_mod_exp)(DSA *, BIGNUM *, BIGNUM *, BIGNUM *, 83 int (*bn_mod_exp)(DSA *, BIGNUM *, BIGNUM *, const BIGNUM *, 86 int (*init)(DSA *); 87 int (*finish)(DSA *); 92 struct DSA { struct [all …]
|
| /netbsd-src/crypto/external/bsd/openssl.old/dist/crypto/dsa/ |
| H A D | dsa_asn1.c | 70 DSA_free((DSA *)*pval); in dsa_cb() 78 ASN1_EMBED(DSA, version, INT32), 79 ASN1_SIMPLE(DSA, p, BIGNUM), 80 ASN1_SIMPLE(DSA, q, BIGNUM), 81 ASN1_SIMPLE(DSA, g, BIGNUM), 82 ASN1_SIMPLE(DSA, pub_key, BIGNUM), 83 ASN1_SIMPLE(DSA, priv_key, CBIGNUM) 84 } static_ASN1_SEQUENCE_END_cb(DSA, DSAPrivateKey) 86 IMPLEMENT_ASN1_ENCODE_FUNCTIONS_const_fname(DSA, DSAPrivateKey, DSAPrivateKey) 89 ASN1_SIMPLE(DSA, p, BIGNUM), [all …]
|
| H A D | dsa_meth.c | 109 (const unsigned char *, int, DSA *) in DSA_meth_get_sign() 115 DSA_SIG *(*sign) (const unsigned char *, int, DSA *)) in DSA_meth_set_sign() argument 122 (DSA *, BN_CTX *, BIGNUM **, BIGNUM **) in DSA_meth_get_sign_setup() 128 int (*sign_setup) (DSA *, BN_CTX *, BIGNUM **, BIGNUM **)) in DSA_meth_set_sign_setup() 135 (const unsigned char *, int, DSA_SIG *, DSA *) in DSA_meth_get_verify() 141 int (*verify) (const unsigned char *, int, DSA_SIG *, DSA *)) in DSA_meth_set_verify() argument 148 (DSA *, BIGNUM *, const BIGNUM *, const BIGNUM *, const BIGNUM *, in DSA_meth_get_mod_exp() 155 int (*mod_exp) (DSA *, BIGNUM *, const BIGNUM *, const BIGNUM *, in DSA_meth_set_mod_exp() 164 (DSA *, BIGNUM *, const BIGNUM *, const BIGNUM *, const BIGNUM *, BN_CTX *, in DSA_meth_get_bn_mod_exp() 171 int (*bn_mod_exp) (DSA *, BIGNUM *, const BIGNUM *, const BIGNUM *, in DSA_meth_set_bn_mod_exp() [all …]
|
| H A D | dsa_lib.c | 19 DSA *DSA_new(void) in DSA_new() 24 int DSA_set_method(DSA *dsa, const DSA_METHOD *meth) in DSA_set_method() 44 const DSA_METHOD *DSA_get_method(DSA *d) in DSA_get_method() 49 DSA *DSA_new_method(ENGINE *engine) in DSA_new_method() 51 DSA *ret = OPENSSL_zalloc(sizeof(*ret)); in DSA_new_method() 103 void DSA_free(DSA *r) in DSA_free() 134 int DSA_up_ref(DSA *r) in DSA_up_ref() 146 int DSA_size(const DSA *r) in DSA_size() 168 int DSA_set_ex_data(DSA *d, int idx, void *arg) in DSA_set_ex_data() 173 void *DSA_get_ex_data(DSA *d, int idx) in DSA_get_ex_data() [all …]
|
| H A D | dsa_local.h | 43 DSA_SIG *(*dsa_do_sign) (const unsigned char *dgst, int dlen, DSA *dsa); 44 int (*dsa_sign_setup) (DSA *dsa, BN_CTX *ctx_in, BIGNUM **kinvp, 47 DSA_SIG *sig, DSA *dsa); 48 int (*dsa_mod_exp) (DSA *dsa, BIGNUM *rr, const BIGNUM *a1, 52 int (*bn_mod_exp) (DSA *dsa, BIGNUM *r, const BIGNUM *a, const BIGNUM *p, 54 int (*init) (DSA *dsa); 55 int (*finish) (DSA *dsa); 59 int (*dsa_paramgen) (DSA *dsa, int bits, 64 int (*dsa_keygen) (DSA *dsa); 67 int dsa_builtin_paramgen(DSA *ret, size_t bits, size_t qbits, [all …]
|
| H A D | dsa_prn.c | 16 int DSA_print_fp(FILE *fp, const DSA *x, int off) in DSA_print_fp() 31 int DSAparams_print_fp(FILE *fp, const DSA *x) in DSAparams_print_fp() 47 int DSA_print(BIO *bp, const DSA *x, int off) in DSA_print() 54 ret = EVP_PKEY_set1_DSA(pk, (DSA *)x); in DSA_print() 61 int DSAparams_print(BIO *bp, const DSA *x) in DSAparams_print() 68 ret = EVP_PKEY_set1_DSA(pk, (DSA *)x); in DSAparams_print()
|
| /netbsd-src/crypto/external/bsd/openssl/dist/include/crypto/ |
| H A D | dsa.h | 22 DSA *ossl_dsa_new(OSSL_LIB_CTX *libctx); 23 void ossl_dsa_set0_libctx(DSA *d, OSSL_LIB_CTX *libctx); 25 int ossl_dsa_generate_ffc_parameters(DSA *dsa, int type, int pbits, int qbits, 29 unsigned char *sig, unsigned int *siglen, DSA *dsa); 31 FFC_PARAMS *ossl_dsa_get0_params(DSA *dsa); 32 int ossl_dsa_ffc_params_fromdata(DSA *dsa, const OSSL_PARAM params[]); 33 int ossl_dsa_key_fromdata(DSA *dsa, const OSSL_PARAM params[], 35 DSA *ossl_dsa_key_from_pkcs8(const PKCS8_PRIV_KEY_INFO *p8inf, 38 int ossl_dsa_generate_public_key(BN_CTX *ctx, const DSA *dsa, 40 int ossl_dsa_check_params(const DSA *dsa, int checktype, int *ret); [all …]
|
| /netbsd-src/crypto/external/bsd/openssl.old/dist/doc/man3/ |
| H A D | DSA_get0_pqg.pod | 10 setting data in a DSA object 16 void DSA_get0_pqg(const DSA *d, 18 int DSA_set0_pqg(DSA *d, BIGNUM *p, BIGNUM *q, BIGNUM *g); 19 void DSA_get0_key(const DSA *d, 21 int DSA_set0_key(DSA *d, BIGNUM *pub_key, BIGNUM *priv_key); 22 const BIGNUM *DSA_get0_p(const DSA *d); 23 const BIGNUM *DSA_get0_q(const DSA *d); 24 const BIGNUM *DSA_get0_g(const DSA *d); 25 const BIGNUM *DSA_get0_pub_key(const DSA *d); 26 const BIGNUM *DSA_get0_priv_key(const DSA *d); [all …]
|
| H A D | DSA_meth_new.pod | 13 DSA_meth_set_keygen - Routines to build up DSA methods 35 int, DSA *); 37 int, DSA *)); 39 int (*DSA_meth_get_sign_setup(const DSA_METHOD *dsam))(DSA *, BN_CTX *,$ 41 int DSA_meth_set_sign_setup(DSA_METHOD *dsam, int (*sign_setup)(DSA *, BN_CTX *, 45 int, DSA_SIG *, DSA *); 47 int, DSA_SIG *, DSA *)); 49 int (*DSA_meth_get_mod_exp(const DSA_METHOD *dsam))(DSA *dsa, BIGNUM *rr, BIGNUM *a1, 53 int DSA_meth_set_mod_exp(DSA_METHOD *dsam, int (*mod_exp)(DSA *dsa, BIGNUM *rr, 59 int (*DSA_meth_get_bn_mod_exp(const DSA_METHOD *dsam))(DSA *dsa, BIGNUM *r, BIGNUM *a, [all …]
|
| H A D | DSA_set_method.pod | 6 DSA_set_method, DSA_new_method, DSA_OpenSSL - select DSA method 16 int DSA_set_method(DSA *dsa, const DSA_METHOD *meth); 18 DSA *DSA_new_method(ENGINE *engine); 24 A B<DSA_METHOD> specifies the functions that OpenSSL uses for DSA 27 important information about how these DSA API functions are affected by the use 33 DSA_set_default_method() makes B<meth> the default method for all DSA 36 been set as a default for DSA, so this function is no longer recommended. 46 B<rsa>. This will replace the DSA_METHOD used by the DSA key and if the 48 be released during the change. It is possible to have DSA keys that only 55 DSA_new_method() allocates and initializes a DSA structure so that B<engine> [all …]
|
| /netbsd-src/crypto/external/bsd/openssl/dist/doc/man3/ |
| H A D | DSA_get0_pqg.pod | 10 setting data in a DSA object 20 void DSA_get0_pqg(const DSA *d, 22 int DSA_set0_pqg(DSA *d, BIGNUM *p, BIGNUM *q, BIGNUM *g); 23 void DSA_get0_key(const DSA *d, 25 int DSA_set0_key(DSA *d, BIGNUM *pub_key, BIGNUM *priv_key); 26 const BIGNUM *DSA_get0_p(const DSA *d); 27 const BIGNUM *DSA_get0_q(const DSA *d); 28 const BIGNUM *DSA_get0_g(const DSA *d); 29 const BIGNUM *DSA_get0_pub_key(const DSA *d); 30 const BIGNUM *DSA_get0_priv_key(const DSA *d); [all …]
|
| H A D | DSA_set_method.pod | 6 DSA_set_method, DSA_new_method, DSA_OpenSSL - select DSA method 20 int DSA_set_method(DSA *dsa, const DSA_METHOD *meth); 22 DSA *DSA_new_method(ENGINE *engine); 31 A B<DSA_METHOD> specifies the functions that OpenSSL uses for DSA 34 important information about how these DSA API functions are affected by the use 40 DSA_set_default_method() makes B<meth> the default method for all DSA 43 been set as a default for DSA, so this function is no longer recommended. 53 B<rsa>. This will replace the DSA_METHOD used by the DSA key and if the 55 be released during the change. It is possible to have DSA keys that only 62 DSA_new_method() allocates and initializes a DSA structure so that B<engine> [all …]
|
| /netbsd-src/crypto/external/bsd/openssl/dist/doc/man7/ |
| H A D | EVP_PKEY-DSA.pod | 5 EVP_PKEY-DSA, EVP_KEYMGMT-DSA - EVP_PKEY DSA keytype and algorithm support 9 For B<DSA> the FIPS186-4 standard specifies that the values used for FFC 12 and I<gindex> may need to be stored for validation purposes. For B<DSA> these 16 =head2 DSA parameters 18 The B<DSA> key type supports the FFC parameters (see 21 =head2 DSA key generation parameters 23 The B<DSA> key type supports the FFC key generation parameters (see 32 =head2 DSA key validation 34 For DSA keys, L<EVP_PKEY_param_check(3)> behaves in the following way: 40 For DSA keys, L<EVP_PKEY_param_check_quick(3)> behaves in the following way: [all …]
|
| /netbsd-src/crypto/external/bsd/openssl.old/dist/crypto/pem/ |
| H A D | pem_all.c | 25 static DSA *pkey_get_dsa(EVP_PKEY *key, DSA **dsa); 91 static DSA *pkey_get_dsa(EVP_PKEY *key, DSA **dsa) in IMPLEMENT_PEM_write_cb_const() 93 DSA *dtmp; in IMPLEMENT_PEM_write_cb_const() 107 DSA *PEM_read_bio_DSAPrivateKey(BIO *bp, DSA **dsa, pem_password_cb *cb, in PEM_read_bio_DSAPrivateKey() 115 IMPLEMENT_PEM_write_cb_const(DSAPrivateKey, DSA, PEM_STRING_DSA, in IMPLEMENT_PEM_write_cb_const() argument 117 IMPLEMENT_PEM_rw(DSA_PUBKEY, DSA, PEM_STRING_PUBLIC, DSA_PUBKEY) in IMPLEMENT_PEM_write_cb_const() 119 DSA *PEM_read_DSAPrivateKey(FILE *fp, DSA **dsa, pem_password_cb *cb, void *u) in IMPLEMENT_PEM_write_cb_const() 128 IMPLEMENT_PEM_rw_const(DSAparams, DSA, PEM_STRING_DSAPARAMS, DSAparams) in IMPLEMENT_PEM_rw_const() argument
|
| /netbsd-src/crypto/external/bsd/openssl/dist/crypto/pem/ |
| H A D | pem_all.c | 30 static DSA *pkey_get_dsa(EVP_PKEY *key, DSA **dsa); 93 static DSA *pkey_get_dsa(EVP_PKEY *key, DSA **dsa) in IMPLEMENT_PEM_write_cb() 95 DSA *dtmp; in IMPLEMENT_PEM_write_cb() 109 DSA *PEM_read_bio_DSAPrivateKey(BIO *bp, DSA **dsa, pem_password_cb *cb, in PEM_read_bio_DSAPrivateKey() 117 IMPLEMENT_PEM_write_cb(DSAPrivateKey, DSA, PEM_STRING_DSA, DSAPrivateKey) in IMPLEMENT_PEM_write_cb() argument 118 IMPLEMENT_PEM_rw(DSA_PUBKEY, DSA, PEM_STRING_PUBLIC, DSA_PUBKEY) in IMPLEMENT_PEM_write_cb() 120 DSA *PEM_read_DSAPrivateKey(FILE *fp, DSA **dsa, pem_password_cb *cb, void *u) in IMPLEMENT_PEM_write_cb() 129 IMPLEMENT_PEM_rw(DSAparams, DSA, PEM_STRING_DSAPARAMS, DSAparams) in IMPLEMENT_PEM_rw() argument
|
| /netbsd-src/crypto/external/bsd/openssl.old/dist/crypto/x509/ |
| H A D | x_all.c | 275 DSA *d2i_DSAPrivateKey_fp(FILE *fp, DSA **dsa) in d2i_DSAPrivateKey_fp() 277 return ASN1_d2i_fp_of(DSA, DSA_new, d2i_DSAPrivateKey, fp, dsa); in d2i_DSAPrivateKey_fp() 280 int i2d_DSAPrivateKey_fp(FILE *fp, DSA *dsa) in i2d_DSAPrivateKey_fp() 282 return ASN1_i2d_fp_of_const(DSA, i2d_DSAPrivateKey, fp, dsa); in i2d_DSAPrivateKey_fp() 285 DSA *d2i_DSA_PUBKEY_fp(FILE *fp, DSA **dsa) in d2i_DSA_PUBKEY_fp() 287 return ASN1_d2i_fp_of(DSA, DSA_new, d2i_DSA_PUBKEY, fp, dsa); in d2i_DSA_PUBKEY_fp() 290 int i2d_DSA_PUBKEY_fp(FILE *fp, DSA *dsa) in i2d_DSA_PUBKEY_fp() 292 return ASN1_i2d_fp_of(DSA, i2d_DSA_PUBKEY, fp, dsa); in i2d_DSA_PUBKEY_fp() 296 DSA *d2i_DSAPrivateKey_bio(BIO *bp, DSA **dsa) in d2i_DSAPrivateKey_bio() 298 return ASN1_d2i_bio_of(DSA, DSA_new, d2i_DSAPrivateKey, bp, dsa); in d2i_DSAPrivateKey_bio() [all …]
|
| /netbsd-src/crypto/external/bsd/openssl/dist/providers/implementations/keymgmt/ |
| H A D | dsa_kmgmt.c | 98 static int dsa_key_todata(DSA *dsa, OSSL_PARAM_BLD *bld, OSSL_PARAM params[], in dsa_key_todata() 132 const DSA *dsa = keydata; in dsa_has() 151 const DSA *dsa1 = keydata1; in dsa_match() 152 const DSA *dsa2 = keydata2; in dsa_match() 183 FFC_PARAMS *dsaparams1 = ossl_dsa_get0_params((DSA *)dsa1); in dsa_match() 184 FFC_PARAMS *dsaparams2 = ossl_dsa_get0_params((DSA *)dsa2); in dsa_match() 193 DSA *dsa = keydata; in dsa_import() 218 DSA *dsa = keydata; in dsa_export() 314 DSA *dsa = key; in dsa_get_params() 349 static int dsa_validate_domparams(const DSA *dsa, int checktype) in dsa_validate_domparams() [all …]
|