Class CipherProvider
- java.lang.Object
-
- software.amazon.encryption.s3.internal.CipherProvider
-
public class CipherProvider extends Object
Composes a CMM to provide S3 specific functionality
-
-
Constructor Summary
Constructors Constructor Description CipherProvider()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static CiphercreateAndInitCipher(CryptographicMaterials materials, byte[] iv, byte[] messageId)Given some materials and an IV, create and init a Cipher object.static SecretKeygenerateDerivedEncryptionKey(CryptographicMaterials materials, byte[] messageId)
-
-
-
Method Detail
-
generateDerivedEncryptionKey
public static SecretKey generateDerivedEncryptionKey(CryptographicMaterials materials, byte[] messageId)
-
createAndInitCipher
public static Cipher createAndInitCipher(CryptographicMaterials materials, byte[] iv, byte[] messageId)
Given some materials and an IV, create and init a Cipher object.- Parameters:
materials- the materials which dictate e.g. algorithm suiteiv-messageId-- Returns:
- a Cipher object, initialized and ready to use
-
-