Package net.i2p.data

Class PrivateKeyFile

  • Direct Known Subclasses:
    RouterPrivateKeyFile

    public class PrivateKeyFile
    extends Object
    This helper class reads and writes files in the same "eepPriv.dat" format used by the client code. The format is:
      - Destination (387 bytes if no certificate, otherwise longer)
         - Public key (256 bytes)
         - Signing Public key (128 bytes)
         - Cert. type (1 byte)
         - Cert. length (2 bytes)
         - Certificate if length != 0
      - Private key (256 bytes)
      - Signing Private key (20 bytes, or length specified by key certificate)
     Total: 663 or more bytes
    
    Author:
    welterde, zzz