diff options
author | Miloslav Trmač <mitr@redhat.com> | 2010-07-24 00:49:21 +0200 |
---|---|---|
committer | Miloslav Trmač <mitr@redhat.com> | 2010-07-24 00:49:21 +0200 |
commit | 8c144933491148943e57479df46b095acc0019b5 (patch) | |
tree | f1d3646fd836520d5320edde3f0077d58b23107a | |
parent | d3d66b196cda9b100f3e3e0e742e0c2a76f2751a (diff) | |
download | cryptodev-linux-8c144933491148943e57479df46b095acc0019b5.tar.gz cryptodev-linux-8c144933491148943e57479df46b095acc0019b5.tar.xz cryptodev-linux-8c144933491148943e57479df46b095acc0019b5.zip |
Make algo_properties_st public inside the module
-rw-r--r-- | ncr-sessions.c | 12 | ||||
-rw-r--r-- | ncr_int.h | 12 |
2 files changed, 13 insertions, 11 deletions
diff --git a/ncr-sessions.c b/ncr-sessions.c index 6856310..2f84488 100644 --- a/ncr-sessions.c +++ b/ncr-sessions.c @@ -112,17 +112,7 @@ struct session_item_st* ncr_session_new(struct list_sem_st* lst) return sess; } -static const struct algo_properties_st { - ncr_algorithm_t algo; - const char* kstr; - unsigned needs_iv:1; - unsigned hmac:1; - unsigned can_sign:1; - unsigned can_digest:1; - unsigned can_encrypt:1; - unsigned symmetric:1; - int digest_size; -} algo_properties[] = { +static const struct algo_properties_st algo_properties[] = { { .algo = NCR_ALG_NULL, .kstr = "ecb(cipher_null)", .needs_iv = 0, .symmetric=1, .can_encrypt=1 }, { .algo = NCR_ALG_3DES_CBC, .kstr = "cbc(des3_ede)", @@ -10,6 +10,18 @@ #define err() printk(KERN_DEBUG"ncr: %s: %s: %d\n", __FILE__, __func__, __LINE__) +struct algo_properties_st { + ncr_algorithm_t algo; + const char *kstr; + unsigned needs_iv:1; + unsigned hmac:1; + unsigned can_sign:1; + unsigned can_digest:1; + unsigned can_encrypt:1; + unsigned symmetric:1; + int digest_size; +}; + struct session_item_st { struct list_head list; |