comparison libtomcrypt/src/modes/cfb/cfb_decrypt.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
comparison
equal deleted inserted replaced
1470:8bba51a55704 1471:6dba84798cd5
3 * LibTomCrypt is a library that provides various cryptographic 3 * LibTomCrypt is a library that provides various cryptographic
4 * algorithms in a highly modular and flexible manner. 4 * algorithms in a highly modular and flexible manner.
5 * 5 *
6 * The library is free for all purposes without any express 6 * The library is free for all purposes without any express
7 * guarantee it works. 7 * guarantee it works.
8 *
9 * Tom St Denis, [email protected], http://libtom.org
10 */ 8 */
11 #include "tomcrypt.h" 9 #include "tomcrypt.h"
12 10
13 /** 11 /**
14 @file cfb_decrypt.c 12 @file cfb_decrypt.c
50 } 48 }
51 cfb->padlen = 0; 49 cfb->padlen = 0;
52 } 50 }
53 cfb->pad[cfb->padlen] = *ct; 51 cfb->pad[cfb->padlen] = *ct;
54 *pt = *ct ^ cfb->IV[cfb->padlen]; 52 *pt = *ct ^ cfb->IV[cfb->padlen];
55 ++pt; 53 ++pt;
56 ++ct; 54 ++ct;
57 ++(cfb->padlen); 55 ++(cfb->padlen);
58 } 56 }
59 return CRYPT_OK; 57 return CRYPT_OK;
60 } 58 }
61 59
62 #endif 60 #endif
63 61
64 62
65 /* $Source$ */ 63 /* ref: $Format:%D$ */
66 /* $Revision$ */ 64 /* git commit: $Format:%H$ */
67 /* $Date$ */ 65 /* commit time: $Format:%ai$ */