Update JSDoc returns descriptions for PGP ops

This commit is contained in:
toby 2017-03-24 21:36:46 +00:00
parent a34e1a4d11
commit b881284f08

View file

@ -166,7 +166,7 @@ var PGP = {
* *
* @param {string} input - signed input to verify * @param {string} input - signed input to verify
* @param {Object[]} args * @param {Object[]} args
* @returns {string} - "true" or "false" depending on the validity of the signature * @returns {string} - the original message, and a summary of the verification process
*/ */
runVerify: function (input, args) { runVerify: function (input, args) {
var publicKey = args[0], var publicKey = args[0],
@ -251,7 +251,7 @@ var PGP = {
* *
* @param {string} input - data to be signed * @param {string} input - data to be signed
* @param {Object[]} args * @param {Object[]} args
* @returns {HTML} * @returns {HTML} - HTML file display of message, armoured signature, and bytes signature
*/ */
runSignDetached: function (input, args) { runSignDetached: function (input, args) {
var privateKey = args[0], var privateKey = args[0],
@ -314,11 +314,11 @@ var PGP = {
/** /**
* Verifies the signature and input using PGP. * Verifies the detached signature and input using PGP.
* *
* @param {string} input - signed input to verify * @param {string} input - signed input to verify
* @param {Object[]} args * @param {Object[]} args
* @returns {string} - "true" or "false" depending on the validity of the signature * @returns {string} - the original message, and a summary of the verification process
*/ */
runVerifyDetached: function (input, args) { runVerifyDetached: function (input, args) {
var publicKey = args[0], var publicKey = args[0],
@ -426,7 +426,7 @@ var PGP = {
* *
* @param {string} input - signed input to verify * @param {string} input - signed input to verify
* @param {Object[]} args * @param {Object[]} args
* @returns {string} - "true" or "false" depending on the validity of the signature * @returns {string} - the original message, and a summary of the verification process
*/ */
runVerifyCleartext: function (input, args) { runVerifyCleartext: function (input, args) {
var publicKey = args[0]; var publicKey = args[0];
@ -530,7 +530,7 @@ var PGP = {
* *
* @param {string} input * @param {string} input
* @param {Object[]} args * @param {Object[]} args
* @returns {HTML} * @returns {HTML} - HTML file display of message, armoured signature, and bytes signature
*/ */
runDetachClearsig: function (input, args) { runDetachClearsig: function (input, args) {
return new Promise(function(resolve, reject) { return new Promise(function(resolve, reject) {
@ -599,7 +599,7 @@ var PGP = {
* *
* @param {string} input * @param {string} input
* @param {Object[]} args * @param {Object[]} args
* @returns {byteArray} - armoured public key and private key separated by whitespace. * @returns {byteArray}
*/ */
runRemoveArmour: function (input, args) { runRemoveArmour: function (input, args) {
var decoded = openpgp.armor.decode(input); var decoded = openpgp.armor.decode(input);