summaryrefslogtreecommitdiff
path: root/blowfish.c
diff options
context:
space:
mode:
authorNiels Möller <nisse@lysator.liu.se>2014-02-06 15:03:47 +0100
committerNiels Möller <nisse@lysator.liu.se>2014-02-06 15:03:47 +0100
commita66c79ac1b1905a111b725d6bc4c2f857060281a (patch)
treeb1f40a9566aab653dc70ecc9b471269f59f0b03d /blowfish.c
parent62e582899298d127a97ce5d5fd3fdb31d2974263 (diff)
downloadnettle-a66c79ac1b1905a111b725d6bc4c2f857060281a.tar.gz
New function blowfish128_set_key.
Diffstat (limited to 'blowfish.c')
-rw-r--r--blowfish.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/blowfish.c b/blowfish.c
index 0ffa332d..8c8485ad 100644
--- a/blowfish.c
+++ b/blowfish.c
@@ -9,6 +9,7 @@
/* nettle, low-level cryptographics library
*
+ * Copyright (C) 2014 Niels Möller
* Copyright (C) 2010 Simon Josefsson
* Copyright (C) 1998, 2001, 2002, 2003 Free Software Foundation, Inc.
*
@@ -412,3 +413,9 @@ blowfish_set_key (struct blowfish_ctx *ctx,
return 1;
}
+
+int
+blowfish128_set_key(struct blowfish_ctx *ctx, const uint8_t *key)
+{
+ return blowfish_set_key (ctx, BLOWFISH128_KEY_SIZE, key);
+}