summaryrefslogtreecommitdiffstats
path: root/kernel/seppl.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/seppl.c')
-rw-r--r--kernel/seppl.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/kernel/seppl.c b/kernel/seppl.c
index de59eb1..6b23ca3 100644
--- a/kernel/seppl.c
+++ b/kernel/seppl.c
@@ -1,4 +1,4 @@
-/* $Id: newmail.c 31 2003-10-22 22:59:07Z lennart $ */
+/* $Id$ */
/***
This file is part of seppl
@@ -55,8 +55,8 @@ struct cipher_info {
#define CIPHER_DICT_MAX 2
static const struct cipher_info cipher_dict[CIPHER_DICT_MAX] = {
- { "aes-cbc", 128 },
- { "aes-cbc", 192 }
+ { "aes", 128 },
+ { "aes", 192 }
};
const struct cipher_info *seppl_find_cipher(u8 id) {
@@ -172,7 +172,7 @@ int seppl_add_key(u8 algorithm, const char *name, const u8 *key_data) {
atomic_set(&key->usage, 0);
spin_lock_init(&key->iv_spinlock);
- if (!(key->tfm = crypto_alloc_tfm("aes", CRYPTO_TFM_MODE_CBC))) {
+ if (!(key->tfm = crypto_alloc_tfm(cinfo->name, CRYPTO_TFM_MODE_CBC))) {
printk(KERN_ERR "SEPPL: Failed to load cipher.\n");
goto cleanup;
}