| Package | Description |
|---|---|
| com.cosmian.jna.covercrypt | |
| com.cosmian.rest.abe | |
| com.cosmian.rest.kmip.objects |
| Modifier and Type | Method and Description |
|---|---|
int |
CoverCrypt.createDecryptionCache(PrivateKey userDecryptionKey)
Create an decryption cache that can be used with
CoverCrypt.decryptHeaderUsingCache(int, byte[]) Use of the cache
speeds up decryption of the header WARN: the cache MUST be destroyed after use with
CoverCrypt.destroyDecryptionCache(int) |
DecryptedHeader |
CoverCrypt.decryptHeader(PrivateKey userDecryptionKey,
byte[] encryptedHeaderBytes)
Decrypt a hybrid header, recovering the symmetric key
|
DecryptedHeader |
CoverCrypt.decryptHeader(PrivateKey userDecryptionKey,
byte[] encryptedHeaderBytes,
int additionalDataLen,
Optional<byte[]> authenticationData)
Decrypt a hybrid header, recovering the symmetric key, and optionally, the resource UID and additional data
|
| Modifier and Type | Method and Description |
|---|---|
PrivateKey |
KmsClient.retrieveCoverCryptPrivateMasterKey(String privateMasterKeyUniqueIdentifier)
Retrieve the Master Private Key from the KMS
|
PrivateKey |
KmsClient.retrieveCoverCryptUserDecryptionKey(String userDecryptionKeyUniqueIdentifier)
Retrieve a User Decryption Key from the KMS
|
| Modifier and Type | Method and Description |
|---|---|
String |
KmsClient.importCoverCryptPrivateMasterKey(String uniqueIdentifier,
PrivateKey privateMasterKey,
boolean replaceExisting)
Import a Private Master Key in the KMS
|
String |
KmsClient.importCoverCryptUserDecryptionKey(String uniqueIdentifier,
PrivateKey userDecryptionKey,
boolean replaceExisting)
Import a User Decryption Key in the KMS
|
| Modifier and Type | Method and Description |
|---|---|
static PrivateKey |
PrivateKey.fromJson(String json)
Deserialize an instance from its Json representation obtained using toJson()
|
PrivateKey |
PrivateKey.keyBlock(KeyBlock keyBlock) |
Copyright © 2022. All rights reserved.