Mercurial > dropbear
comparison libtomcrypt/src/mac/poly1305/poly1305_file.c @ 1711:e9dba7abd939
Merge libtomcrypt v1.18.2
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Wed, 10 Jun 2020 23:16:13 +0800 |
parents | 6dba84798cd5 |
children |
comparison
equal
deleted
inserted
replaced
1710:1ff2a1034c52 | 1711:e9dba7abd939 |
---|---|
26 @return CRYPT_OK if successful, CRYPT_NOP if file support has been disabled | 26 @return CRYPT_OK if successful, CRYPT_NOP if file support has been disabled |
27 */ | 27 */ |
28 int poly1305_file(const char *fname, const unsigned char *key, unsigned long keylen, unsigned char *mac, unsigned long *maclen) | 28 int poly1305_file(const char *fname, const unsigned char *key, unsigned long keylen, unsigned char *mac, unsigned long *maclen) |
29 { | 29 { |
30 #ifdef LTC_NO_FILE | 30 #ifdef LTC_NO_FILE |
31 LTC_UNUSED_PARAM(fname); | |
32 LTC_UNUSED_PARAM(key); | |
33 LTC_UNUSED_PARAM(keylen); | |
34 LTC_UNUSED_PARAM(mac); | |
35 LTC_UNUSED_PARAM(maclen); | |
31 return CRYPT_NOP; | 36 return CRYPT_NOP; |
32 #else | 37 #else |
33 poly1305_state st; | 38 poly1305_state st; |
34 FILE *in; | 39 FILE *in; |
35 unsigned char *buf; | 40 unsigned char *buf; |