Skip to content

Commit 7d63459

Browse files
committed
fixup! crypto: add signDigest/verifyDigest and Ed25519ctx support
1 parent 26d3414 commit 7d63459

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

lib/internal/crypto/sig.js

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -165,16 +165,7 @@ function validateDigestOrData(data, prehashed) {
165165
return data;
166166
}
167167

168-
data = getArrayBufferOrView(data, 'data');
169-
170-
if (!isArrayBufferView(data)) {
171-
throw new ERR_INVALID_ARG_TYPE(
172-
'data',
173-
['Buffer', 'TypedArray', 'DataView'],
174-
data,
175-
);
176-
}
177-
return data;
168+
return getArrayBufferOrView(data, 'data');
178169
}
179170

180171
function signOneShotImpl(algorithm, data, key, callback, prehashed) {

0 commit comments

Comments
 (0)