aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/pubkey/ed25519/ed25519_fe.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/pubkey/ed25519/ed25519_fe.h')
-rw-r--r--src/lib/pubkey/ed25519/ed25519_fe.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/pubkey/ed25519/ed25519_fe.h b/src/lib/pubkey/ed25519/ed25519_fe.h
index af92af46a..bcdc36a5e 100644
--- a/src/lib/pubkey/ed25519/ed25519_fe.h
+++ b/src/lib/pubkey/ed25519/ed25519_fe.h
@@ -30,16 +30,16 @@ class FE_25519
FE_25519(int init = 0)
{
if(init != 0 && init != 1)
- { throw Invalid_Argument("Invalid FE_25519 initial value"); }
- memset(m_fe, 0, 10 * sizeof(int32_t));
+ throw Invalid_Argument("Invalid FE_25519 initial value");
+ clear_mem(m_fe, 10);
m_fe[0] = init;
}
FE_25519(std::initializer_list<int32_t> x)
{
if(x.size() != 10)
- { throw Invalid_Argument("Invalid FE_25519 initializer list"); }
- memcpy(m_fe, x.begin(), 10 * sizeof(int32_t));
+ throw Invalid_Argument("Invalid FE_25519 initializer list");
+ copy_mem(m_fe, x.begin(), 10);
}
FE_25519(int64_t h0, int64_t h1, int64_t h2, int64_t h3, int64_t h4,