X-Git-Url: http://git.silcnet.org/gitweb/?a=blobdiff_plain;f=lib%2Fsilccrypt%2Fsilcpkcs.h;h=78812b0f870bd3fcbbb1571fd7be6659d1f28932;hb=9905799a86c606304fd7df2cd401de1740a272a1;hp=c6a915c9a812607397bebdca5481dc2d15f54fcb;hpb=8dba6fece042388ce16a11d7ed47107d2deb54c8;p=silc.git diff --git a/lib/silccrypt/silcpkcs.h b/lib/silccrypt/silcpkcs.h index c6a915c9..78812b0f 100644 --- a/lib/silccrypt/silcpkcs.h +++ b/lib/silccrypt/silcpkcs.h @@ -4,7 +4,7 @@ Author: Pekka Riikonen - Copyright (C) 1997 - 2006 Pekka Riikonen + Copyright (C) 1997 - 2007 Pekka Riikonen This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -155,7 +155,8 @@ typedef struct { SilcUInt32 src_len, unsigned char *dst, SilcUInt32 dst_size, - SilcUInt32 *ret_dst_len); + SilcUInt32 *ret_dst_len, + SilcRng rng); SilcBool (*decrypt)(void *private_key, unsigned char *src, SilcUInt32 src_len, @@ -260,7 +261,8 @@ struct SilcPKCSObjectStruct { SilcUInt32 src_len, unsigned char *dst, SilcUInt32 dst_size, - SilcUInt32 *ret_dst_len); + SilcUInt32 *ret_dst_len, + SilcRng rng); SilcBool (*decrypt)(void *private_key, unsigned char *src, SilcUInt32 src_len, @@ -621,7 +623,7 @@ SilcBool silc_pkcs_private_key_alloc(SilcPKCSType type, * * DESCRIPTION * - * Returns the key length in bits from the public key. + * Returns the key length in bits from the private key. * ***/ SilcUInt32 silc_pkcs_private_key_get_len(SilcPrivateKey private_key); @@ -656,7 +658,7 @@ void silc_pkcs_private_key_free(SilcPrivateKey private_key); SilcBool silc_pkcs_encrypt(SilcPublicKey public_key, unsigned char *src, SilcUInt32 src_len, unsigned char *dst, SilcUInt32 dst_size, - SilcUInt32 *dst_len); + SilcUInt32 *dst_len, SilcRng rng); /****f* silccrypt/SilcPKCSAPI/silc_pkcs_decrypt *