aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/selftest/curve25519.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/selftest/curve25519.h')
-rw-r--r--src/selftest/curve25519.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/selftest/curve25519.h b/src/selftest/curve25519.h
index 0ed3dae..17ff57a 100644
--- a/src/selftest/curve25519.h
+++ b/src/selftest/curve25519.h
@@ -7,7 +7,7 @@ struct curve25519_test_vector {
u8 result[CURVE25519_POINT_SIZE];
bool valid;
};
-static const struct curve25519_test_vector curve25519_test_vectors[] = {
+static const struct curve25519_test_vector curve25519_test_vectors[] __initconst = {
{
.private = { 0x77, 0x07, 0x6d, 0x0a, 0x73, 0x18, 0xa5, 0x7d, 0x3c, 0x16, 0xc1, 0x72, 0x51, 0xb2, 0x66, 0x45, 0xdf, 0x4c, 0x2f, 0x87, 0xeb, 0xc0, 0x99, 0x2a, 0xb1, 0x77, 0xfb, 0xa5, 0x1d, 0xb9, 0x2c, 0x2a },
.public = { 0xde, 0x9e, 0xdb, 0x7d, 0x7b, 0x7d, 0xc1, 0xb4, 0xd3, 0x5b, 0x61, 0xc2, 0xec, 0xe4, 0x35, 0x37, 0x3f, 0x83, 0x43, 0xc8, 0x5b, 0x78, 0x67, 0x4d, 0xad, 0xfc, 0x7e, 0x14, 0x6f, 0x88, 0x2b, 0x4f },
@@ -51,7 +51,7 @@ static const struct curve25519_test_vector curve25519_test_vectors[] = {
.valid = false
}
};
-bool curve25519_selftest(void)
+bool __init curve25519_selftest(void)
{
bool success = true, ret;
size_t i = 0;