We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5f76765 commit 7c0c52aCopy full SHA for 7c0c52a
src/crypto/crypto_kmac.cc
@@ -72,7 +72,7 @@ Maybe<void> KmacTraits::AdditionalConfig(
72
73
CHECK(args[offset + 2]->IsString()); // Algorithm name
74
Utf8Value algorithm_name(env->isolate(), args[offset + 2]);
75
- std::string algorithm_str = algorithm_name.ToString();
+ std::string_view algorithm_str = algorithm_name.ToStringView();
76
77
// Convert string to enum and validate
78
if (algorithm_str == OSSL_MAC_NAME_KMAC128) {
0 commit comments