diff options
author | Miloslav Trmač <mitr@redhat.com> | 2010-08-25 06:11:22 +0200 |
---|---|---|
committer | Miloslav Trmač <mitr@redhat.com> | 2010-08-25 06:11:22 +0200 |
commit | 6bb729e4da0d4f280845f14196c2e9cef0cd1480 (patch) | |
tree | bf2210b82f4c110a581190097716a43d20e109a9 | |
parent | 1ba66cab0563708d551e3462c249f1da21695882 (diff) | |
download | cryptodev-linux-6bb729e4da0d4f280845f14196c2e9cef0cd1480.tar.gz cryptodev-linux-6bb729e4da0d4f280845f14196c2e9cef0cd1480.tar.xz cryptodev-linux-6bb729e4da0d4f280845f14196c2e9cef0cd1480.zip |
Make some objects static
-rw-r--r-- | ncr-key-wrap.c | 2 | ||||
-rw-r--r-- | ncr-key.c | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/ncr-key-wrap.c b/ncr-key-wrap.c index 0f9f0fe..7a449ed 100644 --- a/ncr-key-wrap.c +++ b/ncr-key-wrap.c @@ -484,7 +484,7 @@ cleanup: /* will check if the kek is of equal or higher security level than * wkey. To prevent encrypting a 256 bit key with an 128 bit one. */ -int check_key_level(struct key_item_st* kek, struct key_item_st* wkey) +static int check_key_level(struct key_item_st* kek, struct key_item_st* wkey) { int kek_level, wkey_level; @@ -504,7 +504,7 @@ fail: * Keysizes (2009-2010)". It maps the strength of public key algorithms to * symmetric ones. Should be kept up to date. */ -struct { +static const struct { unsigned int bits; /* sec level */ unsigned int rsa_bits; unsigned int dlog_bits; @@ -519,7 +519,7 @@ struct { {0,0,0} }; -unsigned int rsa_to_bits(unsigned int rsa_bits) +static unsigned int rsa_to_bits(unsigned int rsa_bits) { int i = 1; @@ -538,7 +538,7 @@ int i = 1; return ecrypt_vals[i-1].bits; } -unsigned int dlog_to_bits(unsigned int dlog_bits) +static unsigned int dlog_to_bits(unsigned int dlog_bits) { int i = 1; |