aboutsummaryrefslogtreecommitdiff
path: root/src/bench/ellswift.cpp
diff options
context:
space:
mode:
authorHennadii Stepanov <32963518+hebasto@users.noreply.github.com>2024-04-06 15:46:53 +0100
committerHennadii Stepanov <32963518+hebasto@users.noreply.github.com>2024-04-06 15:46:53 +0100
commit56e1e5dd10cbe51d3abc3fbf532b6b41bf62a889 (patch)
tree83430728b06136a29ecec46470768f6045ebe78f /src/bench/ellswift.cpp
parentb5d21182e5a66110ce2796c2c99da39c8ebf0d72 (diff)
refactor, bench, fuzz: Drop unneeded `UCharCast` calls
The `CKey::Set()` template function handles `std::byte` just fine.
Diffstat (limited to 'src/bench/ellswift.cpp')
-rw-r--r--src/bench/ellswift.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bench/ellswift.cpp b/src/bench/ellswift.cpp
index 82e8dec982..9441b4863e 100644
--- a/src/bench/ellswift.cpp
+++ b/src/bench/ellswift.cpp
@@ -17,7 +17,7 @@ static void EllSwiftCreate(benchmark::Bench& bench)
bench.batch(1).unit("pubkey").run([&] {
auto ret = key.EllSwiftCreate(MakeByteSpan(entropy));
/* Use the first 32 bytes of the ellswift encoded public key as next private key. */
- key.Set(UCharCast(ret.data()), UCharCast(ret.data()) + 32, true);
+ key.Set(ret.data(), ret.data() + 32, true);
assert(key.IsValid());
/* Use the last 32 bytes of the ellswift encoded public key as next entropy. */
std::copy(ret.begin() + 32, ret.begin() + 64, MakeWritableByteSpan(entropy).begin());