mirror of
https://git.wownero.com/wownero/wownero.git
synced 2024-08-15 01:03:23 +00:00
Merge pull request #4137
63e342b
crypto: move null_pkey/null_skey to the cpp file (moneromooo-monero)0496c7c
crypto: do not use boost::value_initialized to init null skey/pkey (moneromooo-monero)
This commit is contained in:
commit
5295e4eb82
3 changed files with 13 additions and 3 deletions
|
@ -73,3 +73,11 @@ TEST(Crypto, Ostream)
|
|||
EXPECT_TRUE(is_formatted<crypto::key_derivation>());
|
||||
EXPECT_TRUE(is_formatted<crypto::key_image>());
|
||||
}
|
||||
|
||||
TEST(Crypto, null_keys)
|
||||
{
|
||||
char zero[32];
|
||||
memset(zero, 0, 32);
|
||||
ASSERT_EQ(memcmp(crypto::null_skey.data, zero, 32), 0);
|
||||
ASSERT_EQ(memcmp(crypto::null_pkey.data, zero, 32), 0);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue