diff options
author | Yuhong Zhang <yuhong.zhang@mongodb.com> | 2022-09-01 19:16:42 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2022-09-01 20:38:13 +0000 |
commit | 8834bd03c22a3a0d21227def26d7a474dafaabc8 (patch) | |
tree | c6ea3dc392e8575782d9210745ab923b5474cb8a /src/mongo/crypto/fle_crypto.h | |
parent | d2979f3ee500ed4dfd5f67fe2c9412f44c9ceb62 (diff) | |
download | mongo-8834bd03c22a3a0d21227def26d7a474dafaabc8.tar.gz |
SERVER-67879 Check encrypted BSON value's structural consistency
Diffstat (limited to 'src/mongo/crypto/fle_crypto.h')
-rw-r--r-- | src/mongo/crypto/fle_crypto.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mongo/crypto/fle_crypto.h b/src/mongo/crypto/fle_crypto.h index 563e3e0154b..65178dcedb1 100644 --- a/src/mongo/crypto/fle_crypto.h +++ b/src/mongo/crypto/fle_crypto.h @@ -915,6 +915,8 @@ public: * uint8_t[32] esc; // ESCDerivedFromDataTokenAndContentionFactorToken * uint8_t[32] ecc; // ECCDerivedFromDataTokenAndContentionFactorToken *} + * + * The specification needs to be in sync with the validation in 'bson_validate.cpp'. */ struct FLE2IndexedEqualityEncryptedValue { FLE2IndexedEqualityEncryptedValue(FLE2InsertUpdatePayload payload, uint64_t counter); @@ -958,6 +960,7 @@ struct FLE2IndexedEqualityEncryptedValue { * ciphertext[ciphertext_length]; * } blob; * + * The specification needs to be in sync with the validation in 'bson_validate.cpp'. */ struct FLE2UnindexedEncryptedValue { static std::vector<uint8_t> serialize(const FLEUserKeyAndId& userKey, @@ -1000,6 +1003,8 @@ struct FLEEdgeToken { * uint8_t[32] ecc; // ECCDerivedFromDataTokenAndContentionFactorToken * } edges[edgeCount]; *} + * + * The specification needs to be in sync with the validation in 'bson_validate.cpp'. */ struct FLE2IndexedRangeEncryptedValue { FLE2IndexedRangeEncryptedValue(FLE2InsertUpdatePayload payload, |