@@ -236,17 +236,17 @@ struct PGP_PubKey
236
236
int can_encrypt ;
237
237
};
238
238
239
- int pgp_init (PGP_Context * * ctx );
239
+ int pgp_init (PGP_Context * * ctx_p );
240
240
int pgp_encrypt (PGP_Context * ctx , MBuf * src , MBuf * dst );
241
- int pgp_decrypt (PGP_Context * ctx , MBuf * src , MBuf * dst );
241
+ int pgp_decrypt (PGP_Context * ctx , MBuf * msrc , MBuf * mdst );
242
242
int pgp_free (PGP_Context * ctx );
243
243
244
244
int pgp_get_digest_code (const char * name );
245
245
int pgp_get_cipher_code (const char * name );
246
246
const char * pgp_get_digest_name (int code );
247
247
248
248
int pgp_set_cipher_algo (PGP_Context * ctx , const char * name );
249
- int pgp_set_s2k_mode (PGP_Context * ctx , int type );
249
+ int pgp_set_s2k_mode (PGP_Context * ctx , int mode );
250
250
int pgp_set_s2k_count (PGP_Context * ctx , int count );
251
251
int pgp_set_s2k_cipher_algo (PGP_Context * ctx , const char * name );
252
252
int pgp_set_s2k_digest_algo (PGP_Context * ctx , const char * name );
@@ -259,22 +259,22 @@ int pgp_set_text_mode(PGP_Context *ctx, int mode);
259
259
int pgp_set_unicode_mode (PGP_Context * ctx , int mode );
260
260
int pgp_get_unicode_mode (PGP_Context * ctx );
261
261
262
- int pgp_set_symkey (PGP_Context * ctx , const uint8 * key , int klen );
262
+ int pgp_set_symkey (PGP_Context * ctx , const uint8 * key , int len );
263
263
int pgp_set_pubkey (PGP_Context * ctx , MBuf * keypkt ,
264
- const uint8 * key , int klen , int pubtype );
264
+ const uint8 * key , int key_len , int pubtype );
265
265
266
266
int pgp_get_keyid (MBuf * pgp_data , char * dst );
267
267
268
268
/* internal functions */
269
269
270
- int pgp_load_digest (int c , PX_MD * * res );
271
- int pgp_load_cipher (int c , PX_Cipher * * res );
272
- int pgp_get_cipher_key_size (int c );
273
- int pgp_get_cipher_block_size (int c );
270
+ int pgp_load_digest (int code , PX_MD * * res );
271
+ int pgp_load_cipher (int code , PX_Cipher * * res );
272
+ int pgp_get_cipher_key_size (int code );
273
+ int pgp_get_cipher_block_size (int code );
274
274
275
275
int pgp_s2k_fill (PGP_S2K * s2k , int mode , int digest_algo , int count );
276
276
int pgp_s2k_read (PullFilter * src , PGP_S2K * s2k );
277
- int pgp_s2k_process (PGP_S2K * s2k , int cipher , const uint8 * key , int klen );
277
+ int pgp_s2k_process (PGP_S2K * s2k , int cipher , const uint8 * key , int key_len );
278
278
279
279
typedef struct PGP_CFB PGP_CFB ;
280
280
int pgp_cfb_create (PGP_CFB * * ctx_p , int algo ,
@@ -316,11 +316,11 @@ int pgp_mpi_write(PushFilter *dst, PGP_MPI *n);
316
316
int pgp_mpi_hash (PX_MD * md , PGP_MPI * n );
317
317
unsigned pgp_mpi_cksum (unsigned cksum , PGP_MPI * n );
318
318
319
- int pgp_elgamal_encrypt (PGP_PubKey * pk , PGP_MPI * m ,
320
- PGP_MPI * * c1 , PGP_MPI * * c2 );
321
- int pgp_elgamal_decrypt (PGP_PubKey * pk , PGP_MPI * c1 , PGP_MPI * c2 ,
322
- PGP_MPI * * m );
323
- int pgp_rsa_encrypt (PGP_PubKey * pk , PGP_MPI * m , PGP_MPI * * c );
324
- int pgp_rsa_decrypt (PGP_PubKey * pk , PGP_MPI * c , PGP_MPI * * m );
319
+ int pgp_elgamal_encrypt (PGP_PubKey * pk , PGP_MPI * _m ,
320
+ PGP_MPI * * c1_p , PGP_MPI * * c2_p );
321
+ int pgp_elgamal_decrypt (PGP_PubKey * pk , PGP_MPI * _c1 , PGP_MPI * _c2 ,
322
+ PGP_MPI * * msg_p );
323
+ int pgp_rsa_encrypt (PGP_PubKey * pk , PGP_MPI * _m , PGP_MPI * * c_p );
324
+ int pgp_rsa_decrypt (PGP_PubKey * pk , PGP_MPI * _c , PGP_MPI * * m_p );
325
325
326
326
extern struct PullFilterOps pgp_decrypt_filter ;
0 commit comments