summaryrefslogtreecommitdiff
path: root/crypto.h
blob: 534f9c20d648d7a301d7367dd0e84ca872219b22 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#ifndef _CRYPTO_H
#define _CRYPTO_H

#include "super-io.h"
#include "tools-util.h"

char *read_passphrase(const char *);
void derive_passphrase(struct bch_sb_field_crypt *,
		       struct bch_key *, const char *);
void add_bcache_key(struct bch_sb *, const char *);
void bch_sb_crypt_init(struct bch_sb *sb, struct bch_sb_field_crypt *,
		       const char *);

#endif /* _CRYPTO_H */