org.bouncycastle.openpgp.operator
Class GnuDivertToCardSecretKeyEncryptor
java.lang.Object
org.bouncycastle.openpgp.operator.PBESecretKeyEncryptor
org.bouncycastle.openpgp.operator.GnuDivertToCardSecretKeyEncryptor
- public class GnuDivertToCardSecretKeyEncryptor
- extends PBESecretKeyEncryptor
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".
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GnuDivertToCardSecretKeyEncryptor
public GnuDivertToCardSecretKeyEncryptor(PGPDigestCalculator s2kDigestCalculator,
byte[] serial)
encryptKeyData
public byte[] encryptKeyData(byte[] key,
byte[] keyData,
int keyOff,
int keyLen)
throws PGPException
- Specified by:
encryptKeyData in class PBESecretKeyEncryptor
- Throws:
PGPException
getKey
public byte[] getKey()
throws PGPException
- Overrides:
getKey in class PBESecretKeyEncryptor
- Throws:
PGPException
getCipherIV
public byte[] getCipherIV()
- Specified by:
getCipherIV in class PBESecretKeyEncryptor