Class Ciphers.AesGcmEncryptor

  • Enclosing class:
    Ciphers

    public static class Ciphers.AesGcmEncryptor
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      AesGcmEncryptor​(byte[] keyBytes)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      byte[] encrypt​(byte[] plaintext, byte[] aad)  
      byte[] encrypt​(byte[] plaintext, int plaintextOffset, int plaintextLength, byte[] aad)  
      int encrypt​(byte[] plaintext, int plaintextOffset, int plaintextLength, byte[] ciphertextBuffer, int ciphertextOffset, byte[] aad)  
      • Methods inherited from class java.lang.Object

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

      • AesGcmEncryptor

        public AesGcmEncryptor​(byte[] keyBytes)
    • Method Detail

      • encrypt

        public byte[] encrypt​(byte[] plaintext,
                              byte[] aad)
      • encrypt

        public byte[] encrypt​(byte[] plaintext,
                              int plaintextOffset,
                              int plaintextLength,
                              byte[] aad)
      • encrypt

        public int encrypt​(byte[] plaintext,
                           int plaintextOffset,
                           int plaintextLength,
                           byte[] ciphertextBuffer,
                           int ciphertextOffset,
                           byte[] aad)