diff --git a/src/index.js b/src/index.js index 977db10b..75b320a8 100644 --- a/src/index.js +++ b/src/index.js @@ -11,7 +11,7 @@ export { generateSessionKey, encryptSessionKey, decryptSessionKeys } from './openpgp'; -export { PrivateKey, PublicKey, readKey, readKeys, readPrivateKey, readPrivateKeys } from './key'; +export { PrivateKey, PublicKey, Subkey, readKey, readKeys, readPrivateKey, readPrivateKeys } from './key'; export { Signature, readSignature } from './signature'; diff --git a/src/key/index.js b/src/key/index.js index a77d5d79..a7758294 100644 --- a/src/key/index.js +++ b/src/key/index.js @@ -16,6 +16,7 @@ import { import PrivateKey from './private_key.js'; import PublicKey from './public_key.js'; +import Subkey from './subkey.js'; export { readKey, @@ -29,5 +30,6 @@ export { getPreferredHashAlgo, createSignaturePacket, PrivateKey, - PublicKey + PublicKey, + Subkey };