aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/pubkey/mce/code_based_key_gen.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/pubkey/mce/code_based_key_gen.cpp')
-rw-r--r--src/lib/pubkey/mce/code_based_key_gen.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/pubkey/mce/code_based_key_gen.cpp b/src/lib/pubkey/mce/code_based_key_gen.cpp
index 150f9b2ee..7adf85112 100644
--- a/src/lib/pubkey/mce/code_based_key_gen.cpp
+++ b/src/lib/pubkey/mce/code_based_key_gen.cpp
@@ -149,7 +149,7 @@ McEliece_PrivateKey generate_mceliece_key( RandomNumberGenerator & rng, u32bit e
//
//
std::vector<u32bit> H(bit_size_to_32bit_size(codimension) * code_length );
- u32bit* sk = &H[0];
+ u32bit* sk = H.data();
for (i = 0; i < code_length; ++i)
{
for (l = 0; l < t; ++l)