X-Git-Url: http://git.silcnet.org/gitweb/?p=silc.git;a=blobdiff_plain;f=lib%2Fsilccrypt%2Fsilcpk.c;h=cb9ef4229f3c695674728d7b91fcc3d14df41a2c;hp=7e7c234e72681cd6355c0e6b69aec9e51cf37215;hb=9905799a86c606304fd7df2cd401de1740a272a1;hpb=f3b43606c546a86a43b283b46464972296e1e271 diff --git a/lib/silccrypt/silcpk.c b/lib/silccrypt/silcpk.c index 7e7c234e..cb9ef422 100644 --- a/lib/silccrypt/silcpk.c +++ b/lib/silccrypt/silcpk.c @@ -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 @@ -1529,7 +1529,8 @@ SilcBool silc_pkcs_silc_encrypt(void *public_key, SilcUInt32 src_len, unsigned char *dst, SilcUInt32 dst_size, - SilcUInt32 *ret_dst_len) + SilcUInt32 *ret_dst_len, + SilcRng rng) { SilcSILCPublicKey silc_pubkey = public_key; @@ -1538,7 +1539,7 @@ SilcBool silc_pkcs_silc_encrypt(void *public_key, return silc_pubkey->pkcs->encrypt(silc_pubkey->public_key, src, src_len, - dst, dst_size, ret_dst_len); + dst, dst_size, ret_dst_len, rng); } /* Decrypts as specified in SILC protocol specification */