From f88306f35c301ee09d7b31238c0ce0c954a86c4d Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Sun, 9 Nov 2003 19:52:25 +0000 Subject: cipher selection fixes git-svn-id: file:///home/lennart/svn/public/seppl/trunk@14 91a2fd9b-5dcb-0310-a70a-d71e310228e6 --- kernel/seppl.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'kernel') 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; } -- cgit