Rename some PGP operations

+ "PGP Sign Cleartext" -> "Sign PGP Cleartext"
+ "PGP Verify Cleartext" -> "Verify PGP Cleartext"
+ "PGP Generate Key Pair" -> "Generate PGP Key Pair"
+ "PGP Add ASCII Armor" -> "Add PGP ASCII Armor"
+ "PGP Remove ASCII Armor" -> "Remove PGP ASCII Armor"
This commit is contained in:
toby 2017-03-12 13:39:29 -04:00
parent 718c913bf8
commit 9a5511a8bc
3 changed files with 30 additions and 30 deletions

View file

@ -96,11 +96,11 @@ var Categories = [
"PGP Decrypt", "PGP Decrypt",
"PGP Sign", "PGP Sign",
"PGP Verify", "PGP Verify",
"PGP Sign Cleartext", "Sign PGP Cleartext",
"PGP Verify Cleartext", "Verify PGP Cleartext",
"PGP Generate Key Pair", "Generate PGP Key Pair",
"PGP Add ASCII Armor", "Add PGP ASCII Armor",
"PGP Remove ASCII Armor", "Remove PGP ASCII Armor",
] ]
}, },
{ {
@ -116,11 +116,11 @@ var Categories = [
"PGP Decrypt", "PGP Decrypt",
"PGP Sign", "PGP Sign",
"PGP Verify", "PGP Verify",
"PGP Sign Cleartext", "Sign PGP Cleartext",
"PGP Verify Cleartext", "Verify PGP Cleartext",
"PGP Generate Key Pair", "Generate PGP Key Pair",
"PGP Add ASCII Armor", "Add PGP ASCII Armor",
"PGP Remove ASCII Armor", "Remove PGP ASCII Armor",
] ]
}, },
{ {

View file

@ -3230,7 +3230,7 @@ var OperationConfig = {
} }
] ]
}, },
"PGP Sign Cleartext": { "Sign PGP Cleartext": {
description: "Input: An ASCII-Armored PGP private key (and optionally, the password needed to decrypt the private key).<br><br>This operation uses PGP to produce a digital signature.<br><br>Pretty Good Privacy is an encryption standard (OpenPGP) used for encrypting, decrypting, and signing messages.<br><br>This function relies on OpenPGP.js for the implementation of PGP.<br><br>See more at https://openpgpjs.org/", description: "Input: An ASCII-Armored PGP private key (and optionally, the password needed to decrypt the private key).<br><br>This operation uses PGP to produce a digital signature.<br><br>Pretty Good Privacy is an encryption standard (OpenPGP) used for encrypting, decrypting, and signing messages.<br><br>This function relies on OpenPGP.js for the implementation of PGP.<br><br>See more at https://openpgpjs.org/",
run: PGP.runSignCleartext, run: PGP.runSignCleartext,
inputType: "string", inputType: "string",
@ -3248,7 +3248,7 @@ var OperationConfig = {
}, },
] ]
}, },
"PGP Verify Cleartext": { "Verify PGP Cleartext": {
description: "Input: An ASCII-Armored PGP public key.<br><br>This operation uses PGP to verify a cleartext digital signature.<br><br>Pretty Good Privacy is an encryption standard (OpenPGP) used for encrypting, decrypting, and signing messages.<br><br>This function relies on OpenPGP.js for the implementation of PGP.<br><br>See more at https://openpgpjs.org/", description: "Input: An ASCII-Armored PGP public key.<br><br>This operation uses PGP to verify a cleartext digital signature.<br><br>Pretty Good Privacy is an encryption standard (OpenPGP) used for encrypting, decrypting, and signing messages.<br><br>This function relies on OpenPGP.js for the implementation of PGP.<br><br>See more at https://openpgpjs.org/",
run: PGP.runVerifyCleartext, run: PGP.runVerifyCleartext,
inputType: "string", inputType: "string",
@ -3266,7 +3266,7 @@ var OperationConfig = {
} }
] ]
}, },
"PGP Generate Key Pair": { "Generate PGP Key Pair": {
description: "Input is ignored.<br><br>This operation generates a PGP key pair.<br><br>Pretty Good Privacy is an encryption standard (OpenPGP) used for encrypting, decrypting, and signing messages.<br><br>This function relies on OpenPGP.js for the implementation of PGP.<br><br>See more at https://openpgpjs.org/", description: "Input is ignored.<br><br>This operation generates a PGP key pair.<br><br>Pretty Good Privacy is an encryption standard (OpenPGP) used for encrypting, decrypting, and signing messages.<br><br>This function relies on OpenPGP.js for the implementation of PGP.<br><br>See more at https://openpgpjs.org/",
run: PGP.runGenKeyPair, run: PGP.runGenKeyPair,
inputType: "string", inputType: "string",
@ -3294,7 +3294,7 @@ var OperationConfig = {
}, },
] ]
}, },
"PGP Add ASCII Armor": { "Add PGP ASCII Armor": {
description: "", description: "",
run: PGP.runAddArmor, run: PGP.runAddArmor,
inputType: "byteArray", inputType: "byteArray",
@ -3307,7 +3307,7 @@ var OperationConfig = {
}, },
], ],
}, },
"PGP Remove ASCII Armor": { "Remove PGP ASCII Armor": {
description: "", description: "",
run: PGP.runRemoveArmor, run: PGP.runRemoveArmor,
inputType: "string", inputType: "string",

View file

@ -354,7 +354,7 @@ TestRegister.addTests([{
["", "hello world"].forEach(function(input) { ["", "hello world"].forEach(function(input) {
TestRegister.addTests( TestRegister.addTests(
PGP_TEST_KEY_PAIRS.map(function(keyPair) { PGP_TEST_KEY_PAIRS.map(function(keyPair) {
var testName = "PGP Sign Cleartext, PGP Verify Cleartext ($pw, $ks) '$input'"; var testName = "Sign PGP Cleartext, Verify PGP Cleartext ($pw, $ks) '$input'";
testName = testName.replace("$ks", keyPair.size); testName = testName.replace("$ks", keyPair.size);
testName = testName.replace("$pw", keyPair.password ? "pw" : "no pw"); testName = testName.replace("$pw", keyPair.password ? "pw" : "no pw");
testName = testName.replace("$input", input); testName = testName.replace("$input", input);
@ -373,11 +373,11 @@ TestRegister.addTests([{
].join("\n"), ].join("\n"),
recipeConfig: [ recipeConfig: [
{ {
op: "PGP Sign Cleartext", op: "Sign PGP Cleartext",
args: [keyPair.sec, keyPair.password], args: [keyPair.sec, keyPair.password],
}, },
{ {
op: "PGP Verify Cleartext", op: "Verify PGP Cleartext",
args: [keyPair.pub, true], args: [keyPair.pub, true],
}, },
], ],
@ -389,7 +389,7 @@ TestRegister.addTests([{
["", "hello world"].forEach(function(input) { ["", "hello world"].forEach(function(input) {
TestRegister.addTests( TestRegister.addTests(
PGP_TEST_KEY_PAIRS.map(function(keyPair) { PGP_TEST_KEY_PAIRS.map(function(keyPair) {
var testName = "PGP Sign Cleartext, PGP Verify Cleartext ($pw, $ks) '$input' (message hidden)"; var testName = "Sign Sign Cleartext, Verify PGP Cleartext ($pw, $ks) '$input' (message hidden)";
testName = testName.replace("$ks", keyPair.size); testName = testName.replace("$ks", keyPair.size);
testName = testName.replace("$pw", keyPair.password ? "pw" : "no pw"); testName = testName.replace("$pw", keyPair.password ? "pw" : "no pw");
testName = testName.replace("$input", input); testName = testName.replace("$input", input);
@ -408,11 +408,11 @@ TestRegister.addTests([{
].join("\n"), ].join("\n"),
recipeConfig: [ recipeConfig: [
{ {
op: "PGP Sign Cleartext", op: "Sign PGP Cleartext",
args: [keyPair.sec, keyPair.password], args: [keyPair.sec, keyPair.password],
}, },
{ {
op: "PGP Verify Cleartext", op: "Verify PGP Cleartext",
args: [keyPair.pub, false], args: [keyPair.pub, false],
}, },
], ],
@ -422,7 +422,7 @@ TestRegister.addTests([{
}); });
TestRegister.addTests(CYBERCHEF_GENERATED_KEY_PAIRS.map(function(keyPair) { TestRegister.addTests(CYBERCHEF_GENERATED_KEY_PAIRS.map(function(keyPair) {
var testName = "PGP Remove ASCII Armor, PGP Add ASCII Armor: Public Key '$name'"; var testName = "Remove PGP ASCII Armor, Add PGP ASCII Armor: Public Key '$name'";
testName = testName.replace("$name", keyPair.name); testName = testName.replace("$name", keyPair.name);
return { return {
@ -432,11 +432,11 @@ TestRegister.addTests(CYBERCHEF_GENERATED_KEY_PAIRS.map(function(keyPair) {
ignoreWhitespace: true, ignoreWhitespace: true,
recipeConfig: [ recipeConfig: [
{ {
op: "PGP Remove ASCII Armor", op: "Remove PGP ASCII Armor",
args: [], args: [],
}, },
{ {
op: "PGP Add ASCII Armor", op: "Add PGP ASCII Armor",
args: ["Public key"], args: ["Public key"],
}, },
], ],
@ -444,7 +444,7 @@ TestRegister.addTests(CYBERCHEF_GENERATED_KEY_PAIRS.map(function(keyPair) {
})); }));
TestRegister.addTests(CYBERCHEF_GENERATED_KEY_PAIRS.map(function(keyPair) { TestRegister.addTests(CYBERCHEF_GENERATED_KEY_PAIRS.map(function(keyPair) {
var testName = "PGP Remove ASCII Armor, PGP Add ASCII Armor: Private Key '$name'"; var testName = "Remove PGP ASCII Armor, Add PGP ASCII Armor: Private Key '$name'";
testName = testName.replace("$name", keyPair.name); testName = testName.replace("$name", keyPair.name);
return { return {
@ -454,11 +454,11 @@ TestRegister.addTests(CYBERCHEF_GENERATED_KEY_PAIRS.map(function(keyPair) {
ignoreWhitespace: true, ignoreWhitespace: true,
recipeConfig: [ recipeConfig: [
{ {
op: "PGP Remove ASCII Armor", op: "Remove PGP ASCII Armor",
args: [], args: [],
}, },
{ {
op: "PGP Add ASCII Armor", op: "Add PGP ASCII Armor",
args: ["Private key"], args: ["Private key"],
}, },
], ],
@ -467,7 +467,7 @@ TestRegister.addTests(CYBERCHEF_GENERATED_KEY_PAIRS.map(function(keyPair) {
CYBERCHEF_GENERATED_KEY_PAIRS.forEach(function(keyPair) { CYBERCHEF_GENERATED_KEY_PAIRS.forEach(function(keyPair) {
TestRegister.addTests(keyPair.messages.map(function(encryptedMessage, messageIndex) { TestRegister.addTests(keyPair.messages.map(function(encryptedMessage, messageIndex) {
var testName = "PGP Remove ASCII Armor, PGP Add ASCII Armor: Message $message '$name'"; var testName = "Remove PGP ASCII Armor, Add PGP ASCII Armor: Message $message '$name'";
testName = testName.replace("$message", messageIndex); testName = testName.replace("$message", messageIndex);
testName = testName.replace("$name", keyPair.name); testName = testName.replace("$name", keyPair.name);
@ -478,11 +478,11 @@ CYBERCHEF_GENERATED_KEY_PAIRS.forEach(function(keyPair) {
ignoreWhitespace: true, ignoreWhitespace: true,
recipeConfig: [ recipeConfig: [
{ {
op: "PGP Remove ASCII Armor", op: "Remove PGP ASCII Armor",
args: [], args: [],
}, },
{ {
op: "PGP Add ASCII Armor", op: "Add PGP ASCII Armor",
args: ["Message"], args: ["Message"],
}, },
], ],