rpm  5.4.15
rpmltc.h
Go to the documentation of this file.
1 #ifndef H_RPMLTC
2 #define H_RPMLTC
3 
8 #include <rpmiotypes.h>
9 #include <rpmpgp.h>
10 #include <rpmsw.h>
11 
12 /* Implementation specific includes. */
13 #if defined(_RPMLTC_INTERNAL)
14 #include <tomcrypt.h>
15 #include <tommath.h>
16 #endif
17 
20 typedef /*abstract@*/ struct rpmltc_s * rpmltc;
21 
25 #if defined(_RPMLTC_INTERNAL)
26 struct rpmltc_s {
27  int in_fips_mode; /* XXX trsa */
28  unsigned int nbits;
29  unsigned int qbits;
30  int badok; /* XXX trsa */
31  int err;
32 
33  void * digest;
34  size_t digestlen;
35 
36  int hashIdx;
37  int prngIdx;
38  int cipherIdx;
39 
40  /* DSA parameters. */
41  dsa_key dsa;
42  mp_int * r;
43  mp_int * s;
44 
45  /* RSA parameters. */
46  rsa_key rsa;
47  mp_int * c;
48 
49  /* ECDSA parameters. */
50  ecc_key ecdsa;
51  const char * curveN;
52 
53 };
54 #endif
55 
56 /*@unchecked@*/
58 
60  /*@*/;
61 int rpmltcExportSignature(pgpDig dig, /*@only@*/ DIGEST_CTX ctx)
62  /*@*/;
63 
64 #endif /* H_RPMLTC */
OpenPGP constants and structures from RFC-2440.
pgpImplVecs_t rpmltcImplVecs
Implementation specific parameter storage.
int rpmltcExportPubkey(pgpDig dig)
mongo_error_t err
Definition: mongo.h:922
Digest private data.
Definition: digest.c:130
struct pgpDig_s * pgpDig
Definition: rpmiotypes.h:97
struct rpmltc_s * rpmltc
Definition: rpmltc.h:20
int rpmltcExportSignature(pgpDig dig, DIGEST_CTX ctx)