Commit 5b37538a authored by Adrian Bunk's avatar Adrian Bunk Committed by David S. Miller

[CRYPTO] xcbc: Make needlessly global code static

On Tue, Nov 14, 2006 at 01:41:25AM -0800, Andrew Morton wrote:
>...
> Changes since 2.6.19-rc5-mm2:
>...
>  git-cryptodev.patch
>...
>  git trees
>...

This patch makes some needlessly global code static.
Signed-off-by: default avatarAdrian Bunk <bunk@stusta.de>
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent 7cf4c1a5
...@@ -28,7 +28,7 @@ ...@@ -28,7 +28,7 @@
#include <linux/scatterlist.h> #include <linux/scatterlist.h>
#include "internal.h" #include "internal.h"
u_int32_t ks[12] = {0x01010101, 0x01010101, 0x01010101, 0x01010101, static u_int32_t ks[12] = {0x01010101, 0x01010101, 0x01010101, 0x01010101,
0x02020202, 0x02020202, 0x02020202, 0x02020202, 0x02020202, 0x02020202, 0x02020202, 0x02020202,
0x03030303, 0x03030303, 0x03030303, 0x03030303}; 0x03030303, 0x03030303, 0x03030303, 0x03030303};
/* /*
...@@ -96,7 +96,7 @@ static int crypto_xcbc_digest_setkey(struct crypto_hash *parent, ...@@ -96,7 +96,7 @@ static int crypto_xcbc_digest_setkey(struct crypto_hash *parent,
return _crypto_xcbc_digest_setkey(parent, ctx); return _crypto_xcbc_digest_setkey(parent, ctx);
} }
int crypto_xcbc_digest_init(struct hash_desc *pdesc) static int crypto_xcbc_digest_init(struct hash_desc *pdesc)
{ {
struct crypto_xcbc_ctx *ctx = crypto_hash_ctx_aligned(pdesc->tfm); struct crypto_xcbc_ctx *ctx = crypto_hash_ctx_aligned(pdesc->tfm);
int bs = crypto_hash_blocksize(pdesc->tfm); int bs = crypto_hash_blocksize(pdesc->tfm);
...@@ -108,7 +108,9 @@ int crypto_xcbc_digest_init(struct hash_desc *pdesc) ...@@ -108,7 +108,9 @@ int crypto_xcbc_digest_init(struct hash_desc *pdesc)
return 0; return 0;
} }
int crypto_xcbc_digest_update(struct hash_desc *pdesc, struct scatterlist *sg, unsigned int nbytes) static int crypto_xcbc_digest_update(struct hash_desc *pdesc,
struct scatterlist *sg,
unsigned int nbytes)
{ {
struct crypto_hash *parent = pdesc->tfm; struct crypto_hash *parent = pdesc->tfm;
struct crypto_xcbc_ctx *ctx = crypto_hash_ctx_aligned(parent); struct crypto_xcbc_ctx *ctx = crypto_hash_ctx_aligned(parent);
...@@ -181,7 +183,7 @@ int crypto_xcbc_digest_update(struct hash_desc *pdesc, struct scatterlist *sg, u ...@@ -181,7 +183,7 @@ int crypto_xcbc_digest_update(struct hash_desc *pdesc, struct scatterlist *sg, u
return 0; return 0;
} }
int crypto_xcbc_digest_final(struct hash_desc *pdesc, u8 *out) static int crypto_xcbc_digest_final(struct hash_desc *pdesc, u8 *out)
{ {
struct crypto_hash *parent = pdesc->tfm; struct crypto_hash *parent = pdesc->tfm;
struct crypto_xcbc_ctx *ctx = crypto_hash_ctx_aligned(parent); struct crypto_xcbc_ctx *ctx = crypto_hash_ctx_aligned(parent);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment