summaryrefslogtreecommitdiff
path: root/Source/Core/Common/Crypto/ec.cpp
diff options
context:
space:
mode:
authorJosJuice <josjuice@gmail.com>2024-10-15 17:08:55 +0200
committerGitHub <noreply@github.com>2024-10-15 17:08:55 +0200
commit07605bf67c6815510688ebf3e71583624c3bfab0 (patch)
tree45d3c7260daf088cbf44febda937f1a4c34c5141 /Source/Core/Common/Crypto/ec.cpp
parentef8b753cd778179e1c2980b1ec2615f80a314714 (diff)
parente572081ac322253d65bf767a88887fedd4e97c2e (diff)
Merge pull request #13090 from mitaclaw/ranges-modernization-1-trivial
Ranges Algorithms Modernization - Trivial
Diffstat (limited to 'Source/Core/Common/Crypto/ec.cpp')
-rw-r--r--Source/Core/Common/Crypto/ec.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/Core/Common/Crypto/ec.cpp b/Source/Core/Common/Crypto/ec.cpp
index 4cce6ce5dc..1f1b0e6018 100644
--- a/Source/Core/Common/Crypto/ec.cpp
+++ b/Source/Core/Common/Crypto/ec.cpp
@@ -252,8 +252,8 @@ Signature Sign(const u8* key, const u8* hash)
bn_mul(s.data.data(), minv, kk, ec_N, 30);
Signature signature;
- std::copy(r.data.cbegin(), r.data.cend(), signature.begin());
- std::copy(s.data.cbegin(), s.data.cend(), signature.begin() + 30);
+ std::ranges::copy(r.data, signature.begin());
+ std::ranges::copy(s.data, signature.begin() + 30);
return signature;
}