]> git.sesse.net Git - bcachefs-tools-debian/blob - crypto.h
More cmd_migrate improvements
[bcachefs-tools-debian] / crypto.h
1 #ifndef _CRYPTO_H
2 #define _CRYPTO_H
3
4 #include "tools-util.h"
5
6 struct bch_sb;
7 struct bch_sb_field_crypt;
8 struct bch_key;
9
10 char *read_passphrase(const char *);
11 void derive_passphrase(struct bch_sb_field_crypt *,
12                        struct bch_key *, const char *);
13 void bch2_add_key(struct bch_sb *, const char *);
14 void bch_sb_crypt_init(struct bch_sb *sb, struct bch_sb_field_crypt *,
15                        const char *);
16
17 #endif /* _CRYPTO_H */