Mercurial > dropbear
comparison libtomcrypt/src/mac/f9/f9_done.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 f9_done.c | 12 @file f9_done.c |
60 /* extract tag */ | 58 /* extract tag */ |
61 for (x = 0; x < f9->blocksize && (unsigned long)x < *outlen; x++) { | 59 for (x = 0; x < f9->blocksize && (unsigned long)x < *outlen; x++) { |
62 out[x] = f9->ACC[x]; | 60 out[x] = f9->ACC[x]; |
63 } | 61 } |
64 *outlen = x; | 62 *outlen = x; |
65 | 63 |
66 #ifdef LTC_CLEAN_STACK | 64 #ifdef LTC_CLEAN_STACK |
67 zeromem(f9, sizeof(*f9)); | 65 zeromem(f9, sizeof(*f9)); |
68 #endif | 66 #endif |
69 return CRYPT_OK; | 67 return CRYPT_OK; |
70 } | 68 } |
71 | 69 |
72 #endif | 70 #endif |
73 | 71 |
74 /* $Source$ */ | 72 /* ref: $Format:%D$ */ |
75 /* $Revision$ */ | 73 /* git commit: $Format:%H$ */ |
76 /* $Date$ */ | 74 /* commit time: $Format:%ai$ */ |
77 | 75 |