Class AEADEncDataPacket

    • Constructor Detail

      • AEADEncDataPacket

        public AEADEncDataPacket​(BCPGInputStream in)
                          throws java.io.IOException
        Throws:
        java.io.IOException
      • AEADEncDataPacket

        public AEADEncDataPacket​(BCPGInputStream in,
                                 boolean newPacketFormat)
                          throws java.io.IOException
        Throws:
        java.io.IOException
      • AEADEncDataPacket

        public AEADEncDataPacket​(int algorithm,
                                 int aeadAlgorithm,
                                 int chunkSize,
                                 byte[] iv)
    • Method Detail

      • getVersion

        public byte getVersion()
      • getAlgorithm

        public byte getAlgorithm()
        Return the algorithm-id of the symmetric encryption algorithm used to encrypt the data.
        Returns:
        symmetric encryption algorithm
      • getAEADAlgorithm

        public byte getAEADAlgorithm()
      • getChunkSize

        public int getChunkSize()
      • getIV

        public byte[] getIV()
      • getAAData

        public byte[] getAAData()
      • createAAData

        public static byte[] createAAData​(int version,
                                          int symAlgorithm,
                                          int aeadAlgorithm,
                                          int chunkSize)
      • getIVLength

        public static int getIVLength​(byte aeadAlgorithm)
        Deprecated.
        use AEADUtils.getIVLength()