Skip to content

Commit

Permalink
use std::span<> for Botan::OS2ECP()
Browse files Browse the repository at this point in the history
  • Loading branch information
reneme committed Apr 9, 2024
1 parent ecf3703 commit 7cf8919
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/lib/pubkey/ec_group/ec_point.h
Original file line number Diff line number Diff line change
Expand Up @@ -392,8 +392,7 @@ EC_Point BOTAN_PUBLIC_API(2, 0) OS2ECP(const uint8_t data[], size_t data_len, co
std::pair<BigInt, BigInt> BOTAN_UNSTABLE_API
OS2ECP(const uint8_t data[], size_t data_len, const BigInt& curve_p, const BigInt& curve_a, const BigInt& curve_b);

template <typename Alloc>
EC_Point OS2ECP(const std::vector<uint8_t, Alloc>& data, const CurveGFp& curve) {
inline EC_Point OS2ECP(std::span<const uint8_t> data, const CurveGFp& curve) {
return OS2ECP(data.data(), data.size(), curve);
}

Expand Down

0 comments on commit 7cf8919

Please sign in to comment.