mirror of
https://github.com/openpgpjs/openpgpjs.git
synced 2026-03-19 22:58:38 +00:00
To make sure only user-facing entities are included in the docs, since access is public by default. NB: the top-level access directive seems to work to hide index entrypoint files, but in other cases (e.g. s2k submodules), exported functions may need to manually be marked as private. Also, the 'initialCommentsOnly' rule sometimes reports false positives in case of multiple comment blocks separated by new lines. The solution is to remove the new lines.
30 lines
827 B
JavaScript
30 lines
827 B
JavaScript
/**
|
|
* @access public
|
|
* Export high level API functions.
|
|
* Usage:
|
|
*
|
|
* import { encrypt } from 'openpgp';
|
|
* encrypt({ message, publicKeys });
|
|
*/
|
|
export {
|
|
encrypt, decrypt, sign, verify,
|
|
generateKey, reformatKey, revokeKey, decryptKey, encryptKey,
|
|
generateSessionKey, encryptSessionKey, decryptSessionKeys
|
|
} from './openpgp';
|
|
|
|
export { PrivateKey, PublicKey, Subkey, readKey, readKeys, readPrivateKey, readPrivateKeys } from './key';
|
|
|
|
export { Signature, readSignature } from './signature';
|
|
|
|
export { Message, readMessage, createMessage } from './message';
|
|
|
|
export { CleartextMessage, readCleartextMessage, createCleartextMessage } from './cleartext';
|
|
|
|
export * from './packet';
|
|
|
|
export * from './encoding/armor';
|
|
|
|
export { default as enums } from './enums';
|
|
|
|
export { default as config } from './config/config';
|