diff --git a/Userland/Libraries/LibWeb/Crypto/SubtleCrypto.cpp b/Userland/Libraries/LibWeb/Crypto/SubtleCrypto.cpp index a77ac50bce..8835b701dc 100644 --- a/Userland/Libraries/LibWeb/Crypto/SubtleCrypto.cpp +++ b/Userland/Libraries/LibWeb/Crypto/SubtleCrypto.cpp @@ -59,19 +59,16 @@ JS::Promise* SubtleCrypto::digest(String const& algorithm, JS::Handleglobal_object(), DOM::OperationError::create("Failed to create result buffer")); promise->reject(error); return promise; } - for (size_t i = 0; i < hash.digest_size(); ++i) - (*result_buffer)[i] = digest_data[i]; auto* result = JS::ArrayBuffer::create(global_object, result_buffer.release_value());