[git commit] libbb/yescrypt: remove unused yescrypt_region_t tmp

Denys Vlasenko vda.linux at googlemail.com
Sun Jul 6 01:03:38 UTC 2025


commit: https://git.busybox.net/busybox/commit/?id=9b6e03fd094d0947b04e25617d1d322bfadf7466
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-kdf.c | 7 -------
 1 file changed, 7 deletions(-)

diff --git a/libbb/yescrypt/alg-yescrypt-kdf.c b/libbb/yescrypt/alg-yescrypt-kdf.c
index 93938e69c..3ee9bfa43 100644
--- a/libbb/yescrypt/alg-yescrypt-kdf.c
+++ b/libbb/yescrypt/alg-yescrypt-kdf.c
@@ -806,7 +806,6 @@ static int yescrypt_kdf_body(
     uint64_t NROM,
     uint8_t *buf, size_t buflen)
 {
-	yescrypt_region_t tmp;
 	const salsa20_blk_t *VROM;
 	size_t B_size, V_size, XY_size, need;
 	uint8_t *B, *S;
@@ -884,7 +883,6 @@ static int yescrypt_kdf_body(
 		if (need < S_size)
 			goto out_EINVAL;
 	}
-	init_region(&tmp);
 	if (local->aligned_size < need) {
 		if (free_region(local))
 			return -1;
@@ -956,11 +954,6 @@ static int yescrypt_kdf_body(
 		explicit_bzero(dk, sizeof(dk));
 	}
 
-	if (free_region(&tmp)) {
-		explicit_bzero(buf, buflen); /* must preserve errno */
-		return -1;
-	}
-
 	/* Success! */
 	return 0;
 


More information about the busybox-cvs mailing list