diff options
Diffstat (limited to 'g10/main.h')
-rw-r--r-- | g10/main.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/g10/main.h b/g10/main.h index 9d0f07a89..708563427 100644 --- a/g10/main.h +++ b/g10/main.h @@ -21,6 +21,11 @@ #define G10_MAIN_H #include "types.h" #include "iobuf.h" +#include "cipher.h" + +#define DEFAULT_CIPHER_ALGO CIPHER_ALGO_BLOWFISH +#define DEFAULT_PUBKEY_ALGO PUBKEY_ALGO_ELGAMAL +#define DEFAULT_DIGEST_ALGO DIGEST_ALGO_RMD160 /*-- encode.c --*/ int encode_symmetric( const char *filename ); @@ -37,4 +42,11 @@ void generate_keypair(void); int overwrite_filep( const char *fname ); IOBUF open_outfile( const char *fname ); +/*-- seskey.c --*/ +void make_session_key( DEK *dek ); +MPI encode_session_key( DEK *dek, unsigned nbits ); +MPI encode_rmd160_value( byte *md, unsigned len, unsigned nbits ); +MPI encode_md5_value( byte *md, unsigned len, unsigned nbits ); + + #endif /*G10_MAIN_H*/ |