Cryptoconditions: ED25519 (RIPD-1214)

This commit is contained in:
Nik Bougalis
2016-07-11 22:24:24 -07:00
parent 8d0c93691d
commit 5711e7caa9
11 changed files with 448 additions and 0 deletions

View File

@@ -36,6 +36,11 @@ SecretKey::~SecretKey()
beast::secure_erase(buf_, sizeof(buf_));
}
SecretKey::SecretKey (std::array<std::uint8_t, 32> const& key)
{
std::memcpy(buf_, key.data(), key.size());
}
SecretKey::SecretKey (Slice const& slice)
{
if (slice.size() != sizeof(buf_))