Skip to content

Commit

Permalink
Shot in the dark (Take 1)
Browse files Browse the repository at this point in the history
  • Loading branch information
reneme committed Nov 25, 2024
1 parent f0fdc2d commit 7ae5442
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/lib/pubkey/classic_mceliece/cmce_keys_internal.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -146,9 +146,7 @@ std::shared_ptr<Classic_McEliece_PublicKeyInternal> Classic_McEliece_PublicKeyIn
throw Decoding_Error("Cannot create public key from private key. Private key is invalid.");
}

auto pk = std::make_shared<Classic_McEliece_PublicKeyInternal>(sk.params(), std::move(pk_matrix));

return pk;
return std::make_shared<Classic_McEliece_PublicKeyInternal>(sk.params(), std::move(pk_matrix));
}

Classic_McEliece_KeyPair_Internal Classic_McEliece_KeyPair_Internal::generate(const Classic_McEliece_Parameters& params,
Expand Down

0 comments on commit 7ae5442

Please sign in to comment.