Remove comment

This commit is contained in:
microshine 2019-05-22 21:53:21 +03:00
parent 365ddf745f
commit 5c91479b7d
1 changed files with 1 additions and 2 deletions

View File

@ -35,7 +35,7 @@ export class RsaOaepProvider extends core.RsaOaepProvider {
const psLength = keySize - dataLength - 2 * hashSize - 2; const psLength = keySize - dataLength - 2 * hashSize - 2;
if (dataLength > keySize - 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); const message = new Uint8Array(keySize);
@ -114,7 +114,6 @@ export class RsaOaepProvider extends core.RsaOaepProvider {
.digest(); .digest();
for (let i = 0; i < hashSize; i++) { for (let i = 0; i < hashSize; i++) {
if (labelHash[i] !== dataBlock[i]) { if (labelHash[i] !== dataBlock[i]) {
console.log(labelHash, dataBlock);
throw new Error("Decryption failed"); throw new Error("Decryption failed");
} }
} }