bcachefs: export bch2_chacha20

Needed for userspcae.

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
This commit is contained in:
Kent Overstreet
2025-04-13 05:23:40 -04:00
parent dd1b99f706
commit 2758c28aca
2 changed files with 4 additions and 2 deletions

View File

@@ -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];

View File

@@ -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 *);