java.lang.Object
net.i2p.data.SimpleDataStructure
net.i2p.data.i2np.EncryptedBuildRecord
All Implemented Interfaces:
DataStructure
Direct Known Subclasses:
ShortEncryptedBuildRecord

public class EncryptedBuildRecordextends SimpleDataStructure
ElGamal-encrypted request or response. 528 bytes. Previously stored in a ByteArray. May or may not be AES layer-encrypted.

Note that these are layer-encrypted and layer-decrypted in-place. Do not cache.

  • Field Details

  • Constructor Details

    • EncryptedBuildRecord

      public EncryptedBuildRecord(byte[] data)
      Create a build record from the given encrypted data.
      Parameters:
      data - the encrypted record data
      Throws:
      IllegalArgumentException - if data is not correct length (null is ok)
  • Method Details

    • length

      public int length()
      Description copied from class: SimpleDataStructure
      The legal length of the byte array in this data structure.
      Specified by:
      length in class SimpleDataStructure
      Returns:
      the legal length of the byte array