aboutsummaryrefslogtreecommitdiffstats
path: root/include/crypto
diff options
context:
space:
mode:
Diffstat (limited to 'include/crypto')
-rw-r--r--include/crypto/internal/hash.h41
1 files changed, 41 insertions, 0 deletions
diff --git a/include/crypto/internal/hash.h b/include/crypto/internal/hash.h
new file mode 100644
index 000000000000..93ac42280221
--- /dev/null
+++ b/include/crypto/internal/hash.h
@@ -0,0 +1,41 @@
1/*
2 * Hash algorithms.
3 *
4 * Copyright (c) 2008 Herbert Xu <herbert@gondor.apana.org.au>
5 *
6 * This program is free software; you can redistribute it and/or modify it
7 * under the terms of the GNU General Public License as published by the Free
8 * Software Foundation; either version 2 of the License, or (at your option)
9 * any later version.
10 *
11 */
12
13#ifndef _CRYPTO_INTERNAL_HASH_H
14#define _CRYPTO_INTERNAL_HASH_H
15
16#include <crypto/algapi.h>
17
18struct ahash_request;
19struct scatterlist;
20
21struct crypto_hash_walk {
22 char *data;
23
24 unsigned int offset;
25 unsigned int alignmask;
26
27 struct page *pg;
28 unsigned int entrylen;
29
30 unsigned int total;
31 struct scatterlist *sg;
32
33 unsigned int flags;
34};
35
36int crypto_hash_walk_done(struct crypto_hash_walk *walk, int err);
37int crypto_hash_walk_first(struct ahash_request *req,
38 struct crypto_hash_walk *walk);
39
40#endif /* _CRYPTO_INTERNAL_HASH_H */
41