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 <j@w1.fi>
This commit is contained in:
parent
dcf8fbc058
commit
f6ebbcf62a
1 changed files with 3 additions and 2 deletions
|
@ -11,6 +11,7 @@
|
||||||
#include "common.h"
|
#include "common.h"
|
||||||
#include "aes.h"
|
#include "aes.h"
|
||||||
#include "aes_wrap.h"
|
#include "aes_wrap.h"
|
||||||
|
#include "aes_siv.h"
|
||||||
|
|
||||||
|
|
||||||
static const u8 zero[AES_BLOCK_SIZE];
|
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[],
|
static int aes_s2v(const u8 *key, size_t num_elem, const u8 *addr[],
|
||||||
size_t *len, u8 *mac)
|
size_t *len, u8 *mac)
|
||||||
{
|
{
|
||||||
u8 tmp[AES_BLOCK_SIZE], tmp2[AES_BLOCK_SIZE];
|
u8 tmp[AES_BLOCK_SIZE], tmp2[AES_BLOCK_SIZE];
|
||||||
u8 *buf = NULL;
|
u8 *buf = NULL;
|
||||||
|
|
Loading…
Reference in a new issue