rpm  5.4.14
rpmnss.h
Go to the documentation of this file.
1 #ifndef H_RPMNSS
2 #define H_RPMNSS
3 
8 #include <rpmiotypes.h>
9 #include <rpmpgp.h>
10 #include <rpmsw.h>
11 
12 #if defined(_RPMNSS_INTERNAL)
13 #if defined(__LCLINT__)
14 #define __i386__
15 #endif
16 #include <nss.h>
17 #include <sechash.h>
18 #include <keyhi.h>
19 #include <cryptohi.h>
20 #include <pk11pub.h>
21 #include <pk11pqg.h>
22 #include <secerr.h>
23 #endif
24 
27 typedef /*abstract@*/ struct rpmnss_s * rpmnss;
28 
31 #if defined(_RPMNSS_INTERNAL)
32 struct rpmnss_s {
33  int in_fips_mode; /* XXX trsa */
34  int nbits; /* XXX trsa */
35  int qbits; /* XXX trsa */
36  int badok; /* XXX trsa */
37  int err;
38 
39  void * digest;
40  size_t digestlen;
41 
42  /* key_spec */
43  /* key_pair */
44  SECKEYPrivateKey * sec_key;
45  SECKEYPublicKey * pub_key;
46  /* hash */
47  SECItem * sig;
48 
49  SECOidTag encAlg;
50  SECOidTag hashAlg;
51  SECItem item;
52 
53  /* RSA parameters. */
54 
55  /* DSA parameters. */
56 
57  /* ELG parameters. */
58 
59  /* ECDSA parameters. */
60 SECKEYECParams * ecparams;
61 const char * curveN;
62 SECOidTag curveOid;
63 
64 };
65 #endif
66 
69 /*@unchecked@*/
71 
72 #endif /* H_RPMNSS */
pgpImplVecs_t rpmnssImplVecs
OpenPGP constants and structures from RFC-2440.
struct rpmnss_s * rpmnss
Definition: rpmnss.h:27
const unsigned char * digest
Definition: rpmfi-py.c:247