pgpmakepke.h
来自「pgp soucecode pgp soucecode」· C头文件 代码 · 共 34 行
H
34 行
/*
* pgpMakePKE.h -- Make a Public Key Encrypted packet from a pubkey and a
* session key.
*
* This is a PRIVATE header file, for use only within the PGP Library.
* You should not be using these functions in an application.
*
* $Id: pgpMakePKE.h,v 1.7 1997/06/25 19:39:59 lloyd Exp $
*/
#ifndef Included_pgpMakePKE_h
#define Included_pgpMakePKE_h
#include <stddef.h> /* For size_t */
#include "pgpUsuals.h" /* For PGPByte and PgpVersion */
PGP_BEGIN_C_DECLARATIONS
/* The maximum size of the public-key-encrypted packet */
size_t makePkeMaxSize(PGPPubKey const *pub, PgpVersion version);
/*
* Given a buffer of at least "makePkeMaxSize" bytes, make a PKE packet
* into it and return the size of the PKE, or 0.
*/
int makePke(PGPByte *buf, PGPPubKey const *pub,
PGPRandomContext const *rc,
PGPByte const *key, unsigned keylen, PgpVersion version);
PGP_END_C_DECLARATIONS
#endif /* Included_pgpMakePKE_h */
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?