comparison libtomcrypt/src/encauth/ocb/ocb_encrypt_authenticate_memory.c @ 1478:3a933956437e coverity

update coverity
author Matt Johnston <matt@ucc.asn.au>
date Fri, 09 Feb 2018 23:49:22 +0800
parents 6dba84798cd5
children
comparison
equal deleted inserted replaced
1439:8d24733026c5 1478:3a933956437e
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 9
12 /** 10 /**
13 @file ocb_encrypt_authenticate_memory.c 11 @file ocb_encrypt_authenticate_memory.c
14 OCB implementation, encrypt block of memory, by Tom St Denis 12 OCB implementation, encrypt block of memory, by Tom St Denis
15 */ 13 */
16 #include "tomcrypt.h" 14 #include "tomcrypt.h"
17 15
30 @param taglen [in/out] The max size and resulting size of the authentication tag 28 @param taglen [in/out] The max size and resulting size of the authentication tag
31 @return CRYPT_OK if successful 29 @return CRYPT_OK if successful
32 */ 30 */
33 int ocb_encrypt_authenticate_memory(int cipher, 31 int ocb_encrypt_authenticate_memory(int cipher,
34 const unsigned char *key, unsigned long keylen, 32 const unsigned char *key, unsigned long keylen,
35 const unsigned char *nonce, 33 const unsigned char *nonce,
36 const unsigned char *pt, unsigned long ptlen, 34 const unsigned char *pt, unsigned long ptlen,
37 unsigned char *ct, 35 unsigned char *ct,
38 unsigned char *tag, unsigned long *taglen) 36 unsigned char *tag, unsigned long *taglen)
39 { 37 {
40 int err; 38 int err;
77 return err; 75 return err;
78 } 76 }
79 77
80 #endif 78 #endif
81 79
82 /* $Source$ */ 80 /* ref: $Format:%D$ */
83 /* $Revision$ */ 81 /* git commit: $Format:%H$ */
84 /* $Date$ */ 82 /* commit time: $Format:%ai$ */