armor.sys.mjs |
Locates offsets bracketing PGP armored block in text,
starting from given offset, and returns block type string.
@param text: String - ASCII armored text
@param offset: Number - offset to start looking for block
@param indentStr: String - prefix that is used for all lines (such as "> ")
@param beginIndexObj: Object - o.value will contain offset of first character of block
@param endIndexObj: Object - o.value will contain offset of last character of block (newline)
@param indentStrObj: Object - o.value will contain indent of 1st line
@returns String - type of block found (e.g. MESSAGE, PUBLIC KEY)
If no block is found, an empty String is returned;
|
9357 |
CollectedKeysDB.sys.mjs |
Database of collected OpenPGP keys.
|
10950 |
constants.sys.mjs |
taken over from old nsIEnigmail |
5284 |
core.sys.mjs |
Initialize the main parts of Enigmail
|
2320 |
cryptoAPI |
|
|
cryptoAPI.sys.mjs |
|
761 |
data.sys.mjs |
Encode a string in base64, with a max. line length of 72 characters
|
942 |
decryption.sys.mjs |
eslint-disable complexity |
17613 |
dialog.sys.mjs |
Displays a dialog with success/failure information after importing
keys.
@param win: nsIWindow - parent window to display modal dialog; can be null
@param keyList: Array of String - imported keyIDs
@return: 0-2: button Number pressed
-1: ESC or close window button pressed
|
2164 |
encryption.sys.mjs |
|
13017 |
filters.sys.mjs |
filter action for creating a decrypted version of the mail and
deleting the original mail at the same time
|
15703 |
filtersWrapper.sys.mjs |
filter action for creating a decrypted version of the mail and
deleting the original mail at the same time
|
4434 |
fixExchangeMsg.sys.mjs |
Fix a broken message from MS-Exchange and replace it with the original message
@param {nsIMsgDBHdr} hdr - Header of the message to fix (= pointer to message)
@param {string} brokenByApp - Type of app that created the message. Currently one of
exchange, iPGMail
@param {string} [destFolderUri] optional destination Folder URI
@return {nsMsgKey} upon success, the promise returns the messageKey
|
13012 |
funcs.sys.mjs |
Common Enigmail crypto-related GUI functionality
|
15095 |
GPGME.sys.mjs |
High level interface to retrieve public keys from GnuPG that
contain a user ID that matches the given email address.
@param {string} email - The email address to search for.
@returns {Map} - a Map that contains ASCII armored key blocks
indexed by fingerprint.
|
10055 |
GPGMELib.sys.mjs |
|
14699 |
key.sys.mjs |
eslint-enable valid-jsdoc |
9025 |
keyLookupHelper.sys.mjs |
Internal helper function, search for keys by either keyID
or email address on a keyserver.
Returns additional flags regarding lookup and import.
Will never show feedback prompts.
@param {string} mode - "interactive-import" or "silent-collection"
In interactive-import mode, the user will be asked to confirm
import of keys into the permanent keyring.
In silent-collection mode, only updates to existing keys will
be imported. New keys will only be added to CollectedKeysDB.
@param {nsIWindow} window - parent window
@param {string} identifier - search value, either key ID or fingerprint or email address.
@returns {object} flags
@returns {boolean} flags.keyImported - At least one key was imported.
@returns {boolean} flags.foundUpdated - At least one update for a local existing key was found and imported.
@returns {boolean} flags.foundUnchanged - All found keys are identical to already existing local keys.
@returns {boolean} flags.collectedForLater - At least one key was added to CollectedKeysDB.
|
13291 |
keyObj.sys.mjs |
This module implements the EnigmailKeyObj class with the following members:
- keyId - 16 digits (8-byte) public key ID (/not/ preceded with 0x)
- userId - main user ID
- fpr - fingerprint
- fprFormatted - a formatted version of the fingerprint following the scheme .... .... ....
- expiry - Expiry date as printable string
- expiryTime - Expiry time as seconds after 01/01/1970
- created - Key creation date as printable string
- keyCreated - Key creation date/time as number
- keyTrust - key trust code as provided by GnuPG (calculated key validity)
- keyUseFor - key usage type as provided by GnuPG (key capabilities)
- ownerTrust - owner trust as provided by GnuPG
- photoAvailable - [Boolean] true if photo is available
- secretAvailable - [Boolean] true if secret key is available
- algoSym - public key algorithm type (String, e.g. RSA)
- keySize - size of public key
- type - "pub" or "grp"
- userIds - [Array]: - Contains ALL UIDs (including the primary UID)
userId - User ID
keyTrust - trust level of user ID
uidFpr - fingerprint of the user ID
type - one of "uid" (regular user ID), "uat" (photo)
uatNum - photo number (starting with 0 for each key)
- subKeys - [Array]:
keyId - subkey ID (16 digits (8-byte))
expiry - Expiry date as printable string
expiryTime - Expiry time as seconds after 01/01/1970
created - Subkey creation date as printable string
keyCreated - Subkey creation date/time as number
keyTrust - key trust code as provided by GnuPG
keyUseFor - key usage type as provided by GnuPG
algoSym - subkey algorithm type (String, e.g. RSA)
keySize - subkey size
type - "sub"
- methods:
hasSubUserIds
getKeyExpiry
getEncryptionValidity
getSigningValidity
getPubKeyValidity
clone
getMinimalPubKey
getVirtualKeySize
|
18966 |
keyRing.sys.mjs |
This module operates with a Key Store (array) containing objects with the following properties:
keyList [Array] of EnigmailKeyObj
keySortList [Array]: used for quickly sorting the keys
- userId (in lower case)
- keyId
- keyNum
trustModel: [String]. One of:
- p: pgp/classical
- t: always trust
- a: auto (:0) (default, currently pgp/classical)
- T: TOFU
- TP: TOFU+PGP
|
61280 |
keyserver.sys.mjs |
KeySrvListener API
Object implementing:
- onProgress: function(percentComplete) [only implemented for download()]
- onCancel: function() - the body will be set by the callee
|
46273 |
keyserverUris.sys.mjs |
|
923 |
log.sys.mjs |
Log an exception including the stack trace
referenceInfo: String - arbitrary text to write before the exception is logged
ex: exception object
|
3301 |
masterpass.sys.mjs |
|
10364 |
mime.sys.mjs |
create a string of random characters suitable to use for a boundary in a
MIME message following RFC 2045
@return: string to use as MIME boundary
@see {MimeMultiPart._makePartSeparator}
|
7910 |
mimeDecrypt.sys.mjs |
Module for handling PGP/MIME encrypted messages.
|
26168 |
mimeEncrypt.sys.mjs |
Module for creating PGP/MIME signed and/or encrypted messages
implemented as XPCOM component
|
20842 |
MimeTree.sys.mjs |
@typedef {object} MimeTreePart - A mime part generated by jsmime using the
MimeTreeEmitter.
@property {string} partNum
@property {Map} headers - A Map, containing all headers. Special headers for
contentType and charset.
@property {integer} size - Size of this part, including all subparts.
@property {string} body - Body
@property {string} [name] - The name, if this part is an attachment.
@property {boolean} [isAttachment] - The part is an attachment.
@property {MimeTreePart[]} subParts - Array of MimeTreePart with sub parts
|
36261 |
mimeVerify.sys.mjs |
Module for handling PGP/MIME signed messages.
|
18087 |
msgRead.sys.mjs |
eslint-enable valid-jsdoc |
6843 |
OpenPGPAlias.sys.mjs |
|
4483 |
persistentCrypto.sys.mjs |
cryptMessage
Decrypts a message and copy it to a folder. If targetKey is
not null, it encrypts a message to the target key afterwards.
@param {nsIMsgDBHdr} hdr - message to process
@param {string} destFolder - target folder URI
@param {boolean} move - true for move, false for copy
@param {KeyObject} targetKey - target key if encryption is requested
@returns {nsMsgKey} Message key of the new message
|
11682 |
RNP.sys.mjs |
Opens a prompt, asking the user to enter passphrase for given key id.
@param {?nsIWindow} win - Parent window, may be null
@param {string} promptString - This message will be shown to the user
@param {object} resultFlags - Attribute .canceled is set to true
if the user clicked cancel, other it's set to false.
@returns {string} - The passphrase the user entered
|
152998 |
RNPLib.sys.mjs |
|
52729 |
singletons.sys.mjs |
Remember the given uri in our list of recently seen uris that
contain a nested signed part.
@param {string} uri - The URI spec to remember.
|
2202 |
sqliteDb.sys.mjs |
Module that provides generic functions for the Enigmail SQLite database
|
12882 |
streams.sys.mjs |
Create a new channel from a URL or URI.
@param url: String, nsIURI or nsIFile - URL specification
@return: channel
|
4216 |
trust.sys.mjs |
@returns {string} string containing the order of trust/validity values
|
2974 |
uris.sys.mjs |
remember the fact a URI is encrypted
@param String msgUri
@return null
|
3506 |
windows.sys.mjs |
Open a window, or focus it if it is already open
@winName : String - name of the window; used to identify if it is already open
@spec : String - window URL (e.g. chrome://openpgp/content/ui/test.xhtml)
@winOptions: String - window options as defined in nsIWindow.open
@optObj : any - an Object, Array, String, etc. that is passed as parameter
to the window
|
12878 |
wkdLookup.sys.mjs |
Lookup keys by email addresses using WKD. A an email address is lookep up at most
once a day. (see https://tools.ietf.org/html/draft-koch-openpgp-webkey-service)
|
7445 |
zbase32.sys.mjs |
eslint no-invalid-this: 0 |
2297 |