Class GnuDivertToCardSecretKeyEncryptor
java.lang.Object
org.bouncycastle.openpgp.operator.PBESecretKeyEncryptor
org.bouncycastle.openpgp.operator.GnuDivertToCardSecretKeyEncryptor
Secret key encryptor that allows to represent a secret key embedded
on a smartcard, using GNU S2K extensions.
This extension is documented on GnuPG documentation DETAILS file, section "GNU extensions to the S2K algorithm".
-
Field Summary
Fields inherited from class org.bouncycastle.openpgp.operator.PBESecretKeyEncryptor
aeadAlgorithm, encAlgorithm, passPhrase, random, s2k, s2kCount, s2kDigestCalculator -
Constructor Summary
ConstructorsConstructorDescriptionGnuDivertToCardSecretKeyEncryptor(PGPDigestCalculator s2kDigestCalculator, byte[] serial) -
Method Summary
Modifier and TypeMethodDescriptionbyte[]encryptKeyData(byte[] key, byte[] keyData, int keyOff, int keyLen) byte[]byte[]getKey()Methods inherited from class org.bouncycastle.openpgp.operator.PBESecretKeyEncryptor
encryptKeyData, encryptKeyData, getAeadAlgorithm, getAlgorithm, getHashAlgorithm, getS2K
-
Constructor Details
-
GnuDivertToCardSecretKeyEncryptor
-
-
Method Details
-
encryptKeyData
public byte[] encryptKeyData(byte[] key, byte[] keyData, int keyOff, int keyLen) throws PGPException - Specified by:
encryptKeyDatain classPBESecretKeyEncryptor- Throws:
PGPException
-
getKey
- Overrides:
getKeyin classPBESecretKeyEncryptor- Throws:
PGPException
-
getCipherIV
public byte[] getCipherIV()- Specified by:
getCipherIVin classPBESecretKeyEncryptor
-