4 Commits

Author SHA1 Message Date
Jeremy Mikola
b93f7c2bd1 PHPC-2197: Support queryable encryption range indexes (#1409)
* Implement ClientEncryption::encryptExpression()

Define algorithm and query type constants for range preview

* Handle BSON encoding exceptions in encrypt/decrypt

Note that it is not possible to write a test for decrypt() since Binary instances always encode to BSON.
2023-05-30 07:27:41 -04:00
Jeremy Mikola
63540009f7 PHPC-2104: ClientEncryption::QUERY_TYPE_EQUALITY is a string (#1334)
* Define additional constants in mongocrypt-export.h

* PHPC-2104: ClientEncryption::QUERY_TYPE_EQUALITY is a string

Downstream change since MONGOC_ENCRYPT_QUERY_TYPE_EQUALITY was changed to a string type.

Bumps libmongocrypt submodule to 1.5.0-rc2. Related to this bump, mongocrypt.h is no longer generated.

Bumps libmongoc submodule to 1.22-dev.
2022-06-24 14:59:17 -04:00
Jeremy Mikola
1b8543b42f PHPC-2092: ClientEncryption options for queryable encryption
Several new constants for these options have been introduced.
2022-05-31 18:59:22 -04:00
Andreas Braun
c54bbaac67 PHPC-1499: Declare class constants for encryption algorithms 2020-01-22 08:18:32 +01:00