rpm  5.4.10
rpmbc.h
Go to the documentation of this file.
1 #ifndef H_RPMBC
2 #define H_RPMBC
3 
8 #include <beecrypt/api.h>
9 
10 #include <rpmiotypes.h>
11 #include <rpmpgp.h>
12 #include <rpmsw.h>
13 
14 /* Drag in the beecrypt includes. */
15 #include <beecrypt/beecrypt.h>
16 #include <beecrypt/base64.h>
17 #include <beecrypt/dsa.h>
18 #include <beecrypt/endianness.h>
19 #include <beecrypt/md4.h>
20 #include <beecrypt/md5.h>
21 #include <beecrypt/mp.h>
22 #include <beecrypt/rsa.h>
23 #include <beecrypt/rsapk.h>
24 #include <beecrypt/elgamal.h>
25 #include <beecrypt/ripemd128.h>
26 #include <beecrypt/ripemd160.h>
27 #include <beecrypt/ripemd256.h>
28 #include <beecrypt/ripemd320.h>
29 #include <beecrypt/sha1.h>
30 #include <beecrypt/sha224.h>
31 #include <beecrypt/sha256.h>
32 #include <beecrypt/sha384.h>
33 #include <beecrypt/sha512.h>
34 
37 typedef /*abstract@*/ struct rpmbc_s * rpmbc;
38 
41 #if defined(_RPMBC_INTERNAL)
42 struct rpmbc_s {
43  int in_fips_mode; /* XXX trsa */
44  int nbits; /* XXX trsa */
45  int qbits; /* XXX trsa */
46  int badok; /* XXX trsa */
47  int err;
48 
49  void * digest;
50  size_t digestlen;
51 
52  randomGeneratorContext rngc;
53 
54  rsakp rsa_keypair;
55 
56  dsakp dsa_keypair;
57 
58  dlkp_p elg_keypair;
59 #ifdef DYING
60 dldp_p elg_params;
61 #endif
62 
63  /* DSA parameters. */
64  mpnumber r;
65  mpnumber s;
66 
67  /* RSA parameters. */
68  mpnumber hm;
69  mpnumber m;
70  mpnumber c;
71 };
72 #endif
73 
74 /*@unchecked@*/
76 
77 #endif /* H_RPMBC */