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