summaryrefslogtreecommitdiff
path: root/arctwo.c
diff options
context:
space:
mode:
authorNiels Möller <nisse@lysator.liu.se>2014-01-29 15:13:54 +0100
committerNiels Möller <nisse@lysator.liu.se>2014-01-29 15:13:54 +0100
commit587855374c50562acf598660e173e76c6e3195bb (patch)
tree2a8169192ca0c6df7cdbf230094f497680996a67 /arctwo.c
parentf508b1fe613f06c571bdc1997cd006f95874d4cb (diff)
downloadnettle-set_key-changes.tar.gz
Dropped length argument from nettle_set_key_func.set_key-changes
Diffstat (limited to 'arctwo.c')
-rw-r--r--arctwo.c25
1 files changed, 24 insertions, 1 deletions
diff --git a/arctwo.c b/arctwo.c
index f5753a8c..385194dc 100644
--- a/arctwo.c
+++ b/arctwo.c
@@ -8,7 +8,7 @@
* Copyright (C) 2004 Simon Josefsson
* Copyright (C) 2003 Nikos Mavroyanopoulos
* Copyright (C) 2004 Free Software Foundation, Inc.
- * Copyright (C) 2004 Niels Möller
+ * Copyright (C) 2004, 2014 Niels Möller
*
* The nettle library is free software; you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
@@ -228,3 +228,26 @@ arctwo_set_key_gutmann (struct arctwo_ctx *ctx,
{
arctwo_set_key_ekb (ctx, length, key, 0);
}
+
+void
+arctwo40_set_key (struct arctwo_ctx *ctx, const uint8_t *key)
+{
+ arctwo_set_key_ekb (ctx, 5, key, 40);
+}
+void
+arctwo64_set_key (struct arctwo_ctx *ctx, const uint8_t *key)
+{
+ arctwo_set_key_ekb (ctx, 8, key, 64);
+}
+
+void
+arctwo128_set_key (struct arctwo_ctx *ctx, const uint8_t *key)
+{
+ arctwo_set_key_ekb (ctx, 16, key, 128);
+}
+void
+arctwo128_set_key_gutmann (struct arctwo_ctx *ctx,
+ const uint8_t *key)
+{
+ arctwo_set_key_ekb (ctx, 16, key, 1024);
+}