4 #include "tools-util.h"
7 struct bch_sb_field_crypt;
9 struct bch_encrypted_key;
11 char *read_passphrase(const char *);
12 char *read_passphrase_twice(const char *);
14 struct bch_key derive_passphrase(struct bch_sb_field_crypt *, const char *);
15 bool bch2_sb_is_encrypted(struct bch_sb *);
16 void bch2_passphrase_check(struct bch_sb *, const char *,
17 struct bch_key *, struct bch_encrypted_key *);
18 void bch2_add_key(struct bch_sb *, const char *);
19 void bch_sb_crypt_init(struct bch_sb *sb, struct bch_sb_field_crypt *,
22 #endif /* _CRYPTO_H */