Remove 'user strict'
'use strict' is unnecessary inside modules because module code is always strict mode code. Ref: https://www.ecma-international.org/ecma-262/6.0/#sec-strict-mode-code
This commit is contained in:
parent
790799f2e7
commit
de6ffc2f76
|
@ -1,5 +1,3 @@
|
||||||
'use strict';
|
|
||||||
|
|
||||||
module.exports = function(grunt) {
|
module.exports = function(grunt) {
|
||||||
|
|
||||||
var lintFiles = [
|
var lintFiles = [
|
||||||
|
|
|
@ -24,8 +24,6 @@
|
||||||
* @module cleartext
|
* @module cleartext
|
||||||
*/
|
*/
|
||||||
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
import config from './config';
|
import config from './config';
|
||||||
import armor from './encoding/armor';
|
import armor from './encoding/armor';
|
||||||
import enums from './enums';
|
import enums from './enums';
|
||||||
|
|
|
@ -21,8 +21,6 @@
|
||||||
* @module config/config
|
* @module config/config
|
||||||
*/
|
*/
|
||||||
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
import enums from '../enums.js';
|
import enums from '../enums.js';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
|
|
|
@ -3,6 +3,4 @@
|
||||||
* @module config
|
* @module config
|
||||||
*/
|
*/
|
||||||
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
export { default } from './config.js';
|
export { default } from './config.js';
|
|
@ -3,8 +3,6 @@
|
||||||
* @module config/localStorage
|
* @module config/localStorage
|
||||||
*/
|
*/
|
||||||
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @constructor
|
* @constructor
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -22,8 +22,6 @@
|
||||||
* @module crypto/cfb
|
* @module crypto/cfb
|
||||||
*/
|
*/
|
||||||
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
import cipher from './cipher';
|
import cipher from './cipher';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
|
|
|
@ -2,8 +2,6 @@
|
||||||
* @module crypto/cipher/aes
|
* @module crypto/cipher/aes
|
||||||
*/
|
*/
|
||||||
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
import asmCrypto from 'asmcrypto-lite';
|
import asmCrypto from 'asmcrypto-lite';
|
||||||
|
|
||||||
// TODO use webCrypto or nodeCrypto when possible.
|
// TODO use webCrypto or nodeCrypto when possible.
|
||||||
|
|
|
@ -7,8 +7,6 @@
|
||||||
* @module crypto/cipher/blowfish
|
* @module crypto/cipher/blowfish
|
||||||
*/
|
*/
|
||||||
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Javascript implementation based on Bruce Schneier's reference implementation.
|
* Javascript implementation based on Bruce Schneier's reference implementation.
|
||||||
*
|
*
|
||||||
|
|
|
@ -16,8 +16,6 @@
|
||||||
|
|
||||||
/** @module crypto/cipher/cast5 */
|
/** @module crypto/cipher/cast5 */
|
||||||
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
function OpenpgpSymencCast5() {
|
function OpenpgpSymencCast5() {
|
||||||
this.BlockSize = 8;
|
this.BlockSize = 8;
|
||||||
this.KeySize = 16;
|
this.KeySize = 16;
|
||||||
|
|
|
@ -25,8 +25,6 @@
|
||||||
* @module crypto/cipher/des
|
* @module crypto/cipher/des
|
||||||
*/
|
*/
|
||||||
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
function des(keys, message, encrypt, mode, iv, padding) {
|
function des(keys, message, encrypt, mode, iv, padding) {
|
||||||
//declaring this locally speeds things up a bit
|
//declaring this locally speeds things up a bit
|
||||||
var spfunction1 = new Array(0x1010400, 0, 0x10000, 0x1010404, 0x1010004, 0x10404, 0x4, 0x10000, 0x400, 0x1010400,
|
var spfunction1 = new Array(0x1010400, 0, 0x10000, 0x1010404, 0x1010004, 0x10404, 0x4, 0x10000, 0x400, 0x1010400,
|
||||||
|
|
|
@ -6,8 +6,6 @@
|
||||||
* @module crypto/cipher
|
* @module crypto/cipher
|
||||||
*/
|
*/
|
||||||
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
import aes from './aes.js';
|
import aes from './aes.js';
|
||||||
import desModule from './des.js';
|
import desModule from './des.js';
|
||||||
import cast5 from './cast5.js';
|
import cast5 from './cast5.js';
|
||||||
|
|
|
@ -28,8 +28,6 @@
|
||||||
* @module crypto/crypto
|
* @module crypto/crypto
|
||||||
*/
|
*/
|
||||||
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
import random from './random.js';
|
import random from './random.js';
|
||||||
import cipher from './cipher';
|
import cipher from './cipher';
|
||||||
import publicKey from './public_key';
|
import publicKey from './public_key';
|
||||||
|
|
|
@ -20,8 +20,6 @@
|
||||||
* the WebCrypto api as well as node.js' crypto api.
|
* the WebCrypto api as well as node.js' crypto api.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
import asmCrypto from 'asmcrypto-lite';
|
import asmCrypto from 'asmcrypto-lite';
|
||||||
import util from '../util.js';
|
import util from '../util.js';
|
||||||
import config from '../config';
|
import config from '../config';
|
||||||
|
|
|
@ -5,8 +5,6 @@
|
||||||
* @module crypto/hash
|
* @module crypto/hash
|
||||||
*/
|
*/
|
||||||
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
import Rusha from 'rusha';
|
import Rusha from 'rusha';
|
||||||
import RIPEMD160 from 'ripemd160';
|
import RIPEMD160 from 'ripemd160';
|
||||||
import asmCrypto from 'asmcrypto-lite';
|
import asmCrypto from 'asmcrypto-lite';
|
||||||
|
|
|
@ -17,8 +17,6 @@
|
||||||
* @module crypto/hash/md5
|
* @module crypto/hash/md5
|
||||||
*/
|
*/
|
||||||
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
import util from '../../util.js';
|
import util from '../../util.js';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -19,8 +19,6 @@
|
||||||
* 1 = SHA-1, 2 = SHA-224/SHA-256, 4 = SHA-384/SHA-512
|
* 1 = SHA-1, 2 = SHA-224/SHA-256, 4 = SHA-384/SHA-512
|
||||||
*/
|
*/
|
||||||
|
|
||||||
"use strict";
|
|
||||||
|
|
||||||
var SUPPORTED_ALGS = 4 | 2 | 1;
|
var SUPPORTED_ALGS = 4 | 2 | 1;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -3,8 +3,6 @@
|
||||||
* @module crypto
|
* @module crypto
|
||||||
*/
|
*/
|
||||||
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
import cipher from './cipher';
|
import cipher from './cipher';
|
||||||
import hash from './hash';
|
import hash from './hash';
|
||||||
import cfb from './cfb';
|
import cfb from './cfb';
|
||||||
|
|
|
@ -25,8 +25,6 @@
|
||||||
* @module crypto/pkcs1
|
* @module crypto/pkcs1
|
||||||
*/
|
*/
|
||||||
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
import random from './random.js';
|
import random from './random.js';
|
||||||
import util from '../util.js';
|
import util from '../util.js';
|
||||||
import BigInteger from './public_key/jsbn.js';
|
import BigInteger from './public_key/jsbn.js';
|
||||||
|
|
|
@ -25,8 +25,6 @@
|
||||||
* @module crypto/public_key/dsa
|
* @module crypto/public_key/dsa
|
||||||
*/
|
*/
|
||||||
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
import BigInteger from './jsbn.js';
|
import BigInteger from './jsbn.js';
|
||||||
import random from '../random.js';
|
import random from '../random.js';
|
||||||
import hashModule from '../hash';
|
import hashModule from '../hash';
|
||||||
|
|
|
@ -24,8 +24,6 @@
|
||||||
* @module crypto/public_key/elgamal
|
* @module crypto/public_key/elgamal
|
||||||
*/
|
*/
|
||||||
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
import BigInteger from './jsbn.js';
|
import BigInteger from './jsbn.js';
|
||||||
import random from '../random.js';
|
import random from '../random.js';
|
||||||
import util from '../../util.js';
|
import util from '../../util.js';
|
||||||
|
|
|
@ -25,8 +25,6 @@
|
||||||
* @module crypto/public_key/elliptic/curve
|
* @module crypto/public_key/elliptic/curve
|
||||||
*/
|
*/
|
||||||
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
import { ec as EC, eddsa as EdDSA } from 'elliptic';
|
import { ec as EC, eddsa as EdDSA } from 'elliptic';
|
||||||
import { KeyPair } from './key';
|
import { KeyPair } from './key';
|
||||||
import BigInteger from '../jsbn';
|
import BigInteger from '../jsbn';
|
||||||
|
|
|
@ -30,8 +30,6 @@
|
||||||
* @module crypto/public_key/elliptic/ecdh
|
* @module crypto/public_key/elliptic/ecdh
|
||||||
*/
|
*/
|
||||||
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
import curves from './curves';
|
import curves from './curves';
|
||||||
import BigInteger from '../jsbn';
|
import BigInteger from '../jsbn';
|
||||||
import cipher from '../../cipher';
|
import cipher from '../../cipher';
|
||||||
|
|
|
@ -24,8 +24,6 @@
|
||||||
* @module crypto/public_key/elliptic/ecdsa
|
* @module crypto/public_key/elliptic/ecdsa
|
||||||
*/
|
*/
|
||||||
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
import hash from '../../hash';
|
import hash from '../../hash';
|
||||||
import curves from './curves';
|
import curves from './curves';
|
||||||
import BigInteger from '../jsbn';
|
import BigInteger from '../jsbn';
|
||||||
|
|
|
@ -24,8 +24,6 @@
|
||||||
* @module crypto/public_key/elliptic/eddsa
|
* @module crypto/public_key/elliptic/eddsa
|
||||||
*/
|
*/
|
||||||
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
import BN from 'bn.js';
|
import BN from 'bn.js';
|
||||||
import hash from '../../hash';
|
import hash from '../../hash';
|
||||||
import curves from './curves';
|
import curves from './curves';
|
||||||
|
|
|
@ -25,8 +25,6 @@
|
||||||
* @module crypto/public_key/elliptic
|
* @module crypto/public_key/elliptic
|
||||||
*/
|
*/
|
||||||
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
import {get, generate, getPreferredHashAlgo} from './curves';
|
import {get, generate, getPreferredHashAlgo} from './curves';
|
||||||
import ecdsa from './ecdsa';
|
import ecdsa from './ecdsa';
|
||||||
import eddsa from './eddsa';
|
import eddsa from './eddsa';
|
||||||
|
|
|
@ -30,8 +30,6 @@
|
||||||
* @module crypto/public_key/elliptic/key
|
* @module crypto/public_key/elliptic/key
|
||||||
*/
|
*/
|
||||||
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
import curves from './curves';
|
import curves from './curves';
|
||||||
import BigInteger from '../jsbn';
|
import BigInteger from '../jsbn';
|
||||||
import hash from '../../hash';
|
import hash from '../../hash';
|
||||||
|
|
|
@ -6,8 +6,6 @@
|
||||||
* @module crypto/public_key
|
* @module crypto/public_key
|
||||||
*/
|
*/
|
||||||
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
/** @see module:crypto/public_key/rsa */
|
/** @see module:crypto/public_key/rsa */
|
||||||
import rsa from './rsa.js';
|
import rsa from './rsa.js';
|
||||||
/** @see module:crypto/public_key/elgamal */
|
/** @see module:crypto/public_key/elgamal */
|
||||||
|
|
|
@ -24,8 +24,6 @@
|
||||||
* @module crypto/public_key/rsa
|
* @module crypto/public_key/rsa
|
||||||
*/
|
*/
|
||||||
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
import BigInteger from './jsbn.js';
|
import BigInteger from './jsbn.js';
|
||||||
import util from '../../util.js';
|
import util from '../../util.js';
|
||||||
import random from '../random.js';
|
import random from '../random.js';
|
||||||
|
|
|
@ -23,8 +23,6 @@
|
||||||
* @module crypto/random
|
* @module crypto/random
|
||||||
*/
|
*/
|
||||||
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
import type_mpi from '../type/mpi.js';
|
import type_mpi from '../type/mpi.js';
|
||||||
import util from '../util.js';
|
import util from '../util.js';
|
||||||
|
|
||||||
|
|
|
@ -5,8 +5,6 @@
|
||||||
* @requires crypto/public_key
|
* @requires crypto/public_key
|
||||||
* @module crypto/signature */
|
* @module crypto/signature */
|
||||||
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
import util from '../util';
|
import util from '../util';
|
||||||
import publicKey from './public_key';
|
import publicKey from './public_key';
|
||||||
import pkcs1 from './pkcs1.js';
|
import pkcs1 from './pkcs1.js';
|
||||||
|
|
|
@ -22,8 +22,6 @@
|
||||||
* @module encoding/armor
|
* @module encoding/armor
|
||||||
*/
|
*/
|
||||||
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
import base64 from './base64.js';
|
import base64 from './base64.js';
|
||||||
import enums from '../enums.js';
|
import enums from '../enums.js';
|
||||||
import config from '../config';
|
import config from '../config';
|
||||||
|
|
|
@ -15,8 +15,6 @@
|
||||||
* @module encoding/base64
|
* @module encoding/base64
|
||||||
*/
|
*/
|
||||||
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
var b64s = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'; // Standard radix-64
|
var b64s = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'; // Standard radix-64
|
||||||
var b64u = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_'; // URL-safe radix-64
|
var b64u = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_'; // URL-safe radix-64
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,3 @@
|
||||||
'use strict';
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @module enums
|
* @module enums
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -20,8 +20,6 @@
|
||||||
* in order to lookup and upload keys on standard public key servers.
|
* in order to lookup and upload keys on standard public key servers.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
import config from './config';
|
import config from './config';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -1,7 +1,5 @@
|
||||||
/* eslint-disable import/newline-after-import, import/first */
|
/* eslint-disable import/newline-after-import, import/first */
|
||||||
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Export high level api as default.
|
* Export high level api as default.
|
||||||
* Usage:
|
* Usage:
|
||||||
|
|
|
@ -25,8 +25,6 @@
|
||||||
* @module key
|
* @module key
|
||||||
*/
|
*/
|
||||||
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
import config from './config';
|
import config from './config';
|
||||||
import crypto from './crypto';
|
import crypto from './crypto';
|
||||||
import armor from './encoding/armor';
|
import armor from './encoding/armor';
|
||||||
|
|
|
@ -1,5 +1,3 @@
|
||||||
'use strict';
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @see module:keyring/keyring
|
* @see module:keyring/keyring
|
||||||
* @module keyring
|
* @module keyring
|
||||||
|
|
|
@ -23,8 +23,6 @@
|
||||||
* @param {keyring/localstore} [storeHandler] class implementing loadPublic(), loadPrivate(), storePublic(), and storePrivate() methods
|
* @param {keyring/localstore} [storeHandler] class implementing loadPublic(), loadPrivate(), storePublic(), and storePrivate() methods
|
||||||
*/
|
*/
|
||||||
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
import { readArmored } from '../key';
|
import { readArmored } from '../key';
|
||||||
import LocalStore from './localstore';
|
import LocalStore from './localstore';
|
||||||
|
|
||||||
|
|
|
@ -24,8 +24,6 @@
|
||||||
* @param {String} prefix prefix for itemnames in localstore
|
* @param {String} prefix prefix for itemnames in localstore
|
||||||
*/
|
*/
|
||||||
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
import config from '../config';
|
import config from '../config';
|
||||||
import { readArmored } from '../key';
|
import { readArmored } from '../key';
|
||||||
import util from '../util';
|
import util from '../util';
|
||||||
|
|
|
@ -27,8 +27,6 @@
|
||||||
* @module message
|
* @module message
|
||||||
*/
|
*/
|
||||||
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
import config from './config';
|
import config from './config';
|
||||||
import crypto from './crypto';
|
import crypto from './crypto';
|
||||||
import armor from './encoding/armor';
|
import armor from './encoding/armor';
|
||||||
|
|
|
@ -32,8 +32,6 @@
|
||||||
* for extending and developing on top of the base library.
|
* for extending and developing on top of the base library.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
import * as messageLib from './message';
|
import * as messageLib from './message';
|
||||||
import { CleartextMessage } from './cleartext';
|
import { CleartextMessage } from './cleartext';
|
||||||
import { generate, reformat } from './key';
|
import { generate, reformat } from './key';
|
||||||
|
|
|
@ -3,8 +3,6 @@
|
||||||
* @module packet
|
* @module packet
|
||||||
*/
|
*/
|
||||||
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
import enums from '../enums.js';
|
import enums from '../enums.js';
|
||||||
import * as packets from './all_packets.js'; // re-import module to parse packets from tag
|
import * as packets from './all_packets.js'; // re-import module to parse packets from tag
|
||||||
|
|
||||||
|
|
|
@ -21,8 +21,6 @@
|
||||||
* the structured cloning algorithm.
|
* the structured cloning algorithm.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
import { Key } from '../key';
|
import { Key } from '../key';
|
||||||
import { Message } from '../message';
|
import { Message } from '../message';
|
||||||
import { CleartextMessage } from '../cleartext';
|
import { CleartextMessage } from '../cleartext';
|
||||||
|
|
|
@ -29,8 +29,6 @@
|
||||||
* @module packet/compressed
|
* @module packet/compressed
|
||||||
*/
|
*/
|
||||||
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
import enums from '../enums.js';
|
import enums from '../enums.js';
|
||||||
import util from '../util.js';
|
import util from '../util.js';
|
||||||
import Zlib from '../compression/zlib.min.js';
|
import Zlib from '../compression/zlib.min.js';
|
||||||
|
|
|
@ -1,5 +1,3 @@
|
||||||
'use strict';
|
|
||||||
|
|
||||||
import * as packets from './all_packets.js';
|
import * as packets from './all_packets.js';
|
||||||
import * as clone from './clone.js';
|
import * as clone from './clone.js';
|
||||||
import List from './packetlist.js';
|
import List from './packetlist.js';
|
||||||
|
|
|
@ -25,8 +25,6 @@
|
||||||
* @module packet/literal
|
* @module packet/literal
|
||||||
*/
|
*/
|
||||||
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
import util from '../util.js';
|
import util from '../util.js';
|
||||||
import enums from '../enums.js';
|
import enums from '../enums.js';
|
||||||
|
|
||||||
|
|
|
@ -29,8 +29,6 @@
|
||||||
* @module packet/marker
|
* @module packet/marker
|
||||||
*/
|
*/
|
||||||
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
import enums from '../enums.js';
|
import enums from '../enums.js';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -29,8 +29,6 @@
|
||||||
* @module packet/one_pass_signature
|
* @module packet/one_pass_signature
|
||||||
*/
|
*/
|
||||||
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
import util from '../util.js';
|
import util from '../util.js';
|
||||||
import enums from '../enums.js';
|
import enums from '../enums.js';
|
||||||
import type_keyid from '../type/keyid.js';
|
import type_keyid from '../type/keyid.js';
|
||||||
|
|
|
@ -21,8 +21,6 @@
|
||||||
* @module packet/packet
|
* @module packet/packet
|
||||||
*/
|
*/
|
||||||
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
import util from '../util.js';
|
import util from '../util.js';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
|
|
|
@ -10,8 +10,6 @@
|
||||||
* @module packet/packetlist
|
* @module packet/packetlist
|
||||||
*/
|
*/
|
||||||
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
import util from '../util';
|
import util from '../util';
|
||||||
import packetParser from './packet.js';
|
import packetParser from './packet.js';
|
||||||
import * as packets from './all_packets.js';
|
import * as packets from './all_packets.js';
|
||||||
|
|
|
@ -29,8 +29,6 @@
|
||||||
* @module packet/public_key
|
* @module packet/public_key
|
||||||
*/
|
*/
|
||||||
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
import crypto from '../crypto';
|
import crypto from '../crypto';
|
||||||
import enums from '../enums';
|
import enums from '../enums';
|
||||||
import util from '../util';
|
import util from '../util';
|
||||||
|
|
|
@ -38,8 +38,6 @@
|
||||||
* @module packet/public_key_encrypted_session_key
|
* @module packet/public_key_encrypted_session_key
|
||||||
*/
|
*/
|
||||||
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
import type_keyid from '../type/keyid.js';
|
import type_keyid from '../type/keyid.js';
|
||||||
import util from '../util.js';
|
import util from '../util.js';
|
||||||
import type_ecdh_symkey from '../type/ecdh_symkey.js';
|
import type_ecdh_symkey from '../type/ecdh_symkey.js';
|
||||||
|
|
|
@ -21,8 +21,6 @@
|
||||||
* @module packet/public_subkey
|
* @module packet/public_subkey
|
||||||
*/
|
*/
|
||||||
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
import publicKey from './public_key.js';
|
import publicKey from './public_key.js';
|
||||||
import enums from '../enums.js';
|
import enums from '../enums.js';
|
||||||
|
|
||||||
|
|
|
@ -31,8 +31,6 @@
|
||||||
* @module packet/secret_key
|
* @module packet/secret_key
|
||||||
*/
|
*/
|
||||||
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
import publicKey from './public_key.js';
|
import publicKey from './public_key.js';
|
||||||
import enums from '../enums.js';
|
import enums from '../enums.js';
|
||||||
import util from '../util.js';
|
import util from '../util.js';
|
||||||
|
|
|
@ -21,8 +21,6 @@
|
||||||
* @module packet/secret_subkey
|
* @module packet/secret_subkey
|
||||||
*/
|
*/
|
||||||
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
import secretKey from './secret_key.js';
|
import secretKey from './secret_key.js';
|
||||||
import enums from '../enums.js';
|
import enums from '../enums.js';
|
||||||
|
|
||||||
|
|
|
@ -20,8 +20,6 @@
|
||||||
* {@link https://tools.ietf.org/html/draft-ford-openpgp-format-00#section-2.1}: AEAD Protected Data Packet
|
* {@link https://tools.ietf.org/html/draft-ford-openpgp-format-00#section-2.1}: AEAD Protected Data Packet
|
||||||
*/
|
*/
|
||||||
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
import util from '../util.js';
|
import util from '../util.js';
|
||||||
import crypto from '../crypto';
|
import crypto from '../crypto';
|
||||||
import enums from '../enums.js';
|
import enums from '../enums.js';
|
||||||
|
|
|
@ -32,8 +32,6 @@
|
||||||
* @module packet/sym_encrypted_integrity_protected
|
* @module packet/sym_encrypted_integrity_protected
|
||||||
*/
|
*/
|
||||||
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
import asmCrypto from 'asmcrypto-lite';
|
import asmCrypto from 'asmcrypto-lite';
|
||||||
import util from '../util.js';
|
import util from '../util.js';
|
||||||
import crypto from '../crypto';
|
import crypto from '../crypto';
|
||||||
|
|
|
@ -36,8 +36,6 @@
|
||||||
* @module packet/sym_encrypted_session_key
|
* @module packet/sym_encrypted_session_key
|
||||||
*/
|
*/
|
||||||
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
import util from '../util.js';
|
import util from '../util.js';
|
||||||
import type_s2k from '../type/s2k.js';
|
import type_s2k from '../type/s2k.js';
|
||||||
import enums from '../enums.js';
|
import enums from '../enums.js';
|
||||||
|
|
|
@ -28,8 +28,6 @@
|
||||||
* @module packet/symmetrically_encrypted
|
* @module packet/symmetrically_encrypted
|
||||||
*/
|
*/
|
||||||
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
import crypto from '../crypto';
|
import crypto from '../crypto';
|
||||||
import enums from '../enums.js';
|
import enums from '../enums.js';
|
||||||
import config from '../config';
|
import config from '../config';
|
||||||
|
|
|
@ -3,8 +3,6 @@
|
||||||
* @module packet/trust
|
* @module packet/trust
|
||||||
*/
|
*/
|
||||||
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
import enums from '../enums.js';
|
import enums from '../enums.js';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -36,8 +36,6 @@
|
||||||
* @module packet/user_attribute
|
* @module packet/user_attribute
|
||||||
*/
|
*/
|
||||||
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
import util from '../util.js';
|
import util from '../util.js';
|
||||||
import packet from './packet.js';
|
import packet from './packet.js';
|
||||||
import enums from '../enums.js';
|
import enums from '../enums.js';
|
||||||
|
|
|
@ -28,8 +28,6 @@
|
||||||
* @module packet/userid
|
* @module packet/userid
|
||||||
*/
|
*/
|
||||||
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
import util from '../util.js';
|
import util from '../util.js';
|
||||||
import enums from '../enums.js';
|
import enums from '../enums.js';
|
||||||
|
|
||||||
|
|
|
@ -24,8 +24,6 @@
|
||||||
* @module signature
|
* @module signature
|
||||||
*/
|
*/
|
||||||
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
import packet from './packet';
|
import packet from './packet';
|
||||||
import enums from './enums.js';
|
import enums from './enums.js';
|
||||||
import armor from './encoding/armor.js';
|
import armor from './encoding/armor.js';
|
||||||
|
|
|
@ -22,8 +22,6 @@
|
||||||
* @module type/ecdh_symkey
|
* @module type/ecdh_symkey
|
||||||
*/
|
*/
|
||||||
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
import util from '../util';
|
import util from '../util';
|
||||||
|
|
||||||
module.exports = ECDHSymmetricKey;
|
module.exports = ECDHSymmetricKey;
|
||||||
|
|
|
@ -22,8 +22,6 @@
|
||||||
* @module type/kdf_params
|
* @module type/kdf_params
|
||||||
*/
|
*/
|
||||||
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
import enums from '../enums.js';
|
import enums from '../enums.js';
|
||||||
|
|
||||||
module.exports = KDFParams;
|
module.exports = KDFParams;
|
||||||
|
|
|
@ -26,8 +26,6 @@
|
||||||
* @module type/keyid
|
* @module type/keyid
|
||||||
*/
|
*/
|
||||||
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
import util from '../util.js';
|
import util from '../util.js';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -34,8 +34,6 @@
|
||||||
* @module type/mpi
|
* @module type/mpi
|
||||||
*/
|
*/
|
||||||
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
import BigInteger from '../crypto/public_key/jsbn';
|
import BigInteger from '../crypto/public_key/jsbn';
|
||||||
import util from '../util';
|
import util from '../util';
|
||||||
|
|
||||||
|
|
|
@ -23,8 +23,6 @@
|
||||||
* @module type/oid
|
* @module type/oid
|
||||||
*/
|
*/
|
||||||
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
import util from '../util.js';
|
import util from '../util.js';
|
||||||
|
|
||||||
module.exports = OID;
|
module.exports = OID;
|
||||||
|
|
|
@ -29,8 +29,6 @@
|
||||||
* @module type/s2k
|
* @module type/s2k
|
||||||
*/
|
*/
|
||||||
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
import enums from '../enums.js';
|
import enums from '../enums.js';
|
||||||
import util from '../util.js';
|
import util from '../util.js';
|
||||||
import crypto from '../crypto';
|
import crypto from '../crypto';
|
||||||
|
|
|
@ -21,8 +21,6 @@
|
||||||
* @module util
|
* @module util
|
||||||
*/
|
*/
|
||||||
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
import config from './config';
|
import config from './config';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
|
|
|
@ -15,8 +15,6 @@
|
||||||
// License along with this library; if not, write to the Free Software
|
// License along with this library; if not, write to the Free Software
|
||||||
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||||
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
import util from '../util.js';
|
import util from '../util.js';
|
||||||
import crypto from '../crypto';
|
import crypto from '../crypto';
|
||||||
import packet from '../packet';
|
import packet from '../packet';
|
||||||
|
|
|
@ -1,5 +1,3 @@
|
||||||
'use strict';
|
|
||||||
|
|
||||||
var openpgp = typeof window !== 'undefined' && window.openpgp ? window.openpgp : require('../../dist/openpgp');
|
var openpgp = typeof window !== 'undefined' && window.openpgp ? window.openpgp : require('../../dist/openpgp');
|
||||||
|
|
||||||
var expect = require('chai').expect;
|
var expect = require('chai').expect;
|
||||||
|
|
|
@ -1,5 +1,3 @@
|
||||||
'use strict';
|
|
||||||
|
|
||||||
var openpgp = typeof window != 'undefined' && window.openpgp ? window.openpgp : require('../../../dist/openpgp');
|
var openpgp = typeof window != 'undefined' && window.openpgp ? window.openpgp : require('../../../dist/openpgp');
|
||||||
|
|
||||||
var util = openpgp.util,
|
var util = openpgp.util,
|
||||||
|
|
|
@ -1,5 +1,3 @@
|
||||||
'use strict';
|
|
||||||
|
|
||||||
var openpgp = typeof window != 'undefined' && window.openpgp ? window.openpgp : require('../../../dist/openpgp');
|
var openpgp = typeof window != 'undefined' && window.openpgp ? window.openpgp : require('../../../dist/openpgp');
|
||||||
|
|
||||||
var util = openpgp.util,
|
var util = openpgp.util,
|
||||||
|
|
|
@ -1,5 +1,3 @@
|
||||||
'use strict';
|
|
||||||
|
|
||||||
var openpgp = typeof window != 'undefined' && window.openpgp ? window.openpgp : require('../../../dist/openpgp');
|
var openpgp = typeof window != 'undefined' && window.openpgp ? window.openpgp : require('../../../dist/openpgp');
|
||||||
|
|
||||||
var util = openpgp.util,
|
var util = openpgp.util,
|
||||||
|
|
|
@ -1,5 +1,3 @@
|
||||||
'use strict';
|
|
||||||
|
|
||||||
var openpgp = typeof window != 'undefined' && window.openpgp ? window.openpgp : require('../../../dist/openpgp');
|
var openpgp = typeof window != 'undefined' && window.openpgp ? window.openpgp : require('../../../dist/openpgp');
|
||||||
|
|
||||||
var util = openpgp.util,
|
var util = openpgp.util,
|
||||||
|
|
|
@ -1,5 +1,3 @@
|
||||||
'use strict';
|
|
||||||
|
|
||||||
var openpgp = typeof window != 'undefined' && window.openpgp ? window.openpgp : require('../../../dist/openpgp');
|
var openpgp = typeof window != 'undefined' && window.openpgp ? window.openpgp : require('../../../dist/openpgp');
|
||||||
|
|
||||||
var util = openpgp.util,
|
var util = openpgp.util,
|
||||||
|
|
|
@ -1,5 +1,3 @@
|
||||||
'use strict';
|
|
||||||
|
|
||||||
var openpgp = typeof window !== 'undefined' && window.openpgp ? window.openpgp : require('../../dist/openpgp');
|
var openpgp = typeof window !== 'undefined' && window.openpgp ? window.openpgp : require('../../dist/openpgp');
|
||||||
|
|
||||||
var chai = require('chai');
|
var chai = require('chai');
|
||||||
|
|
|
@ -1,5 +1,3 @@
|
||||||
'use strict';
|
|
||||||
|
|
||||||
var openpgp = typeof window !== 'undefined' && window.openpgp ? window.openpgp : require('../../dist/openpgp');
|
var openpgp = typeof window !== 'undefined' && window.openpgp ? window.openpgp : require('../../dist/openpgp');
|
||||||
|
|
||||||
var chai = require('chai');
|
var chai = require('chai');
|
||||||
|
|
|
@ -1,5 +1,3 @@
|
||||||
'use strict';
|
|
||||||
|
|
||||||
var openpgp = typeof window != 'undefined' && window.openpgp ? window.openpgp : require('../../../dist/openpgp');
|
var openpgp = typeof window != 'undefined' && window.openpgp ? window.openpgp : require('../../../dist/openpgp');
|
||||||
|
|
||||||
var util = openpgp.util,
|
var util = openpgp.util,
|
||||||
|
|
|
@ -1,5 +1,3 @@
|
||||||
'use strict';
|
|
||||||
|
|
||||||
var openpgp = typeof window != 'undefined' && window.openpgp ? window.openpgp : require('../../../dist/openpgp');
|
var openpgp = typeof window != 'undefined' && window.openpgp ? window.openpgp : require('../../../dist/openpgp');
|
||||||
|
|
||||||
var util = openpgp.util,
|
var util = openpgp.util,
|
||||||
|
|
|
@ -1,5 +1,3 @@
|
||||||
'use strict';
|
|
||||||
|
|
||||||
var openpgp = typeof window != 'undefined' && window.openpgp ? window.openpgp : require('../../../dist/openpgp');
|
var openpgp = typeof window != 'undefined' && window.openpgp ? window.openpgp : require('../../../dist/openpgp');
|
||||||
|
|
||||||
var util = openpgp.util,
|
var util = openpgp.util,
|
||||||
|
|
|
@ -1,5 +1,3 @@
|
||||||
'use strict';
|
|
||||||
|
|
||||||
var openpgp = typeof window !== 'undefined' && window.openpgp ? window.openpgp : require('../../dist/openpgp');
|
var openpgp = typeof window !== 'undefined' && window.openpgp ? window.openpgp : require('../../dist/openpgp');
|
||||||
|
|
||||||
var expect = require('chai').expect;
|
var expect = require('chai').expect;
|
||||||
|
|
|
@ -1,5 +1,3 @@
|
||||||
'use strict';
|
|
||||||
|
|
||||||
var openpgp = typeof window !== 'undefined' && window.openpgp ? window.openpgp : require('../../dist/openpgp');
|
var openpgp = typeof window !== 'undefined' && window.openpgp ? window.openpgp : require('../../dist/openpgp');
|
||||||
|
|
||||||
var chai = require('chai'),
|
var chai = require('chai'),
|
||||||
|
|
|
@ -1,5 +1,3 @@
|
||||||
'use strict';
|
|
||||||
|
|
||||||
var openpgp = typeof window != 'undefined' && window.openpgp ? window.openpgp : require('../../dist/openpgp');
|
var openpgp = typeof window != 'undefined' && window.openpgp ? window.openpgp : require('../../dist/openpgp');
|
||||||
|
|
||||||
var chai = require('chai'),
|
var chai = require('chai'),
|
||||||
|
|
|
@ -1,5 +1,3 @@
|
||||||
'use strict';
|
|
||||||
|
|
||||||
var openpgp = typeof window !== 'undefined' && window.openpgp ? window.openpgp : require('../../dist/openpgp');
|
var openpgp = typeof window !== 'undefined' && window.openpgp ? window.openpgp : require('../../dist/openpgp');
|
||||||
|
|
||||||
var chai = require('chai');
|
var chai = require('chai');
|
||||||
|
|
|
@ -1,5 +1,3 @@
|
||||||
'use strict';
|
|
||||||
|
|
||||||
var openpgp = typeof window !== 'undefined' && window.openpgp ? window.openpgp : require('../../dist/openpgp');
|
var openpgp = typeof window !== 'undefined' && window.openpgp ? window.openpgp : require('../../dist/openpgp');
|
||||||
|
|
||||||
var chai = require('chai'),
|
var chai = require('chai'),
|
||||||
|
|
|
@ -1,5 +1,3 @@
|
||||||
'use strict';
|
|
||||||
|
|
||||||
var openpgp = typeof window !== 'undefined' && window.openpgp ? window.openpgp : require('../../dist/openpgp');
|
var openpgp = typeof window !== 'undefined' && window.openpgp ? window.openpgp : require('../../dist/openpgp');
|
||||||
|
|
||||||
var chai = require('chai');
|
var chai = require('chai');
|
||||||
|
|
|
@ -1,5 +1,3 @@
|
||||||
'use strict';
|
|
||||||
|
|
||||||
var openpgp = typeof window != 'undefined' && window.openpgp ? window.openpgp : require('../../dist/openpgp');
|
var openpgp = typeof window != 'undefined' && window.openpgp ? window.openpgp : require('../../dist/openpgp');
|
||||||
|
|
||||||
var keyring = new openpgp.Keyring(),
|
var keyring = new openpgp.Keyring(),
|
||||||
|
|
|
@ -1,5 +1,3 @@
|
||||||
'use strict';
|
|
||||||
|
|
||||||
var openpgp = typeof window !== 'undefined' && window.openpgp ? window.openpgp : require('../../dist/openpgp');
|
var openpgp = typeof window !== 'undefined' && window.openpgp ? window.openpgp : require('../../dist/openpgp');
|
||||||
|
|
||||||
var expect = require('chai').expect;
|
var expect = require('chai').expect;
|
||||||
|
|
|
@ -1,7 +1,5 @@
|
||||||
/* globals tryTests: true */
|
/* globals tryTests: true */
|
||||||
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
var openpgp = typeof window !== 'undefined' && window.openpgp ? window.openpgp : require('../../dist/openpgp');
|
var openpgp = typeof window !== 'undefined' && window.openpgp ? window.openpgp : require('../../dist/openpgp');
|
||||||
|
|
||||||
var sinon = require('sinon'),
|
var sinon = require('sinon'),
|
||||||
|
|
|
@ -1,5 +1,3 @@
|
||||||
'use strict';
|
|
||||||
|
|
||||||
var openpgp = typeof window !== 'undefined' && window.openpgp ? window.openpgp : require('../../dist/openpgp');
|
var openpgp = typeof window !== 'undefined' && window.openpgp ? window.openpgp : require('../../dist/openpgp');
|
||||||
|
|
||||||
var chai = require('chai');
|
var chai = require('chai');
|
||||||
|
|
|
@ -1,5 +1,3 @@
|
||||||
'use strict';
|
|
||||||
|
|
||||||
var openpgp = typeof window !== 'undefined' && window.openpgp ? window.openpgp : require('../../dist/openpgp');
|
var openpgp = typeof window !== 'undefined' && window.openpgp ? window.openpgp : require('../../dist/openpgp');
|
||||||
|
|
||||||
var chai = require('chai');
|
var chai = require('chai');
|
||||||
|
|
|
@ -1,5 +1,3 @@
|
||||||
'use strict';
|
|
||||||
|
|
||||||
var openpgp = typeof window !== 'undefined' && window.openpgp ? window.openpgp : require('../../dist/openpgp');
|
var openpgp = typeof window !== 'undefined' && window.openpgp ? window.openpgp : require('../../dist/openpgp');
|
||||||
|
|
||||||
var chai = require('chai'),
|
var chai = require('chai'),
|
||||||
|
|
|
@ -1,5 +1,3 @@
|
||||||
'use strict';
|
|
||||||
|
|
||||||
var openpgp = typeof window !== 'undefined' && window.openpgp ? window.openpgp : require('../../dist/openpgp');
|
var openpgp = typeof window !== 'undefined' && window.openpgp ? window.openpgp : require('../../dist/openpgp');
|
||||||
var elliptic = openpgp.crypto.publicKey.elliptic;
|
var elliptic = openpgp.crypto.publicKey.elliptic;
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,5 @@
|
||||||
/* globals tryTests: true */
|
/* globals tryTests: true */
|
||||||
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
var openpgp = typeof window !== 'undefined' && window.openpgp ? window.openpgp : require('../../dist/openpgp');
|
var openpgp = typeof window !== 'undefined' && window.openpgp ? window.openpgp : require('../../dist/openpgp');
|
||||||
|
|
||||||
var chai = require('chai'),
|
var chai = require('chai'),
|
||||||
|
|
Loading…
Reference in New Issue
Block a user