Class CipherProvider


  • public class CipherProvider
    extends Object
    Composes a CMM to provide S3 specific functionality
    • Method Detail

      • createAndInitCipher

        public static Cipher createAndInitCipher​(CryptographicMaterials materials,
                                                 byte[] iv)
        Given some materials and an IV, create and init a Cipher object.
        Parameters:
        materials - the materials which dictate e.g. algorithm suite
        iv - the IV, it MUST be initialized before use
        Returns:
        a Cipher object, initialized and ready to use