diff libtomcrypt/src/pk/katja/katja_decrypt_key.c @ 1471:6dba84798cd5

Update to libtomcrypt 1.18.1, merged with Dropbear changes
author Matt Johnston <matt@ucc.asn.au>
date Fri, 09 Feb 2018 21:44:05 +0800
parents f849a5ca2efc
children
line wrap: on
line diff
--- a/libtomcrypt/src/pk/katja/katja_decrypt_key.c	Thu Feb 08 23:11:40 2018 +0800
+++ b/libtomcrypt/src/pk/katja/katja_decrypt_key.c	Fri Feb 09 21:44:05 2018 +0800
@@ -5,20 +5,18 @@
  *
  * The library is free for all purposes without any express
  * guarantee it works.
- *
- * Tom St Denis, [email protected], http://libtom.org
  */
 #include "tomcrypt.h"
 
 /**
   @file katja_decrypt_key.c
-  Katja LTC_PKCS #1 OAEP Decryption, Tom St Denis
-*/  
+  Katja PKCS #1 OAEP Decryption, Tom St Denis
+*/
 
-#ifdef MKAT
+#ifdef LTC_MKAT
 
 /**
-   (LTC_PKCS #1 v2.0) decrypt then OAEP depad  
+   (PKCS #1 v2.0) decrypt then OAEP depad
    @param in          The ciphertext
    @param inlen       The length of the ciphertext (octets)
    @param out         [out] The plaintext
@@ -31,7 +29,7 @@
    @return CRYPT_OK if succcessul (even if invalid)
 */
 int katja_decrypt_key(const unsigned char *in,       unsigned long  inlen,
-                          unsigned char *out,      unsigned long *outlen, 
+                          unsigned char *out,      unsigned long *outlen,
                     const unsigned char *lparam,   unsigned long  lparamlen,
                           int            hash_idx, int           *stat,
                           katja_key       *key)
@@ -39,7 +37,7 @@
   unsigned long modulus_bitlen, modulus_bytelen, x;
   int           err;
   unsigned char *tmp;
-  
+
   LTC_ARGCHK(out    != NULL);
   LTC_ARGCHK(outlen != NULL);
   LTC_ARGCHK(key    != NULL);
@@ -52,7 +50,7 @@
   if ((err = hash_is_valid(hash_idx)) != CRYPT_OK) {
      return err;
   }
-  
+
   /* get modulus len in bits */
   modulus_bitlen = mp_count_bits( (key->N));
 
@@ -100,6 +98,6 @@
 
 
 
-/* $Source$ */
-/* $Revision$ */
-/* $Date$ */
+/* ref:         $Format:%D$ */
+/* git commit:  $Format:%H$ */
+/* commit time: $Format:%ai$ */