[git commit] libbb/yescrypt: remove unused yescrypt_binary_t
Denys Vlasenko
vda.linux at googlemail.com
Sat Jul 5 23:35:23 UTC 2025
commit: https://git.busybox.net/busybox/commit/?id=3d9b965b4af3f497560cc17a371f0f45d0feeb87
branch: https://git.busybox.net/busybox/commit/?id=refs/heads/master
Signed-off-by: Denys Vlasenko <vda.linux at googlemail.com>
---
libbb/yescrypt/alg-yescrypt.h | 11 +----------
1 file changed, 1 insertion(+), 10 deletions(-)
diff --git a/libbb/yescrypt/alg-yescrypt.h b/libbb/yescrypt/alg-yescrypt.h
index fb791e899..bb30da8a8 100644
--- a/libbb/yescrypt/alg-yescrypt.h
+++ b/libbb/yescrypt/alg-yescrypt.h
@@ -112,15 +112,6 @@ typedef struct {
uint64_t NROM;
} yescrypt_params_t;
-/**
- * A 256-bit yescrypt hash, or a hash encryption key (which may itself have
- * been derived as a yescrypt hash of a human-specified key string).
- */
-typedef union {
- unsigned char uc[32];
- uint64_t u64[4];
-} yescrypt_binary_t;
-
/* How many chars base-64 encoded bytes require? */
#define BYTES2CHARS(bytes) ((((bytes) * 8) + 5) / 6)
/* The /etc/passwd-style hash is "<prefix>$<hash><NUL>" */
@@ -131,7 +122,7 @@ typedef union {
*/
#define PREFIX_LEN (3 + 8 * 6 + 1 + BYTES2CHARS(32))
-#define HASH_SIZE sizeof(yescrypt_binary_t) /* bytes */
+#define HASH_SIZE 32
#define HASH_LEN BYTES2CHARS(HASH_SIZE)
/**
More information about the busybox-cvs
mailing list