Sha256: 17e28f3cddd108e0e30a62f5428b3f9a52bb8e8970bf109fe5b1b42a10f2aaf2

Contents?: true

Size: 1.56 KB

Versions: 3

Compression:

Stored size: 1.56 KB

Contents

/*
 * Copyright 2022-present MongoDB, Inc.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

#ifndef MC_FLE_BLOB_SUBTYPE_PRIVATE_H
#define MC_FLE_BLOB_SUBTYPE_PRIVATE_H

/* FLE Blob Subtype is the first byte of a BSON Binary Subtype 6.
 * FLE1 Blob Subtypes are defined in:
 * https://github.com/mongodb/specifications/blob/master/source/client-side-encryption/subtype6.rst
 * FLE2 Blob Subtypes are currently defined in:
 * https://github.com/markbenvenuto/mongo-enterprise-modules/blob/fle2/fle_protocol.md#reference-bindata-6-subtypes.
 */

typedef enum {
   MC_SUBTYPE_FLE1EncryptionPlaceholder = 0,
   MC_SUBTYPE_FLE1DeterministicEncryptedValue = 1,
   MC_SUBTYPE_FLE1RandomEncryptedValue = 2,
   MC_SUBTYPE_FLE2EncryptionPlaceholder = 3,
   MC_SUBTYPE_FLE2InsertUpdatePayload = 4,
   MC_SUBTYPE_FLE2FindEqualityPayload = 5,
   MC_SUBTYPE_FLE2UnindexedEncryptedValue = 6,
   MC_SUBTYPE_FLE2IndexedEqualityEncryptedValue = 7,
   MC_SUBTYPE_FLE2IndexedRangeEncryptedValue = 9,
   MC_SUBTYPE_FLE2FindRangePayload = 10
} mc_fle_blob_subtype_t;

#endif /* MC_FLE_BLOB_SUBTYPE_PRIVATE_H */

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
libmongocrypt-helper-1.7.4.0.1002 ext/libmongocrypt/libmongocrypt/src/mc-fle-blob-subtype-private.h
libmongocrypt-helper-1.7.4.0.1001 ext/libmongocrypt/libmongocrypt/src/mc-fle-blob-subtype-private.h
libmongocrypt-helper-1.7.4.0.1000 ext/libmongocrypt/libmongocrypt/src/mc-fle-blob-subtype-private.h