mirror of
https://github.com/torvalds/linux.git
synced 2026-05-28 17:13:52 +02:00
bcachefs: export bch2_chacha20
Needed for userspcae. Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
This commit is contained in:
parent
dd1b99f706
commit
2758c28aca
|
|
@ -106,8 +106,8 @@ static void bch2_chacha20_init(u32 state[CHACHA_STATE_WORDS],
|
|||
memzero_explicit(key_words, sizeof(key_words));
|
||||
}
|
||||
|
||||
static void bch2_chacha20(const struct bch_key *key, struct nonce nonce,
|
||||
void *data, size_t len)
|
||||
void bch2_chacha20(const struct bch_key *key, struct nonce nonce,
|
||||
void *data, size_t len)
|
||||
{
|
||||
u32 state[CHACHA_STATE_WORDS];
|
||||
|
||||
|
|
|
|||
|
|
@ -69,6 +69,8 @@ static inline void bch2_csum_err_msg(struct printbuf *out,
|
|||
bch2_csum_to_text(out, type, expected);
|
||||
}
|
||||
|
||||
void bch2_chacha20(const struct bch_key *, struct nonce, void *, size_t);
|
||||
|
||||
int bch2_request_key(struct bch_sb *, struct bch_key *);
|
||||
#ifndef __KERNEL__
|
||||
int bch2_revoke_key(struct bch_sb *);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user