From f6ebbcf62a7801a029e0b94c8e436b36720d27bd Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Mon, 5 Jan 2015 15:22:36 +0200 Subject: [PATCH] AES-SIV: Make aes_s2v() static This function is not used outside aes-siv.c. In addition, include the aes_siv.h header to make sure that functions get declared consistently. Signed-off-by: Jouni Malinen --- src/crypto/aes-siv.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/crypto/aes-siv.c b/src/crypto/aes-siv.c index ff4b823fe..0a82ddcfc 100644 --- a/src/crypto/aes-siv.c +++ b/src/crypto/aes-siv.c @@ -11,6 +11,7 @@ #include "common.h" #include "aes.h" #include "aes_wrap.h" +#include "aes_siv.h" static const u8 zero[AES_BLOCK_SIZE]; @@ -60,8 +61,8 @@ static void pad_block(u8 *pad, const u8 *addr, size_t len) } -int aes_s2v(const u8 *key, size_t num_elem, const u8 *addr[], - size_t *len, u8 *mac) +static int aes_s2v(const u8 *key, size_t num_elem, const u8 *addr[], + size_t *len, u8 *mac) { u8 tmp[AES_BLOCK_SIZE], tmp2[AES_BLOCK_SIZE]; u8 *buf = NULL;