From 5c91479b7dadf9e1f38ac7db0b68649341c2c28e Mon Sep 17 00:00:00 2001 From: microshine Date: Wed, 22 May 2019 21:53:21 +0300 Subject: [PATCH] Remove comment --- src/mechs/rsa/rsa_oaep.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/mechs/rsa/rsa_oaep.ts b/src/mechs/rsa/rsa_oaep.ts index b49e0c7..99c58d0 100644 --- a/src/mechs/rsa/rsa_oaep.ts +++ b/src/mechs/rsa/rsa_oaep.ts @@ -35,7 +35,7 @@ export class RsaOaepProvider extends core.RsaOaepProvider { const psLength = keySize - dataLength - 2 * hashSize - 2; if (dataLength > keySize - 2 * hashSize - 2) { - throw new Error("data too large"); + throw new Error("Data too large"); } const message = new Uint8Array(keySize); @@ -114,7 +114,6 @@ export class RsaOaepProvider extends core.RsaOaepProvider { .digest(); for (let i = 0; i < hashSize; i++) { if (labelHash[i] !== dataBlock[i]) { - console.log(labelHash, dataBlock); throw new Error("Decryption failed"); } }