Skip to content

Commit 7c0c52a

Browse files
panvaaddaleax
andauthored
Update src/crypto/crypto_kmac.cc
Co-authored-by: Anna Henningsen <github@addaleax.net>
1 parent 5f76765 commit 7c0c52a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/crypto/crypto_kmac.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ Maybe<void> KmacTraits::AdditionalConfig(
7272

7373
CHECK(args[offset + 2]->IsString()); // Algorithm name
7474
Utf8Value algorithm_name(env->isolate(), args[offset + 2]);
75-
std::string algorithm_str = algorithm_name.ToString();
75+
std::string_view algorithm_str = algorithm_name.ToStringView();
7676

7777
// Convert string to enum and validate
7878
if (algorithm_str == OSSL_MAC_NAME_KMAC128) {

0 commit comments

Comments
 (0)