comparison libtomcrypt/src/mac/f9/f9_memory.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 f9_process.c 12 @file f9_process.c
15 f9 Support, Process a block through F9-MAC 13 f9 Support, Process a block through F9-MAC
16 */ 14 */
17 15
18 #ifdef LTC_F9_MODE 16 #ifdef LTC_F9_MODE
19 17
20 /** f9-MAC a block of memory 18 /** f9-MAC a block of memory
21 @param cipher Index of cipher to use 19 @param cipher Index of cipher to use
22 @param key [in] Secret key 20 @param key [in] Secret key
23 @param keylen Length of key in octets 21 @param keylen Length of key in octets
24 @param in [in] Message to MAC 22 @param in [in] Message to MAC
25 @param inlen Length of input in octets 23 @param inlen Length of input in octets
26 @param out [out] Destination for the MAC tag 24 @param out [out] Destination for the MAC tag
27 @param outlen [in/out] Output size and final tag size 25 @param outlen [in/out] Output size and final tag size
28 Return CRYPT_OK on success. 26 Return CRYPT_OK on success.
29 */ 27 */
30 int f9_memory(int cipher, 28 int f9_memory(int cipher,
31 const unsigned char *key, unsigned long keylen, 29 const unsigned char *key, unsigned long keylen,
32 const unsigned char *in, unsigned long inlen, 30 const unsigned char *in, unsigned long inlen,
33 unsigned char *out, unsigned long *outlen) 31 unsigned char *out, unsigned long *outlen)
34 { 32 {
35 f9_state *f9; 33 f9_state *f9;
64 return err; 62 return err;
65 } 63 }
66 64
67 #endif 65 #endif
68 66
69 /* $Source$ */ 67 /* ref: $Format:%D$ */
70 /* $Revision$ */ 68 /* git commit: $Format:%H$ */
71 /* $Date$ */ 69 /* commit time: $Format:%ai$ */