Interface AESCipher

  • All Implemented Interfaces:

    
    public interface AESCipher
    
                        

    Service to encrypt or decrypt a given byte message using AES.

    The service is stateful and designed for E3DC home power plants and follows the algorithm required there. For example, the last block of the last encrypted message is used as IV for the next one.

    Since:

    2.0

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      abstract ByteArray encrypt(ByteArray message) Encrypts the given message using AES
      abstract ByteArray decrypt(ByteArray message) Decrypts the given message using AES
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • encrypt

         abstract ByteArray encrypt(ByteArray message)

        Encrypts the given message using AES

        Parameters:
        message - Unencrypted message to be encrypted
        Returns:

        Encrypted message

        Since:

        2.0

      • decrypt

         abstract ByteArray decrypt(ByteArray message)

        Decrypts the given message using AES

        Parameters:
        message - Encrypted message to be decrypted
        Returns:

        Decrypted message

        Since:

        2.0