Add function names to constructors
This commit is contained in:
parent
17ad1f5fed
commit
3d4dfaea87
|
@ -6,7 +6,7 @@
|
|||
/**
|
||||
* @constructor
|
||||
*/
|
||||
module.exports = function () {
|
||||
module.exports = function localStorage() {
|
||||
|
||||
/**
|
||||
* Reads the config out of the HTML5 local storage
|
||||
|
|
|
@ -34,7 +34,7 @@ var enums = require('../enums.js'),
|
|||
/**
|
||||
* @constructor
|
||||
*/
|
||||
module.exports = function () {
|
||||
module.exports = function compressed() {
|
||||
/**
|
||||
* List of packets
|
||||
* @type {module:packet/packetlist}
|
||||
|
|
|
@ -31,7 +31,7 @@ var util = require('../util'),
|
|||
/**
|
||||
* @constructor
|
||||
*/
|
||||
module.exports = function () {
|
||||
module.exports = function literal() {
|
||||
this.format = 'utf8'; // default format for literal data packets
|
||||
this.data = ''; // literal data representation as native JavaScript string or bytes
|
||||
this.date = new Date();
|
||||
|
|
|
@ -31,7 +31,7 @@
|
|||
/**
|
||||
* @constructor
|
||||
*/
|
||||
module.exports = function () {
|
||||
module.exports = function marker() {
|
||||
/**
|
||||
* Parsing function for a literal data packet (tag 10).
|
||||
*
|
||||
|
|
|
@ -35,7 +35,7 @@ var enums = require('../enums.js'),
|
|||
/**
|
||||
* @constructor
|
||||
*/
|
||||
module.exports = function () {
|
||||
module.exports = function one_pass_signature() {
|
||||
this.version = null; // A one-octet version number. The current version is 3.
|
||||
this.type = null; // A one-octet signature type. Signature types are described in RFC4880 Section 5.2.1.
|
||||
this.hashAlgorithm = null; // A one-octet number describing the hash algorithm used. (See RFC4880 9.4)
|
||||
|
|
|
@ -15,7 +15,7 @@ var packetParser = require('./packet.js'),
|
|||
/**
|
||||
* @constructor
|
||||
*/
|
||||
module.exports = packetlist = function () {
|
||||
module.exports = function packetlist() {
|
||||
/** The number of packets contained within the list.
|
||||
* @readonly
|
||||
* @type {Integer} */
|
||||
|
|
|
@ -39,7 +39,7 @@ var util = require('../util'),
|
|||
/**
|
||||
* @constructor
|
||||
*/
|
||||
module.exports = function () {
|
||||
module.exports = function public_key() {
|
||||
this.version = 4;
|
||||
/** Key creation date.
|
||||
* @type {Date} */
|
||||
|
|
|
@ -46,7 +46,7 @@ var type_keyid = require('../type/keyid.js'),
|
|||
/**
|
||||
* @constructor
|
||||
*/
|
||||
module.exports = function () {
|
||||
module.exports = function public_key_encrypted_session_key() {
|
||||
this.version = 3;
|
||||
|
||||
this.publicKeyId = new type_keyid();
|
||||
|
|
|
@ -26,6 +26,6 @@ var publicKey = require('./public_key.js');
|
|||
* @constructor
|
||||
* @extends module:packet/public_key
|
||||
*/
|
||||
module.exports = function () {
|
||||
module.exports = function public_subkey() {
|
||||
publicKey.call(this);
|
||||
}
|
||||
|
|
|
@ -42,7 +42,7 @@ var publicKey = require('./public_key.js'),
|
|||
* @constructor
|
||||
* @extends module:packet/public_key
|
||||
*/
|
||||
module.exports = function () {
|
||||
module.exports = function secret_key() {
|
||||
publicKey.call(this);
|
||||
// encrypted secret-key data
|
||||
this.encrypted = null;
|
||||
|
|
|
@ -26,6 +26,6 @@ var secretKey = require('./secret_key.js');
|
|||
* @constructor
|
||||
* @extends module:packet/secret_key
|
||||
*/
|
||||
module.exports = function () {
|
||||
module.exports = function secret_subkey() {
|
||||
secretKey.call(this);
|
||||
}
|
||||
|
|
|
@ -41,7 +41,7 @@ var util = require('../util'),
|
|||
/**
|
||||
* @constructor
|
||||
*/
|
||||
module.exports = packetSignature = function () {
|
||||
module.exports = function signature() {
|
||||
|
||||
this.version = 4;
|
||||
this.signatureType = null;
|
||||
|
@ -499,7 +499,7 @@ module.exports = packetSignature = function () {
|
|||
break;
|
||||
case 32:
|
||||
// Embedded Signature
|
||||
this.embeddedSignature = new packetSignature();
|
||||
this.embeddedSignature = new signature();
|
||||
this.embeddedSignature.read(bytes.substr(mypos));
|
||||
break;
|
||||
default:
|
||||
|
|
|
@ -35,7 +35,7 @@ var util = require('../util'),
|
|||
/**
|
||||
* @constructor
|
||||
*/
|
||||
module.exports = function () {
|
||||
module.exports = function sym_encrypted_integrity_protected() {
|
||||
/** The encrypted payload. */
|
||||
this.encrypted = null; // string
|
||||
/**
|
||||
|
|
|
@ -42,7 +42,7 @@ var type_s2k = require('../type/s2k.js'),
|
|||
/**
|
||||
* @constructor
|
||||
*/
|
||||
module.exports = function () {
|
||||
module.exports = function sym_encrypted_session_key() {
|
||||
this.tag = 3;
|
||||
this.sessionKeyEncryptionAlgorithm = null;
|
||||
this.sessionKeyAlgorithm = 'aes256';
|
||||
|
|
|
@ -32,7 +32,7 @@ var crypto = require('../crypto');
|
|||
/**
|
||||
* @constructor
|
||||
*/
|
||||
module.exports = function () {
|
||||
module.exports = function symmetrically_encrypted() {
|
||||
this.encrypted = null;
|
||||
/** Decrypted packets contained within.
|
||||
* @type {module:packet/packetlist} */
|
||||
|
|
|
@ -5,6 +5,6 @@
|
|||
/**
|
||||
* @constructor
|
||||
*/
|
||||
module.exports = function () {
|
||||
module.exports = function trust() {
|
||||
|
||||
};
|
||||
|
|
|
@ -41,7 +41,7 @@ var util = require('../util'),
|
|||
/**
|
||||
* @constructor
|
||||
*/
|
||||
module.exports = function () {
|
||||
module.exports = function user_attribute() {
|
||||
this.tag = 17;
|
||||
this.attributes = [];
|
||||
|
||||
|
|
|
@ -32,7 +32,7 @@ var util = require('../util');
|
|||
/**
|
||||
* @constructor
|
||||
*/
|
||||
module.exports = function () {
|
||||
module.exports = function userid() {
|
||||
/** A string containing the user id. Usually in the form
|
||||
* John Doe <john@example.com>
|
||||
* @type {String}
|
||||
|
|
|
@ -31,7 +31,7 @@ var util = require('../util');
|
|||
/**
|
||||
* @constructor
|
||||
*/
|
||||
module.exports = function () {
|
||||
module.exports = function keyid() {
|
||||
|
||||
this.bytes = '';
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user