rpm  5.4.15
rpmssl.h
Go to the documentation of this file.
1 #ifndef H_RPMSSL
2 #define H_RPMSSL
3 
8 #include <rpmiotypes.h>
9 #include <rpmpgp.h>
10 #include <rpmsw.h>
11 
12 /* Implementation specific includes. */
13 #if defined(_RPMSSL_INTERNAL)
14 
15 #include <openssl/evp.h>
16 #if defined(OPENSSL_NO_EC) && !defined(OPENSSL_NO_ECDSA)
17 #define OPENSSL_NO_ECDSA
18 #endif
19 
20 #include <openssl/bn.h>
21 #include <openssl/dsa.h>
22 #include <openssl/rsa.h>
23 #include <openssl/engine.h>
24 
25 #include <openssl/conf.h>
26 #include <openssl/comp.h>
27 #endif
28 
31 typedef /*abstract@*/ struct rpmssl_s * rpmssl;
32 
36 #if defined(_RPMSSL_INTERNAL)
37 struct rpmssl_s {
38  int in_fips_mode; /* XXX trsa */
39  unsigned int nbits;
40  unsigned int qbits;
41  int badok; /* XXX trsa */
42  int err;
43 
44  void * digest;
45  size_t digestlen;
46 
47  BIO * out; /* XXX tecdsa */
48 #if !defined(OPENSSL_NO_ECDSA)
49  EC_builtin_curve * curves; /* XXX tecdsa */
50  size_t ncurves;
51  EC_GROUP * group; /* XXX tecdsa */
52  EC_KEY * ec_bad; /* XXX tecdsa */
53 #endif
54 
55  unsigned char * sig;
56  size_t siglen;
57 
58  /* DSA parameters. */
59  DSA * dsa;
60  DSA_SIG * dsasig;
61 
62  /* RSA parameters. */
63  RSA * rsa;
64  BIGNUM * hm;
65 
66  /* ECDSA parameters. */
67 #if !defined(OPENSSL_NO_ECDSA)
68  const char * curveN;
69  int nid;
70  ECDSA_SIG * ecdsasig;
71  BIGNUM * priv;
72 #endif
73 
74  EVP_PKEY * pkey;
75  const EVP_MD * md;
76 
77 };
78 #endif
79 
80 /*@unchecked@*/
82 
84  /*@*/;
85 int rpmsslExportSignature(pgpDig dig, /*@only@*/ DIGEST_CTX ctx)
86  /*@*/;
87 
88 #endif /* H_RPMSSL */
OpenPGP constants and structures from RFC-2440.
struct rpmssl_s * rpmssl
Definition: rpmssl.h:31
mongo_error_t err
Definition: mongo.h:922
int rpmsslExportSignature(pgpDig dig, DIGEST_CTX ctx)
Digest private data.
Definition: digest.c:130
struct pgpDig_s * pgpDig
Definition: rpmiotypes.h:97
pgpImplVecs_t rpmsslImplVecs
Implementation specific parameter storage.
const char const bson const bson bson * out
Definition: mongo.h:678
int rpmsslExportPubkey(pgpDig dig)