Uses of Enum
com.amazonaws.encryptionsdk.CryptoAlgorithm
Packages that use CryptoAlgorithm
Package
Description
Contains
AwsCrypto
, the primary entry-point to the Aws
Encryption SDK.Contains the internal classes that handle the cryptographic defined by the message formats and
algorithms.
Contains logic necessary to create
MasterKey
s backed by AWS
KMS keys.Contains the classes that implement the defined message format for storing the encrypted content
and the data key.
-
Uses of CryptoAlgorithm in com.amazonaws.encryptionsdk
Methods in com.amazonaws.encryptionsdk that return CryptoAlgorithmModifier and TypeMethodDescriptionstatic CryptoAlgorithm
CryptoAlgorithm.deserialize(byte messageFormatVersion, short value)
Deprecated.CryptoResult.getCryptoAlgorithm()
Convenience method equivalent toCryptoResult.getHeaders()
.getCryptoAlgoId()
.AwsCrypto.getEncryptionAlgorithm()
static CryptoAlgorithm
Returns the enum constant of this type with the specified name.static CryptoAlgorithm[]
CryptoAlgorithm.values()
Returns an array containing the constants of this enum type, in the order they are declared.Methods in com.amazonaws.encryptionsdk with parameters of type CryptoAlgorithmModifier and TypeMethodDescriptionboolean
CommitmentPolicy.algorithmAllowedForDecrypt(CryptoAlgorithm algorithm)
boolean
CommitmentPolicy.algorithmAllowedForEncrypt(CryptoAlgorithm algorithm)
MasterKeyProvider.decryptDataKey(CryptoAlgorithm algorithm, Collection<? extends EncryptedDataKey> encryptedDataKeys, Map<String,String> encryptionContext)
Iterates throughencryptedDataKeys
and returns the first one which can be successfully decrypted.MasterKey.encryptDataKey(CryptoAlgorithm algorithm, Map<String,String> encryptionContext, DataKey<?> dataKey)
Returns a new copy of the provideddataKey
which is protected by thisMasterKey
for use withalgorithm
and associated with the providedencryptionContext
.MasterKey.generateDataKey(CryptoAlgorithm algorithm, Map<String,String> encryptionContext)
void
AwsCrypto.setEncryptionAlgorithm(CryptoAlgorithm alg)
Sets theCryptoAlgorithm
to use when encrypting data.AwsCrypto.Builder.withEncryptionAlgorithm(CryptoAlgorithm encryptionAlgorithm)
Sets theCryptoAlgorithm
to encrypt with. -
Uses of CryptoAlgorithm in com.amazonaws.encryptionsdk.internal
Methods in com.amazonaws.encryptionsdk.internal with parameters of type CryptoAlgorithmModifier and TypeMethodDescriptionabstract boolean
SignaturePolicy.algorithmAllowedForDecrypt(CryptoAlgorithm algorithm)
static TrailingSignatureAlgorithm
TrailingSignatureAlgorithm.forCryptoAlgorithm(CryptoAlgorithm algorithm)
static CommittedKey
CommittedKey.generate(CryptoAlgorithm alg, SecretKey dataKey, byte[] nonce)
Generates an encryption key along with associated commitment value. -
Uses of CryptoAlgorithm in com.amazonaws.encryptionsdk.jce
Methods in com.amazonaws.encryptionsdk.jce with parameters of type CryptoAlgorithmModifier and TypeMethodDescriptionJceMasterKey.decryptDataKey(CryptoAlgorithm algorithm, Collection<? extends EncryptedDataKey> encryptedDataKeys, Map<String,String> encryptionContext)
KeyStoreProvider.decryptDataKey(CryptoAlgorithm algorithm, Collection<? extends EncryptedDataKey> encryptedDataKeys, Map<String,String> encryptionContext)
Attempts to decrypts theencryptedDataKeys
by first iterating through allaliasNames
specified in the constructor and then over all other compatible keys in theKeyStore
.JceMasterKey.encryptDataKey(CryptoAlgorithm algorithm, Map<String,String> encryptionContext, DataKey<?> dataKey)
JceMasterKey.generateDataKey(CryptoAlgorithm algorithm, Map<String,String> encryptionContext)
-
Uses of CryptoAlgorithm in com.amazonaws.encryptionsdk.kms
Methods in com.amazonaws.encryptionsdk.kms with parameters of type CryptoAlgorithmModifier and TypeMethodDescriptionAwsKmsMrkAwareMasterKey.decryptDataKey(CryptoAlgorithm algorithm, Collection<? extends EncryptedDataKey> encryptedDataKeys, Map<String,String> encryptionContext)
Will attempt to decrypt if awsKmsArnMatchForDecrypt returns true inAwsKmsMrkAwareMasterKey#filterEncryptedDataKeys(String, AwsKmsCmkArnInfo, EncryptedDataKey)
.AwsKmsMrkAwareMasterKeyProvider.decryptDataKey(CryptoAlgorithm algorithm, Collection<? extends EncryptedDataKey> encryptedDataKeys, Map<String,String> encryptionContext)
KmsMasterKey.decryptDataKey(CryptoAlgorithm algorithm, Collection<? extends EncryptedDataKey> encryptedDataKeys, Map<String,String> encryptionContext)
KmsMasterKeyProvider.decryptDataKey(CryptoAlgorithm algorithm, Collection<? extends EncryptedDataKey> encryptedDataKeys, Map<String,String> encryptionContext)
AwsKmsMrkAwareMasterKey.encryptDataKey(CryptoAlgorithm algorithm, Map<String,String> encryptionContext, DataKey<?> dataKey)
KmsMasterKey.encryptDataKey(CryptoAlgorithm algorithm, Map<String,String> encryptionContext, DataKey<?> dataKey)
AwsKmsMrkAwareMasterKey.generateDataKey(CryptoAlgorithm algorithm, Map<String,String> encryptionContext)
This is identical behavior toKmsMasterKey.generateDataKey(CryptoAlgorithm algorithm, Map<String,String> encryptionContext)
-
Uses of CryptoAlgorithm in com.amazonaws.encryptionsdk.model
Methods in com.amazonaws.encryptionsdk.model that return CryptoAlgorithmModifier and TypeMethodDescriptionDecryptionMaterialsRequest.Builder.getAlgorithm()
DecryptionMaterialsRequest.getAlgorithm()
EncryptionMaterials.Builder.getAlgorithm()
EncryptionMaterials.getAlgorithm()
The algorithm to use for this encryption operation.CiphertextHeaders.getCryptoAlgoId()
Return the crypto algorithm identifier set in the header.EncryptionMaterialsRequest.Builder.getRequestedAlgorithm()
EncryptionMaterialsRequest.getRequestedAlgorithm()
Methods in com.amazonaws.encryptionsdk.model with parameters of type CryptoAlgorithmModifier and TypeMethodDescriptionDecryptionMaterialsRequest.Builder.setAlgorithm(CryptoAlgorithm algorithm)
EncryptionMaterials.Builder.setAlgorithm(CryptoAlgorithm algorithm)
EncryptionMaterialsRequest.Builder.setRequestedAlgorithm(CryptoAlgorithm requestedAlgorithm)
Constructors in com.amazonaws.encryptionsdk.model with parameters of type CryptoAlgorithmModifierConstructorDescriptionCiphertextHeaders(byte version, CiphertextType type, CryptoAlgorithm cryptoAlgo, byte[] encryptionContext, List<KeyBlob> keyBlobs, ContentType contentType, int frameSize)
CiphertextHeaders(CiphertextType type, CryptoAlgorithm cryptoAlgo, byte[] encryptionContext, List<KeyBlob> keyBlobs, ContentType contentType, int frameSize)
Construct the ciphertext headers using the provided values.
deserialize(byte, short)