rpm  5.4.15
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  unsigned int nbits;
45  unsigned int qbits;
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  mpnumber hm;
67 
68  /* RSA parameters. */
69  mpnumber c;
70  mpnumber md;
71 
72  /* ECDSA parameters (unimplemented). */
73  mpnumber Q;
74 };
75 #endif
76 
77 /*@unchecked@*/
79 
81  /*@*/;
82 int rpmbcExportSignature(pgpDig dig, /*@only@*/ DIGEST_CTX ctx)
83  /*@*/;
84 
85 #endif /* H_RPMBC */
OpenPGP constants and structures from RFC-2440.
pgpImplVecs_t rpmbcImplVecs
Definition: rpmbc.c:695
int rpmbcExportSignature(pgpDig dig, DIGEST_CTX ctx)
Definition: rpmbc.c:818
mongo_error_t err
Definition: mongo.h:922
Digest private data.
Definition: digest.c:130
struct pgpDig_s * pgpDig
Definition: rpmiotypes.h:97
struct rpmbc_s * rpmbc
Definition: rpmbc.h:37
int rpmbcExportPubkey(pgpDig dig)
Definition: rpmbc.c:710