forked from openzfs/zfs
-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update BLAKE3 for using the new impl handling
This commit changes the BLAKE3 implementation handling and also the calls to it from the ztest command. Tested-by: Rich Ercolani <[email protected]> Tested-by: Sebastian Gottschall <[email protected]> Reviewed-by: Brian Behlendorf <[email protected]> Signed-off-by: Tino Reichardt <[email protected]> Closes openzfs#13741
- Loading branch information
Showing
8 changed files
with
261 additions
and
508 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,11 +22,11 @@ | |
/* | ||
* Based on BLAKE3 v1.3.1, https://github.com/BLAKE3-team/BLAKE3 | ||
* Copyright (c) 2019-2020 Samuel Neves and Jack O'Connor | ||
* Copyright (c) 2021 Tino Reichardt <[email protected]> | ||
* Copyright (c) 2021-2022 Tino Reichardt <[email protected]> | ||
*/ | ||
|
||
#ifndef BLAKE3_H | ||
#define BLAKE3_H | ||
#ifndef _SYS_BLAKE3_H | ||
#define _SYS_BLAKE3_H | ||
|
||
#ifdef _KERNEL | ||
#include <sys/types.h> | ||
|
@@ -97,26 +97,8 @@ extern void **blake3_per_cpu_ctx; | |
extern void blake3_per_cpu_ctx_init(void); | ||
extern void blake3_per_cpu_ctx_fini(void); | ||
|
||
/* get count of supported implementations */ | ||
extern uint32_t blake3_impl_getcnt(void); | ||
|
||
/* get id of selected implementation */ | ||
extern uint32_t blake3_impl_getid(void); | ||
|
||
/* get name of selected implementation */ | ||
extern const char *blake3_impl_getname(void); | ||
|
||
/* setup id as fastest implementation */ | ||
extern void blake3_impl_set_fastest(uint32_t id); | ||
|
||
/* set implementation by id */ | ||
extern void blake3_impl_setid(uint32_t id); | ||
|
||
/* set implementation by name */ | ||
extern int blake3_impl_setname(const char *name); | ||
|
||
#ifdef __cplusplus | ||
} | ||
#endif | ||
|
||
#endif /* BLAKE3_H */ | ||
#endif /* _SYS_BLAKE3_H */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.