/snap/node/11691/include/node/openssl
NameSizeModeActions
archs/-0755rm
aes.h33110644editdlrm
asn1.h940644editdlrm
asn1err.h51690644editdlrm
asn1t.h960644editdlrm
asn1t_asm.h24870644editdlrm
asn1t_no-asm.h27770644editdlrm
asn1_asm.h24680644editdlrm
asn1_no-asm.h27560644editdlrm
async.h30190644editdlrm
asyncerr.h7390644editdlrm
bio.h920644editdlrm
bioerr.h23550644editdlrm
bio_asm.h24490644editdlrm
bio_no-asm.h27350644editdlrm
blowfish.h21360644editdlrm
bn.h223090644editdlrm
bnerr.h13290644editdlrm
bn_conf.h1000644editdlrm
bn_conf_asm.h25060644editdlrm
bn_conf_no-asm.h27980644editdlrm
buffer.h15910644editdlrm
buffererr.h5870644editdlrm
byteorder.h84440644editdlrm
camellia.h32660644editdlrm
cast.h18800644editdlrm
cmac.h14490644editdlrm
cmp.h920644editdlrm
cmperr.h48210644editdlrm
cmp_asm.h24490644editdlrm
cmp_no-asm.h27350644editdlrm
cmp_util.h16270644editdlrm
cms.h920644editdlrm
cmserr.h45470644editdlrm
cms_asm.h24490644editdlrm
cms_no-asm.h27350644editdlrm
comp.h940644editdlrm
comperr.h10020644editdlrm
comp_asm.h24680644editdlrm
comp_no-asm.h27560644editdlrm
conf.h940644editdlrm
conferr.h16970644editdlrm
configuration.h1120644editdlrm
configuration_asm.h26390644editdlrm
configuration_no-asm.h29450644editdlrm
conftypes.h11760644editdlrm
conf_api.h13280644editdlrm
conf_asm.h24680644editdlrm
conf_no-asm.h27560644editdlrm
core.h78200644editdlrm
core_dispatch.h469320644editdlrm
core_names.h1060644editdlrm
core_names_asm.h25820644editdlrm
core_names_no-asm.h28820644editdlrm
core_object.h10470644editdlrm
crmf.h940644editdlrm
crmferr.h18580644editdlrm
crmf_asm.h24680644editdlrm
crmf_no-asm.h27560644editdlrm
crypto.h980644editdlrm
cryptoerr.h19860644editdlrm
cryptoerr_legacy.h480190644editdlrm
crypto_asm.h25060644editdlrm
crypto_no-asm.h27980644editdlrm
ct.h900644editdlrm
cterr.h12410644editdlrm
ct_asm.h24300644editdlrm
ct_no-asm.h27140644editdlrm
decoder.h49070644editdlrm
decodererr.h7400644editdlrm
des.h77640644editdlrm
dh.h130250644editdlrm
dherr.h17020644editdlrm
dsa.h109820644editdlrm
dsaerr.h11640644editdlrm
dso_conf.h1020644editdlrm
dso_conf_asm.h25250644editdlrm
dso_conf_no-asm.h28190644editdlrm
dtls1.h12390644editdlrm
ebcdic.h10250644editdlrm
ec.h623130644editdlrm
ecdh.h3610644editdlrm
ecdsa.h3610644editdlrm
ecerr.h33590644editdlrm
encoder.h45700644editdlrm
encodererr.h7410644editdlrm
engine.h375360644editdlrm
engineerr.h20340644editdlrm
err.h920644editdlrm
err_asm.h24490644editdlrm
err_no-asm.h27350644editdlrm
ess.h920644editdlrm
esserr.h9820644editdlrm
ess_asm.h24490644editdlrm
ess_no-asm.h27350644editdlrm
evp.h949530644editdlrm
evperr.h55280644editdlrm
e_os2.h84450644editdlrm
e_ostime.h11470644editdlrm
fipskey.h1000644editdlrm
fipskey_asm.h25250644editdlrm
fipskey_no-asm.h28190644editdlrm
fips_names.h16380644editdlrm
hmac.h18920644editdlrm
hpke.h60810644editdlrm
http.h47170644editdlrm
httperr.h18920644editdlrm
idea.h22850644editdlrm
indicator.h8180644editdlrm
kdf.h49380644editdlrm
kdferr.h4800644editdlrm
lhash.h960644editdlrm
lhash_asm.h24870644editdlrm
lhash_no-asm.h27770644editdlrm
macros.h107510644editdlrm
md2.h13360644editdlrm
md4.h16100644editdlrm
md5.h16080644editdlrm
mdc2.h13120644editdlrm
ml_kem.h9590644editdlrm
modes.h81350644editdlrm
objects.h75670644editdlrm
objectserr.h6860644editdlrm
obj_mac.h2895250644editdlrm
ocsp.h940644editdlrm
ocsperr.h16360644editdlrm
ocsp_asm.h24680644editdlrm
ocsp_no-asm.h27560644editdlrm
opensslconf.h5100644editdlrm
opensslconf_asm.h69290644editdlrm
opensslv.h1020644editdlrm
opensslv_asm.h25440644editdlrm
opensslv_no-asm.h28400644editdlrm
ossl_typ.h5610644editdlrm
params.h70600644editdlrm
param_build.h23630644editdlrm
param_names.h1080644editdlrm
param_names_asm.h26200644editdlrm
param_names_no-asm.h29240644editdlrm
pem.h226670644editdlrm
pem2.h5230644editdlrm
pemerr.h18360644editdlrm
pkcs7.h960644editdlrm
pkcs7err.h22420644editdlrm
pkcs7_asm.h24870644editdlrm
pkcs7_no-asm.h27770644editdlrm
pkcs12.h980644editdlrm
pkcs12err.h14270644editdlrm
pkcs12_asm.h25060644editdlrm
pkcs12_no-asm.h27980644editdlrm
proverr.h64140644editdlrm
provider.h33830644editdlrm
prov_ssl.h9690644editdlrm
quic.h21010644editdlrm
rand.h40580644editdlrm
randerr.h24860644editdlrm
rc2.h17710644editdlrm
rc4.h10750644editdlrm
rc5.h21460644editdlrm
ripemd.h15370644editdlrm
rsa.h222750644editdlrm
rsaerr.h38610644editdlrm
safestack.h1040644editdlrm
safestack_asm.h25630644editdlrm
safestack_no-asm.h28610644editdlrm
seed.h36110644editdlrm
self_test.h47200644editdlrm
sha.h44040644editdlrm
srp.h920644editdlrm
srp_asm.h24490644editdlrm
srp_no-asm.h27350644editdlrm
srtp.h18880644editdlrm
ssl.h920644editdlrm
ssl2.h6250644editdlrm
ssl3.h127480644editdlrm
sslerr.h154130644editdlrm
sslerr_legacy.h182690644editdlrm
ssl_asm.h24490644editdlrm
ssl_no-asm.h27350644editdlrm
stack.h31220644editdlrm
store.h140080644editdlrm
storeerr.h17020644editdlrm
symhacks.h11020644editdlrm
thread.h8650644editdlrm
tls1.h633210644editdlrm
trace.h108230644editdlrm
ts.h194190644editdlrm
tserr.h20770644editdlrm
txt_db.h16350644editdlrm
types.h73540644editdlrm
ui.h900644editdlrm
uierr.h10620644editdlrm
ui_asm.h24300644editdlrm
ui_no-asm.h27140644editdlrm
whrlpool.h16810644editdlrm
x509.h940644editdlrm
x509err.h23160644editdlrm
x509v3.h980644editdlrm
x509v3err.h35780644editdlrm
x509v3_asm.h25060644editdlrm
x509v3_no-asm.h27980644editdlrm
x509_acert.h1060644editdlrm
x509_acert_asm.h25820644editdlrm
x509_acert_no-asm.h28820644editdlrm
x509_asm.h24680644editdlrm
x509_no-asm.h27560644editdlrm
x509_vfy.h1020644editdlrm
x509_vfy_asm.h25440644editdlrm
x509_vfy_no-asm.h28400644editdlrm
Edit: /snap/node/11691/include/node/openssl/dsa.h (10982B)
/* * Copyright 1995-2021 The OpenSSL Project Authors. All Rights Reserved. * * Licensed under the Apache License 2.0 (the "License"). You may not use * this file except in compliance with the License. You can obtain a copy * in the file LICENSE in the source distribution or at * https://www.openssl.org/source/license.html */ #ifndef OPENSSL_DSA_H #define OPENSSL_DSA_H #pragma once #include #ifndef OPENSSL_NO_DEPRECATED_3_0 #define HEADER_DSA_H #endif #include #include #include #ifndef OPENSSL_NO_DSA #include #include #include #include #include #ifndef OPENSSL_NO_DEPRECATED_1_1_0 #include #endif #include #ifndef OPENSSL_NO_STDIO #include #endif #endif #ifdef __cplusplus extern "C" { #endif int EVP_PKEY_CTX_set_dsa_paramgen_bits(EVP_PKEY_CTX *ctx, int nbits); int EVP_PKEY_CTX_set_dsa_paramgen_q_bits(EVP_PKEY_CTX *ctx, int qbits); int EVP_PKEY_CTX_set_dsa_paramgen_md_props(EVP_PKEY_CTX *ctx, const char *md_name, const char *md_properties); int EVP_PKEY_CTX_set_dsa_paramgen_gindex(EVP_PKEY_CTX *ctx, int gindex); int EVP_PKEY_CTX_set_dsa_paramgen_type(EVP_PKEY_CTX *ctx, const char *name); int EVP_PKEY_CTX_set_dsa_paramgen_seed(EVP_PKEY_CTX *ctx, const unsigned char *seed, size_t seedlen); int EVP_PKEY_CTX_set_dsa_paramgen_md(EVP_PKEY_CTX *ctx, const EVP_MD *md); #define EVP_PKEY_CTRL_DSA_PARAMGEN_BITS (EVP_PKEY_ALG_CTRL + 1) #define EVP_PKEY_CTRL_DSA_PARAMGEN_Q_BITS (EVP_PKEY_ALG_CTRL + 2) #define EVP_PKEY_CTRL_DSA_PARAMGEN_MD (EVP_PKEY_ALG_CTRL + 3) #ifndef OPENSSL_NO_DSA #ifndef OPENSSL_DSA_MAX_MODULUS_BITS #define OPENSSL_DSA_MAX_MODULUS_BITS 10000 #endif #define OPENSSL_DSA_FIPS_MIN_MODULUS_BITS 1024 typedef struct DSA_SIG_st DSA_SIG; DSA_SIG *DSA_SIG_new(void); void DSA_SIG_free(DSA_SIG *a); DECLARE_ASN1_ENCODE_FUNCTIONS_only(DSA_SIG, DSA_SIG) void DSA_SIG_get0(const DSA_SIG *sig, const BIGNUM **pr, const BIGNUM **ps); int DSA_SIG_set0(DSA_SIG *sig, BIGNUM *r, BIGNUM *s); #ifndef OPENSSL_NO_DEPRECATED_1_1_0 /* * Does nothing. Previously this switched off constant time behaviour. */ #define DSA_FLAG_NO_EXP_CONSTTIME 0x00 #endif #ifndef OPENSSL_NO_DEPRECATED_3_0 #define DSA_FLAG_CACHE_MONT_P 0x01 /* * If this flag is set the DSA method is FIPS compliant and can be used in * FIPS mode. This is set in the validated module method. If an application * sets this flag in its own methods it is its responsibility to ensure the * result is compliant. */ #define DSA_FLAG_FIPS_METHOD 0x0400 /* * If this flag is set the operations normally disabled in FIPS mode are * permitted it is then the applications responsibility to ensure that the * usage is compliant. */ #define DSA_FLAG_NON_FIPS_ALLOW 0x0400 #define DSA_FLAG_FIPS_CHECKED 0x0800 /* Already defined in ossl_typ.h */ /* typedef struct dsa_st DSA; */ /* typedef struct dsa_method DSA_METHOD; */ #define d2i_DSAparams_fp(fp, x) \ (DSA *)ASN1_d2i_fp((void *(*)(void))DSA_new, \ (d2i_of_void *)d2i_DSAparams, (fp), \ (void **)(x)) #define i2d_DSAparams_fp(fp, x) \ ASN1_i2d_fp(i2d_DSAparams, (fp), (unsigned char *)(x)) #define d2i_DSAparams_bio(bp, x) \ ASN1_d2i_bio_of(DSA, DSA_new, d2i_DSAparams, bp, x) #define i2d_DSAparams_bio(bp, x) \ ASN1_i2d_bio_of(DSA, i2d_DSAparams, bp, x) DECLARE_ASN1_DUP_FUNCTION_name_attr(OSSL_DEPRECATEDIN_3_0, DSA, DSAparams) OSSL_DEPRECATEDIN_3_0 DSA_SIG *DSA_do_sign(const unsigned char *dgst, int dlen, DSA *dsa); OSSL_DEPRECATEDIN_3_0 int DSA_do_verify(const unsigned char *dgst, int dgst_len, DSA_SIG *sig, DSA *dsa); OSSL_DEPRECATEDIN_3_0 const DSA_METHOD *DSA_OpenSSL(void); OSSL_DEPRECATEDIN_3_0 void DSA_set_default_method(const DSA_METHOD *); OSSL_DEPRECATEDIN_3_0 const DSA_METHOD *DSA_get_default_method(void); OSSL_DEPRECATEDIN_3_0 int DSA_set_method(DSA *dsa, const DSA_METHOD *); OSSL_DEPRECATEDIN_3_0 const DSA_METHOD *DSA_get_method(DSA *d); OSSL_DEPRECATEDIN_3_0 DSA *DSA_new(void); OSSL_DEPRECATEDIN_3_0 DSA *DSA_new_method(ENGINE *engine); OSSL_DEPRECATEDIN_3_0 void DSA_free(DSA *r); /* "up" the DSA object's reference count */ OSSL_DEPRECATEDIN_3_0 int DSA_up_ref(DSA *r); OSSL_DEPRECATEDIN_3_0 int DSA_size(const DSA *); OSSL_DEPRECATEDIN_3_0 int DSA_bits(const DSA *d); OSSL_DEPRECATEDIN_3_0 int DSA_security_bits(const DSA *d); /* next 4 return -1 on error */ OSSL_DEPRECATEDIN_3_0 int DSA_sign_setup(DSA *dsa, BN_CTX *ctx_in, BIGNUM **kinvp, BIGNUM **rp); OSSL_DEPRECATEDIN_3_0 int DSA_sign(int type, const unsigned char *dgst, int dlen, unsigned char *sig, unsigned int *siglen, DSA *dsa); OSSL_DEPRECATEDIN_3_0 int DSA_verify(int type, const unsigned char *dgst, int dgst_len, const unsigned char *sigbuf, int siglen, DSA *dsa); #define DSA_get_ex_new_index(l, p, newf, dupf, freef) \ CRYPTO_get_ex_new_index(CRYPTO_EX_INDEX_DSA, l, p, newf, dupf, freef) OSSL_DEPRECATEDIN_3_0 int DSA_set_ex_data(DSA *d, int idx, void *arg); OSSL_DEPRECATEDIN_3_0 void *DSA_get_ex_data(const DSA *d, int idx); DECLARE_ASN1_ENCODE_FUNCTIONS_only_attr(OSSL_DEPRECATEDIN_3_0, DSA, DSAPublicKey) DECLARE_ASN1_ENCODE_FUNCTIONS_only_attr(OSSL_DEPRECATEDIN_3_0, DSA, DSAPrivateKey) DECLARE_ASN1_ENCODE_FUNCTIONS_only_attr(OSSL_DEPRECATEDIN_3_0, DSA, DSAparams) #endif #ifndef OPENSSL_NO_DEPRECATED_0_9_8 /* Deprecated version */ OSSL_DEPRECATEDIN_0_9_8 DSA *DSA_generate_parameters(int bits, unsigned char *seed, int seed_len, int *counter_ret, unsigned long *h_ret, void (*callback)(int, int, void *), void *cb_arg); #endif #ifndef OPENSSL_NO_DEPRECATED_3_0 /* New version */ OSSL_DEPRECATEDIN_3_0 int DSA_generate_parameters_ex(DSA *dsa, int bits, const unsigned char *seed, int seed_len, int *counter_ret, unsigned long *h_ret, BN_GENCB *cb); OSSL_DEPRECATEDIN_3_0 int DSA_generate_key(DSA *a); OSSL_DEPRECATEDIN_3_0 int DSAparams_print(BIO *bp, const DSA *x); OSSL_DEPRECATEDIN_3_0 int DSA_print(BIO *bp, const DSA *x, int off); #ifndef OPENSSL_NO_STDIO OSSL_DEPRECATEDIN_3_0 int DSAparams_print_fp(FILE *fp, const DSA *x); OSSL_DEPRECATEDIN_3_0 int DSA_print_fp(FILE *bp, const DSA *x, int off); #endif #define DSS_prime_checks 64 /* * Primality test according to FIPS PUB 186-4, Appendix C.3. Since we only * have one value here we set the number of checks to 64 which is the 128 bit * security level that is the highest level and valid for creating a 3072 bit * DSA key. */ #define DSA_is_prime(n, callback, cb_arg) \ BN_is_prime(n, DSS_prime_checks, callback, NULL, cb_arg) #ifndef OPENSSL_NO_DH /* * Convert DSA structure (key or just parameters) into DH structure (be * careful to avoid small subgroup attacks when using this!) */ OSSL_DEPRECATEDIN_3_0 DH *DSA_dup_DH(const DSA *r); #endif OSSL_DEPRECATEDIN_3_0 void DSA_get0_pqg(const DSA *d, const BIGNUM **p, const BIGNUM **q, const BIGNUM **g); OSSL_DEPRECATEDIN_3_0 int DSA_set0_pqg(DSA *d, BIGNUM *p, BIGNUM *q, BIGNUM *g); OSSL_DEPRECATEDIN_3_0 void DSA_get0_key(const DSA *d, const BIGNUM **pub_key, const BIGNUM **priv_key); OSSL_DEPRECATEDIN_3_0 int DSA_set0_key(DSA *d, BIGNUM *pub_key, BIGNUM *priv_key); OSSL_DEPRECATEDIN_3_0 const BIGNUM *DSA_get0_p(const DSA *d); OSSL_DEPRECATEDIN_3_0 const BIGNUM *DSA_get0_q(const DSA *d); OSSL_DEPRECATEDIN_3_0 const BIGNUM *DSA_get0_g(const DSA *d); OSSL_DEPRECATEDIN_3_0 const BIGNUM *DSA_get0_pub_key(const DSA *d); OSSL_DEPRECATEDIN_3_0 const BIGNUM *DSA_get0_priv_key(const DSA *d); OSSL_DEPRECATEDIN_3_0 void DSA_clear_flags(DSA *d, int flags); OSSL_DEPRECATEDIN_3_0 int DSA_test_flags(const DSA *d, int flags); OSSL_DEPRECATEDIN_3_0 void DSA_set_flags(DSA *d, int flags); OSSL_DEPRECATEDIN_3_0 ENGINE *DSA_get0_engine(DSA *d); OSSL_DEPRECATEDIN_3_0 DSA_METHOD *DSA_meth_new(const char *name, int flags); OSSL_DEPRECATEDIN_3_0 void DSA_meth_free(DSA_METHOD *dsam); OSSL_DEPRECATEDIN_3_0 DSA_METHOD *DSA_meth_dup(const DSA_METHOD *dsam); OSSL_DEPRECATEDIN_3_0 const char *DSA_meth_get0_name(const DSA_METHOD *dsam); OSSL_DEPRECATEDIN_3_0 int DSA_meth_set1_name(DSA_METHOD *dsam, const char *name); OSSL_DEPRECATEDIN_3_0 int DSA_meth_get_flags(const DSA_METHOD *dsam); OSSL_DEPRECATEDIN_3_0 int DSA_meth_set_flags(DSA_METHOD *dsam, int flags); OSSL_DEPRECATEDIN_3_0 void *DSA_meth_get0_app_data(const DSA_METHOD *dsam); OSSL_DEPRECATEDIN_3_0 int DSA_meth_set0_app_data(DSA_METHOD *dsam, void *app_data); OSSL_DEPRECATEDIN_3_0 DSA_SIG *(*DSA_meth_get_sign(const DSA_METHOD *dsam))(const unsigned char *, int, DSA *); OSSL_DEPRECATEDIN_3_0 int DSA_meth_set_sign(DSA_METHOD *dsam, DSA_SIG *(*sign)(const unsigned char *, int, DSA *)); OSSL_DEPRECATEDIN_3_0 int (*DSA_meth_get_sign_setup(const DSA_METHOD *dsam))(DSA *, BN_CTX *, BIGNUM **, BIGNUM **); OSSL_DEPRECATEDIN_3_0 int DSA_meth_set_sign_setup(DSA_METHOD *dsam, int (*sign_setup)(DSA *, BN_CTX *, BIGNUM **, BIGNUM **)); OSSL_DEPRECATEDIN_3_0 int (*DSA_meth_get_verify(const DSA_METHOD *dsam))(const unsigned char *, int, DSA_SIG *, DSA *); OSSL_DEPRECATEDIN_3_0 int DSA_meth_set_verify(DSA_METHOD *dsam, int (*verify)(const unsigned char *, int, DSA_SIG *, DSA *)); OSSL_DEPRECATEDIN_3_0 int (*DSA_meth_get_mod_exp(const DSA_METHOD *dsam))(DSA *, BIGNUM *, const BIGNUM *, const BIGNUM *, const BIGNUM *, const BIGNUM *, const BIGNUM *, BN_CTX *, BN_MONT_CTX *); OSSL_DEPRECATEDIN_3_0 int DSA_meth_set_mod_exp(DSA_METHOD *dsam, int (*mod_exp)(DSA *, BIGNUM *, const BIGNUM *, const BIGNUM *, const BIGNUM *, const BIGNUM *, const BIGNUM *, BN_CTX *, BN_MONT_CTX *)); OSSL_DEPRECATEDIN_3_0 int (*DSA_meth_get_bn_mod_exp(const DSA_METHOD *dsam))(DSA *, BIGNUM *, const BIGNUM *, const BIGNUM *, const BIGNUM *, BN_CTX *, BN_MONT_CTX *); OSSL_DEPRECATEDIN_3_0 int DSA_meth_set_bn_mod_exp(DSA_METHOD *dsam, int (*bn_mod_exp)(DSA *, BIGNUM *, const BIGNUM *, const BIGNUM *, const BIGNUM *, BN_CTX *, BN_MONT_CTX *)); OSSL_DEPRECATEDIN_3_0 int (*DSA_meth_get_init(const DSA_METHOD *dsam))(DSA *); OSSL_DEPRECATEDIN_3_0 int DSA_meth_set_init(DSA_METHOD *dsam, int (*init)(DSA *)); OSSL_DEPRECATEDIN_3_0 int (*DSA_meth_get_finish(const DSA_METHOD *dsam))(DSA *); OSSL_DEPRECATEDIN_3_0 int DSA_meth_set_finish(DSA_METHOD *dsam, int (*finish)(DSA *)); OSSL_DEPRECATEDIN_3_0 int (*DSA_meth_get_paramgen(const DSA_METHOD *dsam))(DSA *, int, const unsigned char *, int, int *, unsigned long *, BN_GENCB *); OSSL_DEPRECATEDIN_3_0 int DSA_meth_set_paramgen(DSA_METHOD *dsam, int (*paramgen)(DSA *, int, const unsigned char *, int, int *, unsigned long *, BN_GENCB *)); OSSL_DEPRECATEDIN_3_0 int (*DSA_meth_get_keygen(const DSA_METHOD *dsam))(DSA *); OSSL_DEPRECATEDIN_3_0 int DSA_meth_set_keygen(DSA_METHOD *dsam, int (*keygen)(DSA *)); #endif #endif #ifdef __cplusplus } #endif #endif