summaryrefslogtreecommitdiff
path: root/ext/node/polyfills/internal/crypto/sig.ts
diff options
context:
space:
mode:
Diffstat (limited to 'ext/node/polyfills/internal/crypto/sig.ts')
-rw-r--r--ext/node/polyfills/internal/crypto/sig.ts9
1 files changed, 0 insertions, 9 deletions
diff --git a/ext/node/polyfills/internal/crypto/sig.ts b/ext/node/polyfills/internal/crypto/sig.ts
index 5a9611780..473670d2a 100644
--- a/ext/node/polyfills/internal/crypto/sig.ts
+++ b/ext/node/polyfills/internal/crypto/sig.ts
@@ -67,10 +67,6 @@ export class SignImpl extends Writable {
algorithm = algorithm.toLowerCase();
- if (algorithm.startsWith("rsa-")) {
- // Allows RSA-[digest_algorithm] as a valid algorithm
- algorithm = algorithm.slice(4);
- }
this.#digestType = algorithm;
this.hash = createHash(this.#digestType);
}
@@ -121,11 +117,6 @@ export class VerifyImpl extends Writable {
algorithm = algorithm.toLowerCase();
- if (algorithm.startsWith("rsa-")) {
- // Allows RSA-[digest_algorithm] as a valid algorithm
- algorithm = algorithm.slice(4);
- }
-
this.#digestType = algorithm;
this.hash = createHash(this.#digestType);
}