X-Git-Url: http://git.silcnet.org/gitweb/?a=blobdiff_plain;f=lib%2Fsilccrypt%2Fsilcpkcs1.h;h=48d3b23d218afcfa2210d384a20dc73b3280a381;hb=26618713bb72877372e5dc3b7b9f7d101c26fb78;hp=9b113297a06a5a2e959065f82fe427a36cba1bba;hpb=fe64e3c36398fa08a8fc08cda4dafbd652c213ad;p=crypto.git diff --git a/lib/silccrypt/silcpkcs1.h b/lib/silccrypt/silcpkcs1.h index 9b113297..48d3b23d 100644 --- a/lib/silccrypt/silcpkcs1.h +++ b/lib/silccrypt/silcpkcs1.h @@ -4,7 +4,7 @@ Author: Pekka Riikonen - Copyright (C) 2003 Pekka Riikonen + Copyright (C) 2003 - 2008 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 @@ -17,7 +17,7 @@ */ -/****h* silccrypt/SILC PKCS1 Interface +/****h* silccrypt/PKCS#1 Interface * * DESCRIPTION * @@ -27,12 +27,14 @@ * such as digital signatures and their verification, and encryption and * decryption. * + * This is a low level interface that usually is not needed or used directly. + * ***/ #ifndef SILCPKCS1_H #define SILCPKCS1_H -/****d* silccrypt/SilcPKCS1API/SilcPkcs1BlockType +/****d* silccrypt/SilcPkcs1BlockType * * NAME * @@ -52,16 +54,16 @@ typedef enum { } SilcPkcs1BlockType; /***/ -/****f* silccrypt/SilcPKCS1API/silc_pkcs1_encode +/****f* silccrypt/silc_pkcs1_encode * * SYNOPSIS * * SilcBool silc_pkcs1_encode(SilcPkcs1BlockType bt, - * const unsigned char *data, - * SilcUInt32 data_len, - * unsigned char *dest_data, - * SilcUInt32 dest_data_size, - * SilcRng rng); + * const unsigned char *data, + * SilcUInt32 data_len, + * unsigned char *dest_data, + * SilcUInt32 dest_data_size, + * SilcRng rng); * * DESCRIPTION * @@ -78,22 +80,22 @@ typedef enum { * ***/ SilcBool silc_pkcs1_encode(SilcPkcs1BlockType bt, - const unsigned char *data, - SilcUInt32 data_len, - unsigned char *dest_data, - SilcUInt32 dest_data_size, - SilcRng rng); + const unsigned char *data, + SilcUInt32 data_len, + unsigned char *dest_data, + SilcUInt32 dest_data_size, + SilcRng rng); -/****f* silccrypt/SilcPKCS1API/silc_pkcs1_decode +/****f* silccrypt/silc_pkcs1_decode * * SYNOPSIS * * SilcBool silc_pkcs1_decode(SilcPkcs1BlockType bt, - * const unsigned char *data, - * SilcUInt32 data_len, - * unsigned char *dest_data, - * SilcUInt32 dest_data_size, - * SilcUInt32 *dest_len); + * const unsigned char *data, + * SilcUInt32 data_len, + * unsigned char *dest_data, + * SilcUInt32 dest_data_size, + * SilcUInt32 *dest_len); * * DESCRIPTION * @@ -106,10 +108,10 @@ SilcBool silc_pkcs1_encode(SilcPkcs1BlockType bt, * ***/ SilcBool silc_pkcs1_decode(SilcPkcs1BlockType bt, - const unsigned char *data, - SilcUInt32 data_len, - unsigned char *dest_data, - SilcUInt32 dest_data_size, - SilcUInt32 *dest_len); + const unsigned char *data, + SilcUInt32 data_len, + unsigned char *dest_data, + SilcUInt32 dest_data_size, + SilcUInt32 *dest_len); #endif /* SILCPKCS1_H */