VirtualFs::Crypto
AEAD encryption via OpenSSL. Default cipher is aes-256-gcm. Nonces use SHA-256 derivation to prevent reuse.
Constants
AEAD_TAG_LEN = 16
EVP_CTRL_AEAD_GET_TAG = 16
EVP_CTRL_AEAD_SET_TAG = 17
NONCE_LEN = 12
Class methods
Nonce from a path string: hashes the path with SHA-256 (truncated to 64 bits) instead of CRC32 to avoid collision vulnerabilities that would break AEAD security on nonce reuse.
random_nonce
Returns a random nonce for AEAD encryption. Each encrypted chunk stores its own nonce, so the same plaintext never produces identical ciphertext.