Mercurial > dropbear
comparison libtomcrypt/src/modes/cfb/cfb_decrypt.c @ 1511:5916af64acd4 fuzz
merge from main
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Sat, 17 Feb 2018 19:29:51 +0800 |
parents | 6dba84798cd5 |
children |
comparison
equal
deleted
inserted
replaced
1457:32f990cc96b1 | 1511:5916af64acd4 |
---|---|
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$ */ |