#include <cstdint>
#include <gtest/gtest.h>
#include <memory>
#include <sstream>
#include <string>
#include "cryptonote_basic/cryptonote_basic_impl.h"
Go to the source code of this file.
|
| | TEST (Crypto, Ostream) |
| | TEST (Crypto, null_keys) |
| | TEST (Crypto, verify_32) |
◆ TEST() [1/3]
| TEST |
( |
Crypto | , |
|
|
null_keys | ) |
Definition at line 81 of file crypto.cpp.
82{
84 memset(zero, 0, 32);
87}
#define ASSERT_EQ(val1, val2)
const crypto::public_key null_pkey
const crypto::secret_key null_skey
◆ TEST() [2/3]
| TEST |
( |
Crypto | , |
|
|
Ostream | ) |
Definition at line 70 of file crypto.cpp.
71{
77 EXPECT_TRUE(is_formatted<crypto::key_derivation>());
79}
#define EXPECT_TRUE(condition)
◆ TEST() [3/3]
| TEST |
( |
Crypto | , |
|
|
verify_32 | ) |
Definition at line 89 of file crypto.cpp.
90{
91
92 unsigned char k0[32] = {0}, k1[32] = {0};
93 for (unsigned int i0 = 0; i0 < 256; ++i0)
94 {
95 k0[0] = i0;
96 for (unsigned int i1 = 0; i1 < 256; ++i1)
97 {
98 k1[0] = i1;
100 }
101 }
102}
int crypto_verify_32(const unsigned char *, const unsigned char *)