xref: /kernel/linux/linux-6.6/include/crypto/internal/blake2s.h
  • Home
  • History
  • Annotate Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
  • only in /kernel/linux/linux-6.6/include/crypto/internal/
162306a36Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 OR MIT */
262306a36Sopenharmony_ci/*
362306a36Sopenharmony_ci * Helper functions for BLAKE2s implementations.
462306a36Sopenharmony_ci * Keep this in sync with the corresponding BLAKE2b header.
562306a36Sopenharmony_ci */
662306a36Sopenharmony_ci
762306a36Sopenharmony_ci#ifndef _CRYPTO_INTERNAL_BLAKE2S_H
862306a36Sopenharmony_ci#define _CRYPTO_INTERNAL_BLAKE2S_H
962306a36Sopenharmony_ci
1062306a36Sopenharmony_ci#include <crypto/blake2s.h>
1162306a36Sopenharmony_ci#include <linux/string.h>
1262306a36Sopenharmony_ci
1362306a36Sopenharmony_civoid blake2s_compress_generic(struct blake2s_state *state, const u8 *block,
1462306a36Sopenharmony_ci			      size_t nblocks, const u32 inc);
1562306a36Sopenharmony_ci
1662306a36Sopenharmony_civoid blake2s_compress(struct blake2s_state *state, const u8 *block,
1762306a36Sopenharmony_ci		      size_t nblocks, const u32 inc);
1862306a36Sopenharmony_ci
1962306a36Sopenharmony_cibool blake2s_selftest(void);
2062306a36Sopenharmony_ci
2162306a36Sopenharmony_ci#endif /* _CRYPTO_INTERNAL_BLAKE2S_H */
22

Indexes created Thu Nov 07 10:32:03 CST 2024