package
25.1.0+incompatible
Repository: https://github.com/cockroachdb/cockroach.git
Documentation: pkg.go.dev

# Packages

# Functions

AppearsEncrypted checks if passed bytes begin with an encryption preamble.
DecryptFile decrypts a file encrypted by EncryptFile, using the supplied key and reading the IV from a prefix of the file.
EncryptFile encrypts a file with the supplied key and a randomly chosen IV which is prepended in a header on the returned ciphertext.
EncryptingWriter returns a writer that wraps an underlying sink writer but which encrypts bytes written to it before flushing them to the wrapped sink.
ExternalSSTReader returns a PebbleSSTIterator for the SSTs in external storage, optionally decrypting with the supplied parameters.
GenerateKey generates a key for the supplied passphrase and salt.
GenerateSalt generates a 16 byte random salt.

# Structs

NopCloser wraps an io.Writer to add a no-op Close().
StoreFile groups a file with its corresponding external storage handler.