Module eql
Expand description
Types for representing EQL payloads, and encryption/decryption functions.
The serialization shapes here match the EQL v2.3 schema at
cipherstash/encrypt-query-language/docs/reference/schema/eql-payload-v2.3.schema.json.
Structs§
- Encrypted
Payload - Scalar EQL storage payload (
k = "ct"). - Encrypted
Query Payload - Root-scalar query payload — carries exactly one root-scope index term.
- EqlDecrypt
Opts - Options for EQL decryption operations.
- EqlEncrypt
Opts - Options for EQL encryption operations.
- Identifier
- Identifies a specific database table and column pair.
- Prepared
Plaintext - A prepared plaintext value ready for EQL encryption.
- SteVec
Entry - One entry inside an
SteVecPayload. - SteVec
Payload - STE-vector EQL storage payload (
k = "sv"). - SteVec
Query Payload - STE-vector query payload — carries either a selector lookup or a single
per-element term used to match against an
SteVecEntry.
Enums§
- EqlCiphertext
- EQL v2.3 storage payload. One of two mutually exclusive root shapes
discriminated by
k. - EqlError
- Errors that can occur during EQL encryption, decryption, and index operations.
- EqlOperation
- Specifies what to encrypt when encrypting
encryption::Plaintextvalues. - EqlOutput
- Output of
encrypt_eqlfor a singlePreparedPlaintext. - EqlQuery
Payload - EQL query payload — partial encrypted payload used to match against stored
EqlCiphertextvalues. - Root
Query Term - Per-root-scalar query term. Exactly one of
hm,bf, orob. - SteVec
Entry Term - Equality / ordering term carried by an
SteVecEntry. - SteVec
Query Term - Per-STE-vector query term. Exactly one of
s,hm,oc, orq.
Constants§
- EQL_
SCHEMA_ VERSION - The current version of the EQL schema format.
Functions§
- decrypt_
eql - Decrypts multiple EQL storage payloads back to plaintext.
- decrypt_
eql_ fallible - Like
decrypt_eqlbut decryption failure of one or more ciphertexts does not fail the entire operation. Instead, a decryption result (success or failure) is returned for every ciphertext. - encrypt_
eql - Encrypts multiple plaintexts into EQL format.