diff --git a/src/js/operations/PGP.js b/src/js/operations/PGP.js index f5734e01..a195fe97 100755 --- a/src/js/operations/PGP.js +++ b/src/js/operations/PGP.js @@ -297,7 +297,7 @@ var PGP = { }, { fileName: "msg.sig", size: rawSignatureBytes.length, - contents: "Binary file", + contents: openpgp.util.Uint8Array2str(rawSignatureBytes), bytes: rawSignatureBytes, }]; diff --git a/test/tests/operations/PGP.js b/test/tests/operations/PGP.js index 9e984e5f..4b6cb70a 100644 --- a/test/tests/operations/PGP.js +++ b/test/tests/operations/PGP.js @@ -201,11 +201,11 @@ PGP_TEST_KEY_PAIRS.forEach(function(keyPair) { if (keyPair.password) { TestRegister.addTests( ["", "nottherightpassword"].map(function(incorrectPW) { - var testName = "PGP Encrypt, PGP Decrypt: ensure error for incorrect password (pw [$pw], $ks, $name)"; - testName = testName.replace("$ks", keyPair.size); - testName = testName.replace("$pw", incorrectPW); + var testName = "PGP Encrypt, PGP Decrypt: ensure error for incorrect password (pw [$pw], $ks, $name)"; + testName = testName.replace("$ks", keyPair.size); + testName = testName.replace("$pw", incorrectPW); - return { + return { name: testName, input: "hello world", expectedError: true, @@ -443,5 +443,5 @@ PGP_TEST_KEY_PAIRS.forEach(function(keyPair) { ], }; }) - ) -}); \ No newline at end of file + ); +});