Skip to content

Commit

Permalink
slhdsa: fix some ClangTidy warnings.
Browse files Browse the repository at this point in the history
Change-Id: I9dca8533a59e214707862d6ece233a4332ced4d3
Reviewed-on: https://boringssl-review.googlesource.com/c/boringssl/+/71328
Commit-Queue: Adam Langley <[email protected]>
Auto-Submit: Adam Langley <[email protected]>
Reviewed-by: David Benjamin <[email protected]>
Commit-Queue: David Benjamin <[email protected]>
  • Loading branch information
Adam Langley authored and Boringssl LUCI CQ committed Sep 16, 2024
1 parent 67ceb11 commit 2958490
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
5 changes: 3 additions & 2 deletions crypto/slhdsa/slhdsa.c
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,11 @@ void SLHDSA_SHA2_128S_generate_key_from_seed(

void SLHDSA_SHA2_128S_generate_key(
uint8_t out_public_key[SLHDSA_SHA2_128S_PUBLIC_KEY_BYTES],
uint8_t out_secret_key[SLHDSA_SHA2_128S_PRIVATE_KEY_BYTES]) {
uint8_t out_private_key[SLHDSA_SHA2_128S_PRIVATE_KEY_BYTES]) {
uint8_t seed[3 * SLHDSA_SHA2_128S_N];
RAND_bytes(seed, 3 * SLHDSA_SHA2_128S_N);
SLHDSA_SHA2_128S_generate_key_from_seed(out_public_key, out_secret_key, seed);
SLHDSA_SHA2_128S_generate_key_from_seed(out_public_key, out_private_key,
seed);
}

OPENSSL_EXPORT void SLHDSA_SHA2_128S_public_from_private(
Expand Down
1 change: 0 additions & 1 deletion crypto/slhdsa/slhdsa_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
#include <vector>

#include <gtest/gtest.h>
#include <openssl/bytestring.h>
#include <openssl/slhdsa.h>

#include "../test/file_test.h"
Expand Down

0 comments on commit 2958490

Please sign in to comment.