aboutsummaryrefslogtreecommitdiffstats
path: root/crypto
diff options
context:
space:
mode:
Diffstat (limited to 'crypto')
-rw-r--r--crypto/xcbc.c14
1 files changed, 8 insertions, 6 deletions
diff --git a/crypto/xcbc.c b/crypto/xcbc.c
index f5929501bd48..9347eb6bcf69 100644
--- a/crypto/xcbc.c
+++ b/crypto/xcbc.c
@@ -28,9 +28,9 @@
28#include <linux/scatterlist.h> 28#include <linux/scatterlist.h>
29#include "internal.h" 29#include "internal.h"
30 30
31u_int32_t ks[12] = {0x01010101, 0x01010101, 0x01010101, 0x01010101, 31static u_int32_t ks[12] = {0x01010101, 0x01010101, 0x01010101, 0x01010101,
32 0x02020202, 0x02020202, 0x02020202, 0x02020202, 32 0x02020202, 0x02020202, 0x02020202, 0x02020202,
33 0x03030303, 0x03030303, 0x03030303, 0x03030303}; 33 0x03030303, 0x03030303, 0x03030303, 0x03030303};
34/* 34/*
35 * +------------------------ 35 * +------------------------
36 * | <parent tfm> 36 * | <parent tfm>
@@ -96,7 +96,7 @@ static int crypto_xcbc_digest_setkey(struct crypto_hash *parent,
96 return _crypto_xcbc_digest_setkey(parent, ctx); 96 return _crypto_xcbc_digest_setkey(parent, ctx);
97} 97}
98 98
99int crypto_xcbc_digest_init(struct hash_desc *pdesc) 99static int crypto_xcbc_digest_init(struct hash_desc *pdesc)
100{ 100{
101 struct crypto_xcbc_ctx *ctx = crypto_hash_ctx_aligned(pdesc->tfm); 101 struct crypto_xcbc_ctx *ctx = crypto_hash_ctx_aligned(pdesc->tfm);
102 int bs = crypto_hash_blocksize(pdesc->tfm); 102 int bs = crypto_hash_blocksize(pdesc->tfm);
@@ -108,7 +108,9 @@ int crypto_xcbc_digest_init(struct hash_desc *pdesc)
108 return 0; 108 return 0;
109} 109}
110 110
111int crypto_xcbc_digest_update(struct hash_desc *pdesc, struct scatterlist *sg, unsigned int nbytes) 111static int crypto_xcbc_digest_update(struct hash_desc *pdesc,
112 struct scatterlist *sg,
113 unsigned int nbytes)
112{ 114{
113 struct crypto_hash *parent = pdesc->tfm; 115 struct crypto_hash *parent = pdesc->tfm;
114 struct crypto_xcbc_ctx *ctx = crypto_hash_ctx_aligned(parent); 116 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 return 0; 183 return 0;
182} 184}
183 185
184int crypto_xcbc_digest_final(struct hash_desc *pdesc, u8 *out) 186static int crypto_xcbc_digest_final(struct hash_desc *pdesc, u8 *out)
185{ 187{
186 struct crypto_hash *parent = pdesc->tfm; 188 struct crypto_hash *parent = pdesc->tfm;
187 struct crypto_xcbc_ctx *ctx = crypto_hash_ctx_aligned(parent); 189 struct crypto_xcbc_ctx *ctx = crypto_hash_ctx_aligned(parent);