Mercurial > dropbear
comparison libtomcrypt/src/encauth/ocb/s_ocb_done.c @ 1439:8d24733026c5 coverity
merge
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Sat, 24 Jun 2017 23:33:16 +0800 |
parents | f849a5ca2efc |
children | 6dba84798cd5 |
comparison
equal
deleted
inserted
replaced
1400:238a439670f5 | 1439:8d24733026c5 |
---|---|
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 * | 8 * |
9 * Tom St Denis, [email protected], http://libtomcrypt.com | 9 * Tom St Denis, [email protected], http://libtom.org |
10 */ | 10 */ |
11 | 11 |
12 /** | 12 /** |
13 @file s_ocb_done.c | 13 @file s_ocb_done.c |
14 OCB implementation, internal helper, by Tom St Denis | 14 OCB implementation, internal helper, by Tom St Denis |
15 */ | 15 */ |
16 #include "tomcrypt.h" | 16 #include "tomcrypt.h" |
17 | 17 |
18 #ifdef OCB_MODE | 18 #ifdef LTC_OCB_MODE |
19 | 19 |
20 /* Since the last block is encrypted in CTR mode the same code can | 20 /* Since the last block is encrypted in CTR mode the same code can |
21 * be used to finish a decrypt or encrypt stream. The only difference | 21 * be used to finish a decrypt or encrypt stream. The only difference |
22 * is we XOR the final ciphertext into the checksum so we have to xor it | 22 * is we XOR the final ciphertext into the checksum so we have to xor it |
23 * before we CTR [decrypt] or after [encrypt] | 23 * before we CTR [decrypt] or after [encrypt] |
141 } | 141 } |
142 | 142 |
143 #endif | 143 #endif |
144 | 144 |
145 | 145 |
146 /* $Source: /cvs/libtom/libtomcrypt/src/encauth/ocb/s_ocb_done.c,v $ */ | 146 /* $Source$ */ |
147 /* $Revision: 1.6 $ */ | 147 /* $Revision$ */ |
148 /* $Date: 2006/03/31 14:15:35 $ */ | 148 /* $Date$ */ |