From 8f9323106bac7e4a8f2b4d17bf518fed14466e22 Mon Sep 17 00:00:00 2001 From: Pekka Riikonen Date: Sat, 30 Apr 2005 15:31:26 +0000 Subject: [PATCH] Header changes. --- Makefile.defines.in | 7 +- Makefile.defines_int.in | 7 +- apps/autodist/autodist.in | 14 ++-- includes/silcwin32.h | 5 +- lib/silcclient/client_ops_example.c | 4 +- lib/silccore/silcchannel.h | 5 +- lib/silccore/silccommand.h | 5 +- lib/silccore/silcid.c | 7 +- lib/silccore/silcid.h | 5 +- lib/silccore/silcidcache.c | 3 +- lib/silccore/silcidcache.h | 3 +- lib/silccore/silcmode.h | 5 +- lib/silccore/silcnotify.h | 5 +- lib/silccrypt/aes.h | 5 +- lib/silccrypt/blowfish.h | 5 +- lib/silccrypt/blowfish_internal.h | 5 +- lib/silccrypt/cast.h | 5 +- lib/silccrypt/cast_internal.h | 5 +- lib/silccrypt/ciphers.h | 5 +- lib/silccrypt/ciphers_def.h | 5 +- lib/silccrypt/md5.h | 5 +- lib/silccrypt/md5_internal.h | 2 +- lib/silccrypt/none.c | 5 +- lib/silccrypt/none.h | 12 ++-- lib/silccrypt/rc5.h | 5 +- lib/silccrypt/rc5_internal.h | 5 +- lib/silccrypt/rijndael_internal.h | 5 +- lib/silccrypt/rsa.c | 94 +++++++++++++------------- lib/silccrypt/rsa_internal.h | 3 +- lib/silccrypt/silccipher.h | 5 +- lib/silccrypt/twofish.h | 5 +- lib/silccrypt/twofish_internal.h | 5 +- lib/silcmath/mp_gmp.h | 5 +- lib/silcmath/silcmath.h | 3 +- lib/silcsim/silcsim.c | 5 +- lib/silcsim/silcsim.h | 5 +- lib/silcsim/silcsimutil.c | 5 +- lib/silcsim/silcsimutil.h | 5 +- lib/silcske/groups.c | 3 +- lib/silcske/groups_internal.h | 3 +- lib/silcutil/silcbuffmt.c | 5 +- lib/silcutil/silcmutex.h | 5 +- lib/silcutil/silcnet.c | 3 +- lib/silcutil/silcnet.h | 5 +- lib/silcutil/silcprotocol.c | 7 +- lib/silcutil/silcprotocol.h | 5 +- lib/silcutil/silcschedule.h | 7 +- lib/silcutil/silcschedule_i.h | 5 +- lib/silcutil/silcthread.h | 5 +- lib/silcutil/unix/silcunixmutex.c | 5 +- lib/silcutil/unix/silcunixnet.c | 5 +- lib/silcutil/unix/silcunixthread.c | 5 +- lib/silcutil/unix/silcunixutil.c | 5 +- lib/silcutil/win32/silcwin32mutex.c | 5 +- lib/silcutil/win32/silcwin32net.c | 5 +- lib/silcutil/win32/silcwin32schedule.c | 5 +- lib/silcutil/win32/silcwin32sockconn.c | 5 +- lib/silcutil/win32/silcwin32thread.c | 5 +- lib/silcutil/win32/silcwin32util.c | 5 +- 59 files changed, 170 insertions(+), 222 deletions(-) diff --git a/Makefile.defines.in b/Makefile.defines.in index 926a3035..c13aab23 100644 --- a/Makefile.defines.in +++ b/Makefile.defines.in @@ -1,14 +1,13 @@ # # Makefile.defines.pre # -# Author: Pekka Riikonen +# Author: Pekka Riikonen # -# Copyright (C) 2001 Pekka Riikonen +# Copyright (C) 2001 - 2005 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 -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. +# the Free Software Foundation; version 2 of the License. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of diff --git a/Makefile.defines_int.in b/Makefile.defines_int.in index 718cd7a6..817ec5fe 100644 --- a/Makefile.defines_int.in +++ b/Makefile.defines_int.in @@ -1,14 +1,13 @@ # # Makefile.defines_int.pre # -# Author: Pekka Riikonen +# Author: Pekka Riikonen # -# Copyright (C) 2000 - 2001 Pekka Riikonen +# Copyright (C) 2000 - 2005 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 -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. +# the Free Software Foundation; version 2 of the License. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of diff --git a/apps/autodist/autodist.in b/apps/autodist/autodist.in index f40f70fe..6da94f7f 100755 --- a/apps/autodist/autodist.in +++ b/apps/autodist/autodist.in @@ -915,8 +915,8 @@ ad_makedist() ad_log_open "makedist.log" ad_debug "Starting distribution creation" - ad_log "Starting distribution creation" - ad_log "------------------------------" + ad_log "Created distribution" + ad_log "--------------------" ad_log "" if test '!' -f autodist.dist; then @@ -1388,8 +1388,8 @@ ad_process_noprocess() if test x$1 = xtrue; then ad_log "" - ad_log "Autodist did not process the following files and directories:" - ad_log "-------------------------------------------------------------" + ad_log "Following files and directories were not processed:" + ad_log "---------------------------------------------------" f="$cur/autodist__noprocess" rm -rf $f @@ -1669,7 +1669,7 @@ ad_run_hooks() ad_debug "Running hooks: $1" ad_log "" - ad_log "Running hooks:" + ad_log "Hooks executed:" ad_log "--------------" for i in $1 @@ -1695,8 +1695,8 @@ ad_run_dist_hooks() ad_debug "Starting running distributions hooks: $1" ad_log "" - ad_log "Running distribution hooks:" - ad_log "---------------------------" + ad_log "Distribution hooks executed:" + ad_log "----------------------------" for i in $1 do diff --git a/includes/silcwin32.h b/includes/silcwin32.h index 92eb37e3..cd942009 100644 --- a/includes/silcwin32.h +++ b/includes/silcwin32.h @@ -4,12 +4,11 @@ Author: Pekka Riikonen - Copyright (C) 2001, 2003 Pekka Riikonen + Copyright (C) 2001 - 2003 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 - the Free Software Foundation; either version 2 of the License, or - (at your option) any later version. + the Free Software Foundation; version 2 of the License. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of diff --git a/lib/silcclient/client_ops_example.c b/lib/silcclient/client_ops_example.c index 4fe166a8..7c03f1c4 100644 --- a/lib/silcclient/client_ops_example.c +++ b/lib/silcclient/client_ops_example.c @@ -5,7 +5,9 @@ At the end of this file SilcClientOperation structure is defined, and it is the one the you will give as an argument to the silc_client_alloc - function. See also lib/silcclient/README file, and silcclient.h. */ + function. See also lib/silcclient/README file, and silcclient.h. + + You may freely use this file in your application. */ /* Message sent to the application by library. `conn' associates the diff --git a/lib/silccore/silcchannel.h b/lib/silccore/silcchannel.h index 5e6ddf6e..385f6807 100644 --- a/lib/silccore/silcchannel.h +++ b/lib/silccore/silcchannel.h @@ -4,12 +4,11 @@ Author: Pekka Riikonen - Copyright (C) 1997 - 2001 Pekka Riikonen + Copyright (C) 1997 - 2005 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 - the Free Software Foundation; either version 2 of the License, or - (at your option) any later version. + the Free Software Foundation; version 2 of the License. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of diff --git a/lib/silccore/silccommand.h b/lib/silccore/silccommand.h index dc0e6482..f1d12909 100644 --- a/lib/silccore/silccommand.h +++ b/lib/silccore/silccommand.h @@ -4,12 +4,11 @@ Author: Pekka Riikonen - Copyright (C) 1997 - 2001 Pekka Riikonen + Copyright (C) 1997 - 2005 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 - the Free Software Foundation; either version 2 of the License, or - (at your option) any later version. + the Free Software Foundation; version 2 of the License. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of diff --git a/lib/silccore/silcid.c b/lib/silccore/silcid.c index ee2b1edb..ad0bf94b 100644 --- a/lib/silccore/silcid.c +++ b/lib/silccore/silcid.c @@ -2,14 +2,13 @@ id.c - Author: Pekka Riikonen + Author: Pekka Riikonen - Copyright (C) 1997 - 2001 Pekka Riikonen + Copyright (C) 1997 - 2005 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 - the Free Software Foundation; either version 2 of the License, or - (at your option) any later version. + the Free Software Foundation; version 2 of the License. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of diff --git a/lib/silccore/silcid.h b/lib/silccore/silcid.h index 741ad9ed..05aed905 100644 --- a/lib/silccore/silcid.h +++ b/lib/silccore/silcid.h @@ -4,12 +4,11 @@ Author: Pekka Riikonen - Copyright (C) 1997 - 2000 Pekka Riikonen + Copyright (C) 1997 - 2005 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 - the Free Software Foundation; either version 2 of the License, or - (at your option) any later version. + the Free Software Foundation; version 2 of the License. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of diff --git a/lib/silccore/silcidcache.c b/lib/silccore/silcidcache.c index 62fb5af0..a2a279cc 100644 --- a/lib/silccore/silcidcache.c +++ b/lib/silccore/silcidcache.c @@ -8,8 +8,7 @@ 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 - the Free Software Foundation; either version 2 of the License, or - (at your option) any later version. + the Free Software Foundation; version 2 of the License. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of diff --git a/lib/silccore/silcidcache.h b/lib/silccore/silcidcache.h index b5612d39..e445b0a4 100644 --- a/lib/silccore/silcidcache.h +++ b/lib/silccore/silcidcache.h @@ -8,8 +8,7 @@ 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 - the Free Software Foundation; either version 2 of the License, or - (at your option) any later version. + the Free Software Foundation; version 2 of the License. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of diff --git a/lib/silccore/silcmode.h b/lib/silccore/silcmode.h index 98f9f224..86a2a1be 100644 --- a/lib/silccore/silcmode.h +++ b/lib/silccore/silcmode.h @@ -4,12 +4,11 @@ Author: Pekka Riikonen - Copyright (C) 2001 Pekka Riikonen + Copyright (C) 2001 - 2005 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 - the Free Software Foundation; either version 2 of the License, or - (at your option) any later version. + the Free Software Foundation; version 2 of the License. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of diff --git a/lib/silccore/silcnotify.h b/lib/silccore/silcnotify.h index 0c7fb6a8..41b6d7c5 100644 --- a/lib/silccore/silcnotify.h +++ b/lib/silccore/silcnotify.h @@ -4,12 +4,11 @@ Author: Pekka Riikonen - Copyright (C) 1997 - 2001 Pekka Riikonen + Copyright (C) 1997 - 2005 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 - the Free Software Foundation; either version 2 of the License, or - (at your option) any later version. + the Free Software Foundation; version 2 of the License. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of diff --git a/lib/silccrypt/aes.h b/lib/silccrypt/aes.h index 6efd6582..d9d3810f 100644 --- a/lib/silccrypt/aes.h +++ b/lib/silccrypt/aes.h @@ -2,14 +2,13 @@ rijndael.h - Author: Pekka Riikonen + Author: Pekka Riikonen Copyright (C) 1997 - 2000 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 - the Free Software Foundation; either version 2 of the License, or - (at your option) any later version. + the Free Software Foundation; version 2 of the License. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of diff --git a/lib/silccrypt/blowfish.h b/lib/silccrypt/blowfish.h index c0caeee7..d67d8739 100644 --- a/lib/silccrypt/blowfish.h +++ b/lib/silccrypt/blowfish.h @@ -2,14 +2,13 @@ blowfish.h - Author: Pekka Riikonen + Author: Pekka Riikonen Copyright (C) 1997 - 2000 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 - the Free Software Foundation; either version 2 of the License, or - (at your option) any later version. + the Free Software Foundation; version 2 of the License. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of diff --git a/lib/silccrypt/blowfish_internal.h b/lib/silccrypt/blowfish_internal.h index 19126f03..980036f1 100644 --- a/lib/silccrypt/blowfish_internal.h +++ b/lib/silccrypt/blowfish_internal.h @@ -2,14 +2,13 @@ blowfish_internal.h - Author: Pekka Riikonen + Author: Pekka Riikonen Copyright (C) 1997 - 2000 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 - the Free Software Foundation; either version 2 of the License, or - (at your option) any later version. + the Free Software Foundation; version 2 of the License. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of diff --git a/lib/silccrypt/cast.h b/lib/silccrypt/cast.h index fe735190..f83ce643 100644 --- a/lib/silccrypt/cast.h +++ b/lib/silccrypt/cast.h @@ -2,14 +2,13 @@ cast.h - Author: Pekka Riikonen + Author: Pekka Riikonen Copyright (C) 1999 - 2000 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 - the Free Software Foundation; either version 2 of the License, or - (at your option) any later version. + the Free Software Foundation; version 2 of the License. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of diff --git a/lib/silccrypt/cast_internal.h b/lib/silccrypt/cast_internal.h index 9ba84886..a70c95d2 100644 --- a/lib/silccrypt/cast_internal.h +++ b/lib/silccrypt/cast_internal.h @@ -2,14 +2,13 @@ cast_internal.h - Author: Pekka Riikonen + Author: Pekka Riikonen Copyright (C) 1999 - 2000 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 - the Free Software Foundation; either version 2 of the License, or - (at your option) any later version. + the Free Software Foundation; version 2 of the License. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of diff --git a/lib/silccrypt/ciphers.h b/lib/silccrypt/ciphers.h index 94eeef68..0fb9391c 100644 --- a/lib/silccrypt/ciphers.h +++ b/lib/silccrypt/ciphers.h @@ -2,14 +2,13 @@ ciphers.h - Author: Pekka Riikonen + Author: Pekka Riikonen Copyright (C) 1997 - 2000 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 - the Free Software Foundation; either version 2 of the License, or - (at your option) any later version. + the Free Software Foundation; version 2 of the License. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of diff --git a/lib/silccrypt/ciphers_def.h b/lib/silccrypt/ciphers_def.h index 98e445c4..e254e68f 100644 --- a/lib/silccrypt/ciphers_def.h +++ b/lib/silccrypt/ciphers_def.h @@ -2,14 +2,13 @@ ciphers_def.h - Author: Pekka Riikonen + Author: Pekka Riikonen Copyright (C) 1999 - 2000 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 - the Free Software Foundation; either version 2 of the License, or - (at your option) any later version. + the Free Software Foundation; version 2 of the License. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of diff --git a/lib/silccrypt/md5.h b/lib/silccrypt/md5.h index 8b10d7ea..455f66de 100644 --- a/lib/silccrypt/md5.h +++ b/lib/silccrypt/md5.h @@ -2,14 +2,13 @@ md5.h - Author: Pekka Riikonen + Author: Pekka Riikonen Copyright (C) 1997 - 2000 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 - the Free Software Foundation; either version 2 of the License, or - (at your option) any later version. + the Free Software Foundation; version 2 of the License. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of diff --git a/lib/silccrypt/md5_internal.h b/lib/silccrypt/md5_internal.h index 35835b82..66ec97bc 100644 --- a/lib/silccrypt/md5_internal.h +++ b/lib/silccrypt/md5_internal.h @@ -1,4 +1,4 @@ -/* file ripped from noiz-0.5. -Pekka */ +/* file ripped from noiz-0.5. -Pekka. Public domain. */ #ifndef MD5_INTERNAL_H #define MD5_INTERNAL_H diff --git a/lib/silccrypt/none.c b/lib/silccrypt/none.c index ea6e6484..65a36202 100644 --- a/lib/silccrypt/none.c +++ b/lib/silccrypt/none.c @@ -2,14 +2,13 @@ none.c - Author: Pekka Riikonen + Author: Pekka Riikonen Copyright (C) 1997 - 2000 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 - the Free Software Foundation; either version 2 of the License, or - (at your option) any later version. + the Free Software Foundation; version 2 of the License. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of diff --git a/lib/silccrypt/none.h b/lib/silccrypt/none.h index 316ea878..2e530122 100644 --- a/lib/silccrypt/none.h +++ b/lib/silccrypt/none.h @@ -2,14 +2,13 @@ none.h - Author: Pekka Riikonen + Author: Pekka Riikonen Copyright (C) 1997 - 2000 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 - the Free Software Foundation; either version 2 of the License, or - (at your option) any later version. + the Free Software Foundation; version 2 of the License. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of @@ -20,8 +19,11 @@ /* * $Id$ * $Log$ - * Revision 1.1 2000/06/27 11:36:54 priikone - * Initial revision + * Revision 1.1.1.1.4.1 2005/04/30 15:31:26 priikone + * Header changes. + * + * Revision 1.1.1.1 2000/06/27 11:36:54 priikone + * Importet from internal CVS/Added Log headers. * * */ diff --git a/lib/silccrypt/rc5.h b/lib/silccrypt/rc5.h index 8909ebc0..afc37469 100644 --- a/lib/silccrypt/rc5.h +++ b/lib/silccrypt/rc5.h @@ -2,14 +2,13 @@ rc5.h - Author: Pekka Riikonen + Author: Pekka Riikonen Copyright (C) 1997 - 2000 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 - the Free Software Foundation; either version 2 of the License, or - (at your option) any later version. + the Free Software Foundation; version 2 of the License. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of diff --git a/lib/silccrypt/rc5_internal.h b/lib/silccrypt/rc5_internal.h index 23dc8cf8..8f84c05d 100644 --- a/lib/silccrypt/rc5_internal.h +++ b/lib/silccrypt/rc5_internal.h @@ -2,14 +2,13 @@ rc5_internal.h - Author: Pekka Riikonen + Author: Pekka Riikonen Copyright (C) 1997 - 2000 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 - the Free Software Foundation; either version 2 of the License, or - (at your option) any later version. + the Free Software Foundation; version 2 of the License. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of diff --git a/lib/silccrypt/rijndael_internal.h b/lib/silccrypt/rijndael_internal.h index ae8b7308..f3893e68 100644 --- a/lib/silccrypt/rijndael_internal.h +++ b/lib/silccrypt/rijndael_internal.h @@ -2,14 +2,13 @@ rijndael_internal.h - Author: Pekka Riikonen + Author: Pekka Riikonen Copyright (C) 1997 - 2000 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 - the Free Software Foundation; either version 2 of the License, or - (at your option) any later version. + the Free Software Foundation; version 2 of the License. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of diff --git a/lib/silccrypt/rsa.c b/lib/silccrypt/rsa.c index 7f9beb17..c52f0b8a 100644 --- a/lib/silccrypt/rsa.c +++ b/lib/silccrypt/rsa.c @@ -1,51 +1,51 @@ /* - * rsa.c RSA Public and Private key generation functions, - * RSA encrypt and decrypt functions. - * - * Author: Pekka Riikonen - * - * Copyright (C) 1997 - 2003 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 - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * Created: Sat Mar 1 13:26:45 1997 pekka - * - * RSA public key cryptographic algorithm used in this distribution is: - * - * Key generation: - * p, q primes - * p != q - * n = p * q modulus - * - * Public key exponent: - * e relatively prime to (p-1) * (q-1) - * Private key exponent: - * d = e ^ -1 mod lcm(((p-1) * (q-1))) - * - * Encryption: - * c = m ^ e mod n - * Decryption: - * m = c ^ d mod n - * - * Supports CRT (Chinese Remainder Theorem) for private key operations. - * - * The SSH's (Secure Shell), PGP's (Pretty Good Privacy) and RSAREF - * Toolkit were used as reference when coding this implementation. They - * all were a big help for me. - * - * I also suggest reading Bruce Schneier's; Applied Cryptography, Second - * Edition, John Wiley & Sons, Inc. 1996. This book deals about RSA and - * everything else too about cryptography. - * - */ + + rsa.c RSA Public and Private key generation functions, + RSA encrypt and decrypt functions. + + Author: Pekka Riikonen + + Copyright (C) 1997 - 2005 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 + the Free Software Foundation; version 2 of the License. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + Created: Sat Mar 1 13:26:45 1997 pekka + + RSA public key cryptographic algorithm used in this distribution is: + + Key generation: + p, q primes + p != q + n = p * q modulus + + Public key exponent: + e relatively prime to (p-1) * (q-1) + Private key exponent: + d = e ^ -1 mod lcm(((p-1) * (q-1))) + + Encryption: + c = m ^ e mod n + Decryption: + m = c ^ d mod n + + Supports CRT (Chinese Remainder Theorem) for private key operations. + + The SSH's (Secure Shell), PGP's (Pretty Good Privacy) and RSAREF + Toolkit were used as reference when coding this implementation. They + all were a big help for me. + + I also suggest reading Bruce Schneier's; Applied Cryptography, Second + Edition, John Wiley & Sons, Inc. 1996. This book deals about RSA and + everything else too about cryptography. + +*/ /* $Id$ */ /* diff --git a/lib/silccrypt/rsa_internal.h b/lib/silccrypt/rsa_internal.h index 425ce6a9..d82c579d 100644 --- a/lib/silccrypt/rsa_internal.h +++ b/lib/silccrypt/rsa_internal.h @@ -8,8 +8,7 @@ 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 - the Free Software Foundation; either version 2 of the License, or - (at your option) any later version. + the Free Software Foundation; version 2 of the License. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of diff --git a/lib/silccrypt/silccipher.h b/lib/silccrypt/silccipher.h index 95478d2e..59475334 100644 --- a/lib/silccrypt/silccipher.h +++ b/lib/silccrypt/silccipher.h @@ -2,14 +2,13 @@ silccipher.h - Author: Pekka Riikonen + Author: Pekka Riikonen Copyright (C) 1997 - 2002 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 - the Free Software Foundation; either version 2 of the License, or - (at your option) any later version. + the Free Software Foundation; version 2 of the License. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of diff --git a/lib/silccrypt/twofish.h b/lib/silccrypt/twofish.h index 6b96b302..03269467 100644 --- a/lib/silccrypt/twofish.h +++ b/lib/silccrypt/twofish.h @@ -2,14 +2,13 @@ twofish.h - Author: Pekka Riikonen + Author: Pekka Riikonen Copyright (C) 1997 - 2000 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 - the Free Software Foundation; either version 2 of the License, or - (at your option) any later version. + the Free Software Foundation; version 2 of the License. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of diff --git a/lib/silccrypt/twofish_internal.h b/lib/silccrypt/twofish_internal.h index 0cabe2c4..c0071ac0 100644 --- a/lib/silccrypt/twofish_internal.h +++ b/lib/silccrypt/twofish_internal.h @@ -2,14 +2,13 @@ twofish_internal.h - Author: Pekka Riikonen + Author: Pekka Riikonen Copyright (C) 1997 - 2000 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 - the Free Software Foundation; either version 2 of the License, or - (at your option) any later version. + the Free Software Foundation; version 2 of the License. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of diff --git a/lib/silcmath/mp_gmp.h b/lib/silcmath/mp_gmp.h index 14ae5125..9b4c4d2f 100644 --- a/lib/silcmath/mp_gmp.h +++ b/lib/silcmath/mp_gmp.h @@ -2,14 +2,13 @@ mp_gmp.h - Author: Pekka Riikonen + Author: Pekka Riikonen Copyright (C) 2001 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 - the Free Software Foundation; either version 2 of the License, or - (at your option) any later version. + the Free Software Foundation; version 2 of the License. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of diff --git a/lib/silcmath/silcmath.h b/lib/silcmath/silcmath.h index 64510b1d..e1bb9945 100644 --- a/lib/silcmath/silcmath.h +++ b/lib/silcmath/silcmath.h @@ -8,8 +8,7 @@ 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 - the Free Software Foundation; either version 2 of the License, or - (at your option) any later version. + the Free Software Foundation; version 2 of the License. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of diff --git a/lib/silcsim/silcsim.c b/lib/silcsim/silcsim.c index 6e772620..dcec0150 100644 --- a/lib/silcsim/silcsim.c +++ b/lib/silcsim/silcsim.c @@ -2,14 +2,13 @@ silcsim.c - Author: Pekka Riikonen + Author: Pekka Riikonen Copyright (C) 2000 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 - the Free Software Foundation; either version 2 of the License, or - (at your option) any later version. + the Free Software Foundation; version 2 of the License. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of diff --git a/lib/silcsim/silcsim.h b/lib/silcsim/silcsim.h index ca888081..357ab573 100644 --- a/lib/silcsim/silcsim.h +++ b/lib/silcsim/silcsim.h @@ -2,14 +2,13 @@ silcsim.h - Author: Pekka Riikonen + Author: Pekka Riikonen Copyright (C) 2000 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 - the Free Software Foundation; either version 2 of the License, or - (at your option) any later version. + the Free Software Foundation; version 2 of the License. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of diff --git a/lib/silcsim/silcsimutil.c b/lib/silcsim/silcsimutil.c index 0da8993a..1e839db3 100644 --- a/lib/silcsim/silcsimutil.c +++ b/lib/silcsim/silcsimutil.c @@ -2,14 +2,13 @@ silcsimutil.c - Author: Pekka Riikonen + Author: Pekka Riikonen Copyright (C) 2000 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 - the Free Software Foundation; either version 2 of the License, or - (at your option) any later version. + the Free Software Foundation; version 2 of the License. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of diff --git a/lib/silcsim/silcsimutil.h b/lib/silcsim/silcsimutil.h index 70c4be3a..cf818825 100644 --- a/lib/silcsim/silcsimutil.h +++ b/lib/silcsim/silcsimutil.h @@ -2,14 +2,13 @@ silcsimutil.h - Author: Pekka Riikonen + Author: Pekka Riikonen Copyright (C) 2000 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 - the Free Software Foundation; either version 2 of the License, or - (at your option) any later version. + the Free Software Foundation; version 2 of the License. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of diff --git a/lib/silcske/groups.c b/lib/silcske/groups.c index e0bbce0f..2ba52de9 100644 --- a/lib/silcske/groups.c +++ b/lib/silcske/groups.c @@ -8,8 +8,7 @@ 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 - the Free Software Foundation; either version 2 of the License, or - (at your option) any later version. + the Free Software Foundation; version 2 of the License. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of diff --git a/lib/silcske/groups_internal.h b/lib/silcske/groups_internal.h index eb627583..dccbe57f 100644 --- a/lib/silcske/groups_internal.h +++ b/lib/silcske/groups_internal.h @@ -8,8 +8,7 @@ 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 - the Free Software Foundation; either version 2 of the License, or - (at your option) any later version. + the Free Software Foundation; version 2 of the License. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of diff --git a/lib/silcutil/silcbuffmt.c b/lib/silcutil/silcbuffmt.c index 65dd76b4..23653c4b 100644 --- a/lib/silcutil/silcbuffmt.c +++ b/lib/silcutil/silcbuffmt.c @@ -4,12 +4,11 @@ Author: Pekka Riikonen - Copyright (C) 1997 - 2002 Pekka Riikonen + Copyright (C) 1997 - 2005 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 - the Free Software Foundation; either version 2 of the License, or - (at your option) any later version. + the Free Software Foundation; version 2 of the License. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of diff --git a/lib/silcutil/silcmutex.h b/lib/silcutil/silcmutex.h index ca5e8066..50c1a606 100644 --- a/lib/silcutil/silcmutex.h +++ b/lib/silcutil/silcmutex.h @@ -4,12 +4,11 @@ Author: Pekka Riikonen - Copyright (C) 2001 Pekka Riikonen + Copyright (C) 2001 - 2005 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 - the Free Software Foundation; either version 2 of the License, or - (at your option) any later version. + the Free Software Foundation; version 2 of the License. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of diff --git a/lib/silcutil/silcnet.c b/lib/silcutil/silcnet.c index d083656e..a77311cd 100644 --- a/lib/silcutil/silcnet.c +++ b/lib/silcutil/silcnet.c @@ -8,8 +8,7 @@ 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 - the Free Software Foundation; either version 2 of the License, or - (at your option) any later version. + the Free Software Foundation; version 2 of the License. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of diff --git a/lib/silcutil/silcnet.h b/lib/silcutil/silcnet.h index 9dd5acd2..062eddfd 100644 --- a/lib/silcutil/silcnet.h +++ b/lib/silcutil/silcnet.h @@ -4,12 +4,11 @@ Author: Pekka Riikonen - Copyright (C) 1997 - 2001 Pekka Riikonen + Copyright (C) 1997 - 2005 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 - the Free Software Foundation; either version 2 of the License, or - (at your option) any later version. + the Free Software Foundation; version 2 of the License. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of diff --git a/lib/silcutil/silcprotocol.c b/lib/silcutil/silcprotocol.c index 67a6640a..a0a34d23 100644 --- a/lib/silcutil/silcprotocol.c +++ b/lib/silcutil/silcprotocol.c @@ -2,14 +2,13 @@ silcprotocol.c - Author: Pekka Riikonen + Author: Pekka Riikonen - Copyright (C) 1997 - 2002 Pekka Riikonen + Copyright (C) 1997 - 2005 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 - the Free Software Foundation; either version 2 of the License, or - (at your option) any later version. + the Free Software Foundation; version 2 of the License. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of diff --git a/lib/silcutil/silcprotocol.h b/lib/silcutil/silcprotocol.h index 74393280..9f8706d9 100644 --- a/lib/silcutil/silcprotocol.h +++ b/lib/silcutil/silcprotocol.h @@ -4,12 +4,11 @@ Author: Pekka Riikonen - Copyright (C) 1997 - 2000 Pekka Riikonen + Copyright (C) 1997 - 2005 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 - the Free Software Foundation; either version 2 of the License, or - (at your option) any later version. + the Free Software Foundation; version 2 of the License. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of diff --git a/lib/silcutil/silcschedule.h b/lib/silcutil/silcschedule.h index c7a8697e..be24c41a 100644 --- a/lib/silcutil/silcschedule.h +++ b/lib/silcutil/silcschedule.h @@ -2,16 +2,13 @@ silcschedule.h - COPYRIGHT - Author: Pekka Riikonen - Copyright (C) 1998 - 2001 Pekka Riikonen + Copyright (C) 1998 - 2005 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 - the Free Software Foundation; either version 2 of the License, or - (at your option) any later version. + the Free Software Foundation; version 2 of the License. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of diff --git a/lib/silcutil/silcschedule_i.h b/lib/silcutil/silcschedule_i.h index 7e2b6026..88a15a95 100644 --- a/lib/silcutil/silcschedule_i.h +++ b/lib/silcutil/silcschedule_i.h @@ -4,12 +4,11 @@ Author: Pekka Riikonen - Copyright (C) 2001 Pekka Riikonen + Copyright (C) 2001 - 2005 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 - the Free Software Foundation; either version 2 of the License, or - (at your option) any later version. + the Free Software Foundation; version 2 of the License. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of diff --git a/lib/silcutil/silcthread.h b/lib/silcutil/silcthread.h index 06becee0..e96625f1 100644 --- a/lib/silcutil/silcthread.h +++ b/lib/silcutil/silcthread.h @@ -4,12 +4,11 @@ Author: Pekka Riikonen - Copyright (C) 2001 Pekka Riikonen + Copyright (C) 2001 - 2005 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 - the Free Software Foundation; either version 2 of the License, or - (at your option) any later version. + the Free Software Foundation; version 2 of the License. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of diff --git a/lib/silcutil/unix/silcunixmutex.c b/lib/silcutil/unix/silcunixmutex.c index d6eb0f23..27a1655a 100644 --- a/lib/silcutil/unix/silcunixmutex.c +++ b/lib/silcutil/unix/silcunixmutex.c @@ -4,12 +4,11 @@ Author: Pekka Riikonen - Copyright (C) 2001 Pekka Riikonen + Copyright (C) 2001 - 2005 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 - the Free Software Foundation; either version 2 of the License, or - (at your option) any later version. + the Free Software Foundation; version 2 of the License. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of diff --git a/lib/silcutil/unix/silcunixnet.c b/lib/silcutil/unix/silcunixnet.c index d2e52e93..f997196d 100644 --- a/lib/silcutil/unix/silcunixnet.c +++ b/lib/silcutil/unix/silcunixnet.c @@ -4,12 +4,11 @@ Author: Pekka Riikonen - Copyright (C) 1997 - 2001 Pekka Riikonen + Copyright (C) 1997 - 2005 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 - the Free Software Foundation; either version 2 of the License, or - (at your option) any later version. + the Free Software Foundation; version 2 of the License. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of diff --git a/lib/silcutil/unix/silcunixthread.c b/lib/silcutil/unix/silcunixthread.c index 575c54a8..94f23f16 100644 --- a/lib/silcutil/unix/silcunixthread.c +++ b/lib/silcutil/unix/silcunixthread.c @@ -4,12 +4,11 @@ Author: Pekka Riikonen - Copyright (C) 2001 Pekka Riikonen + Copyright (C) 2001 - 2005 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 - the Free Software Foundation; either version 2 of the License, or - (at your option) any later version. + the Free Software Foundation; version 2 of the License. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of diff --git a/lib/silcutil/unix/silcunixutil.c b/lib/silcutil/unix/silcunixutil.c index 59266164..75a6adca 100644 --- a/lib/silcutil/unix/silcunixutil.c +++ b/lib/silcutil/unix/silcunixutil.c @@ -4,12 +4,11 @@ Author: Pekka Riikonen - Copyright (C) 1997 - 2001 Pekka Riikonen + Copyright (C) 1997 - 2005 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 - the Free Software Foundation; either version 2 of the License, or - (at your option) any later version. + the Free Software Foundation; version 2 of the License. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of diff --git a/lib/silcutil/win32/silcwin32mutex.c b/lib/silcutil/win32/silcwin32mutex.c index 11c03c9c..64c3e938 100644 --- a/lib/silcutil/win32/silcwin32mutex.c +++ b/lib/silcutil/win32/silcwin32mutex.c @@ -4,12 +4,11 @@ Author: Pekka Riikonen - Copyright (C) 2001 Pekka Riikonen + Copyright (C) 2001 - 2005 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 - the Free Software Foundation; either version 2 of the License, or - (at your option) any later version. + the Free Software Foundation; version 2 of the License. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of diff --git a/lib/silcutil/win32/silcwin32net.c b/lib/silcutil/win32/silcwin32net.c index fd7542dd..0bcd038d 100644 --- a/lib/silcutil/win32/silcwin32net.c +++ b/lib/silcutil/win32/silcwin32net.c @@ -4,12 +4,11 @@ Author: Pekka Riikonen - Copyright (C) 1997 - 2001 Pekka Riikonen + Copyright (C) 1997 - 2005 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 - the Free Software Foundation; either version 2 of the License, or - (at your option) any later version. + the Free Software Foundation; version 2 of the License. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of diff --git a/lib/silcutil/win32/silcwin32schedule.c b/lib/silcutil/win32/silcwin32schedule.c index c3dedee3..383ececa 100644 --- a/lib/silcutil/win32/silcwin32schedule.c +++ b/lib/silcutil/win32/silcwin32schedule.c @@ -4,12 +4,11 @@ Author: Pekka Riikonen - Copyright (C) 2001 Pekka Riikonen + Copyright (C) 2001 - 2005 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 - the Free Software Foundation; either version 2 of the License, or - (at your option) any later version. + the Free Software Foundation; version 2 of the License. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of diff --git a/lib/silcutil/win32/silcwin32sockconn.c b/lib/silcutil/win32/silcwin32sockconn.c index 55f37e56..abc35237 100644 --- a/lib/silcutil/win32/silcwin32sockconn.c +++ b/lib/silcutil/win32/silcwin32sockconn.c @@ -4,12 +4,11 @@ Author: Pekka Riikonen - Copyright (C) 1997 - 2001 Pekka Riikonen + Copyright (C) 1997 - 2005 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 - the Free Software Foundation; either version 2 of the License, or - (at your option) any later version. + the Free Software Foundation; version 2 of the License. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of diff --git a/lib/silcutil/win32/silcwin32thread.c b/lib/silcutil/win32/silcwin32thread.c index ca2a2112..cdbb3d3c 100644 --- a/lib/silcutil/win32/silcwin32thread.c +++ b/lib/silcutil/win32/silcwin32thread.c @@ -4,12 +4,11 @@ Author: Pekka Riikonen - Copyright (C) 2001 Pekka Riikonen + Copyright (C) 2001 - 2005 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 - the Free Software Foundation; either version 2 of the License, or - (at your option) any later version. + the Free Software Foundation; version 2 of the License. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of diff --git a/lib/silcutil/win32/silcwin32util.c b/lib/silcutil/win32/silcwin32util.c index 0fb3f204..7bc2d69a 100644 --- a/lib/silcutil/win32/silcwin32util.c +++ b/lib/silcutil/win32/silcwin32util.c @@ -4,12 +4,11 @@ Author: Pekka Riikonen - Copyright (C) 2001 Pekka Riikonen + Copyright (C) 2001 - 2005 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 - the Free Software Foundation; either version 2 of the License, or - (at your option) any later version. + the Free Software Foundation; version 2 of the License. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of -- 2.24.0