diff options
Diffstat (limited to 'src/lib/pubkey/curve25519/curve25519.cpp')
-rw-r--r-- | src/lib/pubkey/curve25519/curve25519.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/lib/pubkey/curve25519/curve25519.cpp b/src/lib/pubkey/curve25519/curve25519.cpp index 3414bfbda..c43f526a8 100644 --- a/src/lib/pubkey/curve25519/curve25519.cpp +++ b/src/lib/pubkey/curve25519/curve25519.cpp @@ -39,10 +39,7 @@ secure_vector<uint8_t> curve25519(const secure_vector<uint8_t>& secret, AlgorithmIdentifier Curve25519_PublicKey::algorithm_identifier() const { - // AlgorithmIdentifier::USE_NULL_PARAM puts 0x05 0x00 in parameters - // We want nothing - std::vector<uint8_t> empty; - return AlgorithmIdentifier(get_oid(), empty); + return AlgorithmIdentifier(get_oid(), AlgorithmIdentifier::USE_EMPTY_PARAM); } bool Curve25519_PublicKey::check_key(RandomNumberGenerator&, bool) const |