mirror of
https://github.com/macintoshplus/mongo-php-driver.git
synced 2026-03-26 18:02:10 +01:00
* 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.
26 lines
840 B
PHP
26 lines
840 B
PHP
--TEST--
|
|
MongoDB\Driver\ClientEncryption constants
|
|
--FILE--
|
|
<?php
|
|
|
|
var_dump(MongoDB\Driver\ClientEncryption::AEAD_AES_256_CBC_HMAC_SHA_512_DETERMINISTIC);
|
|
var_dump(MongoDB\Driver\ClientEncryption::AEAD_AES_256_CBC_HMAC_SHA_512_RANDOM);
|
|
var_dump(MongoDB\Driver\ClientEncryption::ALGORITHM_INDEXED);
|
|
var_dump(MongoDB\Driver\ClientEncryption::ALGORITHM_UNINDEXED);
|
|
var_dump(MongoDB\Driver\ClientEncryption::ALGORITHM_RANGE_PREVIEW);
|
|
var_dump(MongoDB\Driver\ClientEncryption::QUERY_TYPE_EQUALITY);
|
|
var_dump(MongoDB\Driver\ClientEncryption::QUERY_TYPE_RANGE_PREVIEW);
|
|
|
|
?>
|
|
===DONE===
|
|
<?php exit(0); ?>
|
|
--EXPECT--
|
|
string(43) "AEAD_AES_256_CBC_HMAC_SHA_512-Deterministic"
|
|
string(36) "AEAD_AES_256_CBC_HMAC_SHA_512-Random"
|
|
string(7) "Indexed"
|
|
string(9) "Unindexed"
|
|
string(12) "RangePreview"
|
|
string(8) "equality"
|
|
string(12) "rangePreview"
|
|
===DONE===
|