Skip to content

Update aead.c #1294

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 9 additions & 6 deletions crypto/aead.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,11 @@

#include "internal.h"

static int setkey_unaligned(struct crypto_aead *tfm, const u8 *key,
unsigned int keylen)
{
static int setkey_unaligned(
struct crypto_aead *tfm,
const u8 *key,
unsigned int keylen
) {
unsigned long alignmask = crypto_aead_alignmask(tfm);
int ret;
u8 *buffer, *alignbuffer;
Expand All @@ -41,9 +43,10 @@ static int setkey_unaligned(struct crypto_aead *tfm, const u8 *key,
return ret;
}

int crypto_aead_setkey(struct crypto_aead *tfm,
const u8 *key, unsigned int keylen)
{
int crypto_aead_setkey(
struct crypto_aead *tfm,
const u8 *key, unsigned int keylen
) {
unsigned long alignmask = crypto_aead_alignmask(tfm);
int err;

Expand Down