Axe the rpmsq debug code which was never getting built anyway
[platform/upstream/rpm.git] / rpmio / digest.h
1 #ifndef _RPMDIGEST_H
2 #define _RPMDIGEST_H
3
4 #include <nss.h>
5 #include <sechash.h>
6 #include <keyhi.h>
7 #include <cryptohi.h>
8
9 #include <rpm/rpmpgp.h>
10 #include "rpmio/base64.h"
11
12
13 /** \ingroup rpmio
14  * Values parsed from OpenPGP signature/pubkey packet(s).
15  */
16 struct pgpDigParams_s {
17     char * userid;
18     uint8_t * hash;
19     char * params[4];
20     uint8_t tag;
21
22     uint8_t version;            /*!< version number. */
23     pgpTime_t time;             /*!< time that the key was created. */
24     uint8_t pubkey_algo;                /*!< public key algorithm. */
25
26     uint8_t hash_algo;
27     uint8_t sigtype;
28     uint8_t hashlen;
29     uint8_t signhash16[2];
30     pgpKeyID_t signid;
31     uint8_t saved;
32 #define PGPDIG_SAVED_TIME       (1 << 0)
33 #define PGPDIG_SAVED_ID         (1 << 1)
34
35 };
36
37 /** \ingroup rpmio
38  * Container for values parsed from an OpenPGP signature and public key.
39  */
40 struct pgpDig_s {
41     struct pgpDigParams_s signature;
42     struct pgpDigParams_s pubkey;
43
44     /* DSA/RSA parameters */
45     SECKEYPublicKey *keydata;
46     SECItem *sigdata;
47 };
48
49 #endif /* _RPMDIGEST_H */