summaryrefslogtreecommitdiff
path: root/crypto.h
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@gmail.com>2016-12-11 14:45:48 -0900
committerKent Overstreet <kent.overstreet@gmail.com>2016-12-11 14:58:27 -0900
commit7f4191a202ea4558ca2d5eb8a47daea33c9999c7 (patch)
tree137f957291da895f78b43a8903db6f744d6e202c /crypto.h
parent4e158e155327d09868453ae9759a58284245175a (diff)
add support for maximum journal entry size
also rip out prototype crypto support code - real code is in the dev branch, with the new superblock format
Diffstat (limited to 'crypto.h')
-rw-r--r--crypto.h24
1 files changed, 0 insertions, 24 deletions
diff --git a/crypto.h b/crypto.h
deleted file mode 100644
index f4f7ff8e..00000000
--- a/crypto.h
+++ /dev/null
@@ -1,24 +0,0 @@
-#ifndef _CRYPTO_H
-#define _CRYPTO_H
-
-#include "util.h"
-
-struct bcache_key {
- u64 key[4];
-};
-
-struct bcache_disk_key {
- u64 header;
- u64 key[4];
-};
-
-static const char bch_key_header[8] = BCACHE_MASTER_KEY_HEADER;
-static const struct nonce bch_master_key_nonce = BCACHE_MASTER_KEY_NONCE;
-
-char *read_passphrase(const char *);
-void derive_passphrase(struct bcache_key *, const char *);
-void disk_key_encrypt(struct cache_sb *sb, struct bcache_disk_key *,
- struct bcache_key *);
-void disk_key_init(struct bcache_disk_key *);
-
-#endif /* _CRYPTO_H */