diff options
author | Niels Möller <nisse@lysator.liu.se> | 2014-01-29 15:13:54 +0100 |
---|---|---|
committer | Niels Möller <nisse@lysator.liu.se> | 2014-01-29 15:13:54 +0100 |
commit | 587855374c50562acf598660e173e76c6e3195bb (patch) | |
tree | 2a8169192ca0c6df7cdbf230094f497680996a67 /twofish.c | |
parent | f508b1fe613f06c571bdc1997cd006f95874d4cb (diff) | |
download | nettle-set_key-changes.tar.gz |
Dropped length argument from nettle_set_key_func.set_key-changes
Diffstat (limited to 'twofish.c')
-rw-r--r-- | twofish.c | 18 |
1 files changed, 17 insertions, 1 deletions
@@ -10,7 +10,7 @@ * Copyright (C) 1999 J.H.M. Dassen (Ray) <jdassen@wi.LeidenUniv.nl> * * Integrated with the nettle library, - * Copyright (C) 2001 Niels Möller + * Copyright (C) 2001, 2014 Niels Möller */ /* nettle, low-level cryptographics library @@ -326,6 +326,22 @@ twofish_set_key(struct twofish_ctx *context, s[3] >> (i*8)); } +void +twofish128_set_key(struct twofish_ctx *context, const uint8_t *key) +{ + twofish_set_key (context, TWOFISH128_KEY_SIZE, key); +} +void +twofish192_set_key(struct twofish_ctx *context, const uint8_t *key) +{ + twofish_set_key (context, TWOFISH192_KEY_SIZE, key); +} +void +twofish256_set_key(struct twofish_ctx *context, const uint8_t *key) +{ + twofish_set_key (context, TWOFISH256_KEY_SIZE, key); +} + /* Encrypt blocks of 16 bytes of data with the twofish algorithm. * * Before this function can be used, twofish_set_key() must be used in order to |