summaryrefslogtreecommitdiffstats
path: root/ncr.c
diff options
context:
space:
mode:
authorMiloslav Trmač <mitr@redhat.com>2010-07-24 01:23:49 +0200
committerMiloslav Trmač <mitr@redhat.com>2010-07-24 01:23:49 +0200
commit9ea47f5b396bb1e767d4a231bc7166efd3dffd3e (patch)
tree4af8aeed00c3cb2aa47c67367abc58d2bb33d352 /ncr.c
parent7188e485061fc6bbad9075333a289941f38a131e (diff)
downloadcryptodev-linux-9ea47f5b396bb1e767d4a231bc7166efd3dffd3e.tar.gz
cryptodev-linux-9ea47f5b396bb1e767d4a231bc7166efd3dffd3e.tar.xz
cryptodev-linux-9ea47f5b396bb1e767d4a231bc7166efd3dffd3e.zip
Use algo_properties_st in ncr_algorithm_to_key_type
An intermediary patch, the function will be removed in next commit.
Diffstat (limited to 'ncr.c')
-rw-r--r--ncr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ncr.c b/ncr.c
index 5740580..f68a1d8 100644
--- a/ncr.c
+++ b/ncr.c
@@ -177,9 +177,9 @@ ncr_ioctl(struct ncr_lists* lst, struct file *filp,
/* Returns NCR_KEY_TYPE_SECRET if a secret key algorithm or MAC is given,
* and NCR_KEY_TYPE_PUBLIC if a public key algorithm is given.
*/
-ncr_key_type_t ncr_algorithm_to_key_type(ncr_algorithm_t algo)
+ncr_key_type_t ncr_algorithm_to_key_type(const struct algo_properties_st *algo)
{
- switch(algo) {
+ switch(algo->algo) {
case NCR_ALG_3DES_CBC:
case NCR_ALG_AES_CBC:
case NCR_ALG_CAMELLIA_CBC: