mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-02-22 15:04:44 +01:00
doc: Use clang-tidy comments in crypto_tests
Also, fix argument name for FastRandomContext.
This commit is contained in:
parent
fe03f7a37f
commit
fae13c3989
2 changed files with 5 additions and 5 deletions
|
@ -574,10 +574,10 @@ BOOST_AUTO_TEST_CASE(hkdf_hmac_sha256_l32_tests)
|
||||||
{
|
{
|
||||||
// Use rfc5869 test vectors but truncated to 32 bytes (our implementation only support length 32)
|
// Use rfc5869 test vectors but truncated to 32 bytes (our implementation only support length 32)
|
||||||
TestHKDF_SHA256_32(
|
TestHKDF_SHA256_32(
|
||||||
/* IKM */ "0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b",
|
/*ikm_hex=*/"0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b",
|
||||||
/* salt */ "000102030405060708090a0b0c",
|
/*salt_hex=*/"000102030405060708090a0b0c",
|
||||||
/* info */ "f0f1f2f3f4f5f6f7f8f9",
|
/*info_hex=*/"f0f1f2f3f4f5f6f7f8f9",
|
||||||
/* expected OKM */ "3cb25f25faacd57a90434f64d0362f2a2d2d0a90cf1a5a4c5db02d56ecc4c5bf");
|
/*okm_check_hex=*/"3cb25f25faacd57a90434f64d0362f2a2d2d0a90cf1a5a4c5db02d56ecc4c5bf");
|
||||||
TestHKDF_SHA256_32(
|
TestHKDF_SHA256_32(
|
||||||
"000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f202122232425262728292a2b2c2d2e2f303132333435363738393a3b3c3d3e3f404142434445464748494a4b4c4d4e4f",
|
"000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f202122232425262728292a2b2c2d2e2f303132333435363738393a3b3c3d3e3f404142434445464748494a4b4c4d4e4f",
|
||||||
"606162636465666768696a6b6c6d6e6f707172737475767778797a7b7c7d7e7f808182838485868788898a8b8c8d8e8f909192939495969798999a9b9c9d9e9fa0a1a2a3a4a5a6a7a8a9aaabacadaeaf",
|
"606162636465666768696a6b6c6d6e6f707172737475767778797a7b7c7d7e7f808182838485868788898a8b8c8d8e8f909192939495969798999a9b9c9d9e9fa0a1a2a3a4a5a6a7a8a9aaabacadaeaf",
|
||||||
|
|
|
@ -56,7 +56,7 @@ void Seed(FastRandomContext& ctx);
|
||||||
static inline void SeedInsecureRand(SeedRand seed = SeedRand::SEED)
|
static inline void SeedInsecureRand(SeedRand seed = SeedRand::SEED)
|
||||||
{
|
{
|
||||||
if (seed == SeedRand::ZEROS) {
|
if (seed == SeedRand::ZEROS) {
|
||||||
g_insecure_rand_ctx = FastRandomContext(/* deterministic */ true);
|
g_insecure_rand_ctx = FastRandomContext(/*fDeterministic=*/true);
|
||||||
} else {
|
} else {
|
||||||
Seed(g_insecure_rand_ctx);
|
Seed(g_insecure_rand_ctx);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue