mirror of
https://github.com/openpgpjs/openpgpjs.git
synced 2026-03-07 17:41:33 +00:00
Do not include checksum values in error messages when armor integrity check fails (#1428)
This commit is contained in:
@@ -328,8 +328,7 @@ export function unarmor(input, config = defaultConfig) {
|
||||
try {
|
||||
const checksumVerifiedString = (await checksumVerified).replace('\n', '');
|
||||
if (checksum !== checksumVerifiedString && (checksum || config.checksumRequired)) {
|
||||
throw new Error("Ascii armor integrity check on message failed: '" + checksum + "' should be '" +
|
||||
checksumVerifiedString + "'");
|
||||
throw new Error('Ascii armor integrity check failed');
|
||||
}
|
||||
await writer.ready;
|
||||
await writer.close();
|
||||
|
||||
Reference in New Issue
Block a user