Interface ISymCipher

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      byte[] decrypt​(byte[] cipher)
      Decrypts a message.
      byte[] decrypt​(byte[] cipher, int offset, int len)
      Decrypts a message.
      byte[] encrypt​(byte[] plain)
      Encrypts a message.
      byte[] encrypt​(byte[] plain, int offset, int len)
      Encrypts a message.
    • Method Detail

      • encrypt

        byte[] encrypt​(byte[] plain)
        Encrypts a message.
        Parameters:
        plain - Plain text.
        Returns:
        Cipher text.
      • encrypt

        byte[] encrypt​(byte[] plain,
                       int offset,
                       int len)
        Encrypts a message.
        Parameters:
        plain - Plain text.
        offset - Offset where the plain text starts.
        len - Length of the plain text, -1 for rest of the array.
        Returns:
        Cipher text.
      • decrypt

        byte[] decrypt​(byte[] cipher)
        Decrypts a message.
        Parameters:
        cipher - Cipher text.
        Returns:
        Plain text.
      • decrypt

        byte[] decrypt​(byte[] cipher,
                       int offset,
                       int len)
        Decrypts a message.
        Parameters:
        cipher - Cipher text.
        offset - Offset where the cipher text starts.
        len - Length of the cipher text, -1 for rest of the array.
        Returns:
        Plain text.