From 7cf891925171a0f736e247600ed6400e790c3c12 Mon Sep 17 00:00:00 2001 From: Rene Meusel Date: Tue, 9 Apr 2024 15:49:46 +0200 Subject: [PATCH] use std::span<> for Botan::OS2ECP() --- src/lib/pubkey/ec_group/ec_point.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/lib/pubkey/ec_group/ec_point.h b/src/lib/pubkey/ec_group/ec_point.h index ad473b18a88..5bd2926dfcd 100644 --- a/src/lib/pubkey/ec_group/ec_point.h +++ b/src/lib/pubkey/ec_group/ec_point.h @@ -392,8 +392,7 @@ EC_Point BOTAN_PUBLIC_API(2, 0) OS2ECP(const uint8_t data[], size_t data_len, co std::pair 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 -EC_Point OS2ECP(const std::vector& data, const CurveGFp& curve) { +inline EC_Point OS2ECP(std::span data, const CurveGFp& curve) { return OS2ECP(data.data(), data.size(), curve); }