| Package | Description |
|---|---|
| com.cosmian.jna.covercrypt | |
| com.cosmian.jna.covercrypt.structs | |
| com.cosmian.rest.abe |
| Modifier and Type | Method and Description |
|---|---|
static int |
CoverCrypt.createEncryptionCache(Policy policy,
byte[] publicKeyBytes)
Create an encryption cache that can be used with
CoverCrypt.encryptHeaderUsingCache(int, String). |
static byte[] |
CoverCrypt.encrypt(Policy policy,
byte[] publicKeyBytes,
String encryptionPolicy,
byte[] plaintext,
Optional<byte[]> authenticationData,
Optional<byte[]> headerMetadata)
Generate an hybrid encryption of a plaintext.
|
static EncryptedHeader |
CoverCrypt.encryptHeader(Policy policy,
byte[] publicKeyBytes,
String encryptionPolicy)
Generate an hybrid encryption header.
|
static EncryptedHeader |
CoverCrypt.encryptHeader(Policy policy,
byte[] publicKeyBytes,
String encryptionPolicy,
byte[] headerMetadata)
Generate an hybrid encryption header.
|
static EncryptedHeader |
CoverCrypt.encryptHeader(Policy policy,
byte[] publicKeyBytes,
String encryptionPolicy,
byte[] headerMetadata,
byte[] authenticationData)
Generate an hybrid encryption header.
|
static MasterKeys |
CoverCrypt.generateMasterKeys(Policy policy)
Generate the master private and public keys using the ABE policy
|
static byte[] |
CoverCrypt.generateUserPrivateKey(byte[] masterPrivateKey,
String userPolicy,
Policy policy)
Generate the user private key.
|
| Modifier and Type | Method and Description |
|---|---|
static Policy |
Policy.fromAttributes(Attributes attributes)
Extract the policy from the Key Attributes
|
| Modifier and Type | Method and Description |
|---|---|
String[] |
KmsClient.createCoverCryptMasterKeyPair(Policy policy)
Generate inside the KMS, a master private and public key pair for the
Policy |
Copyright © 2023. All rights reserved.