opencrypto: fix null esp crypt
Fixes: 3e9470482a1357eef90d007b27ec5d9725ae1111 Reviewed by: jhb Sponsored by: Nvidia networking MFC after: 1 week Differential revision: https://reviews.freebsd.org/D37113
This commit is contained in:
parent
b5a8107590
commit
fd6dd33dc0
@ -99,11 +99,15 @@ const struct auth_hash auth_hash_null = {
|
||||
static void
|
||||
null_crypt(void *key, const uint8_t *in, uint8_t *out)
|
||||
{
|
||||
if (in != out)
|
||||
memcpy(out, in, NULL_BLOCK_LEN);
|
||||
}
|
||||
|
||||
static void
|
||||
null_crypt_multi(void *key, const uint8_t *in, uint8_t *out, size_t len)
|
||||
{
|
||||
if (in != out)
|
||||
memcpy(out, in, len);
|
||||
}
|
||||
|
||||
static int
|
||||
@ -129,7 +133,7 @@ null_reinit(void *ctx, const uint8_t *buf, u_int len)
|
||||
static int
|
||||
null_update(void *ctx, const void *buf, u_int len)
|
||||
{
|
||||
return 0;
|
||||
return (0);
|
||||
}
|
||||
|
||||
static void
|
||||
|
Loading…
x
Reference in New Issue
Block a user