Class AESBlobStore.EncryptingOutputStream

  • All Implemented Interfaces:
    Closeable, Flushable, AutoCloseable
    Enclosing class:
    AESBlobStore

    public static class AESBlobStore.EncryptingOutputStream
    extends FilterOutputStream
    Output stream that encrypts while writing.

    Stream format version 1 (values are in network order):

    • 10 bytes: magic number "NUXEOCRYPT"
    • 1 byte: file format version = 1
    • 1 byte: use keystore = 1, use PBKDF2 = 2
    • if use PBKDF2:
      • 4 bytes: salt length = n
      • n bytes: salt data
    • 4 bytes: IV length = p
    • p bytes: IV data
    • x bytes: encrypted stream
    See Also:
    AESBlobStore.DecryptingInputStream