| Modifier and Type | Field and Description |
|---|---|
| private byte[] | |
| private Map | |
| private JcaJceExtHelper | |
| private AlgorithmIdentifier | |
| private final int | |
| private final KemEncapsulationLengthProvider | |
| private PublicKey | |
| private SecureRandom | |
| private final AlgorithmIdentifier |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public byte[] | generateWrappedKey(GenericKey encryptionKey)
Implements org.
|
| public byte[] | |
| public AlgorithmIdentifier | getKdfAlgorithmIdentifier()
Implements abstract org.
|
| public int | |
| private int | |
| public AlgorithmIdentifier | getWrapAlgorithmIdentifier()
Implements abstract org.
|
| public JceCMSKEMKeyWrapper | Returns: the current Wrapper.OID of algorithm in recipient. algorithm, String JCE algorithm name to use. algorithmName)Internally algorithm ids are converted into cipher names using a lookup table. |
| public JceCMSKEMKeyWrapper | |
| public JceCMSKEMKeyWrapper | |
| public JceCMSKEMKeyWrapper | |
| public JceCMSKEMKeyWrapper |
| encapsulation | back to summary |
|---|---|
| private byte[] encapsulation | |
| extraMappings | back to summary |
|---|---|
| private Map<K, V> extraMappings | |
| helper | back to summary |
|---|---|
| private JcaJceExtHelper helper | |
| kdfAlgorithm | back to summary |
|---|---|
| private AlgorithmIdentifier kdfAlgorithm | |
| kekLength | back to summary |
|---|---|
| private final int kekLength | |
| kemEncLenProvider | back to summary |
|---|---|
| private final KemEncapsulationLengthProvider kemEncLenProvider | |
| publicKey | back to summary |
|---|---|
| private PublicKey publicKey | |
| random | back to summary |
|---|---|
| private SecureRandom random | |
| symWrapAlgorithm | back to summary |
|---|---|
| private final AlgorithmIdentifier symWrapAlgorithm | |
| JceCMSKEMKeyWrapper | back to summary |
|---|---|
| public JceCMSKEMKeyWrapper(PublicKey publicKey, ASN1ObjectIdentifier symWrapAlg) | |
| generateWrappedKey | back to summary |
|---|---|
| public byte[] generateWrappedKey(GenericKey encryptionKey) throws OperatorException Implements org. | |
| getEncapsulation | back to summary |
|---|---|
| public byte[] getEncapsulation() Implements abstract org. | |
| getKdfAlgorithmIdentifier | back to summary |
|---|---|
| public AlgorithmIdentifier getKdfAlgorithmIdentifier() Implements abstract org. | |
| getKekLength | back to summary |
|---|---|
| public int getKekLength() Implements abstract org. | |
| getKemEncLength | back to summary |
|---|---|
| private int getKemEncLength(PublicKey key) | |
| getWrapAlgorithmIdentifier | back to summary |
|---|---|
| public AlgorithmIdentifier getWrapAlgorithmIdentifier() Implements abstract org. | |
| setAlgorithmMapping | back to summary |
|---|---|
| public JceCMSKEMKeyWrapper setAlgorithmMapping(ASN1ObjectIdentifier algorithm, String algorithmName) Internally algorithm ids are converted into cipher names using a lookup table. For some providers the standard lookup table won't work. Use this method to establish a specific mapping from an algorithm identifier to a specific algorithm. For example:
unwrapper.setAlgorithmMapping(PKCSObjectIdentifiers.rsaEncryption, "RSA");
| |
| setKDF | back to summary |
|---|---|
| public JceCMSKEMKeyWrapper setKDF(AlgorithmIdentifier kdfAlgorithm) | |
| setProvider | back to summary |
|---|---|
| public JceCMSKEMKeyWrapper setProvider(Provider provider) | |
| setProvider | back to summary |
|---|---|
| public JceCMSKEMKeyWrapper setProvider(String providerName) | |
| setSecureRandom | back to summary |
|---|---|
| public JceCMSKEMKeyWrapper setSecureRandom(SecureRandom random) | |