Couchbase C Client  2.9.4
Asynchronous C Client for Couchbase
crypto.h File Reference


Field encryption More...

Go to the source code of this file.

Data Structures

struct  lcbcrypto_SIGV
 
IOV-style structure for signing functions of crypto-provider. More...
 
struct  lcbcrypto_PROVIDER
 
Crypto-provider interface. More...
 
struct  lcbcrypto_FIELDSPEC
 
Structure for JSON field specification for encrypt/decrypt API. More...
 
struct  lcbcrypto_CMDENCRYPT
 
Command to encrypt JSON fields. More...
 
struct  lcbcrypto_CMDDECRYPT
 
Command to decrypt JSON fields. More...
 

Macros

#define LCBCRYPTO_DEFAULT_FIELD_PREFIX
 Default prefix for encrypted JSON fields.
 

Functions

void lcbcrypto_register (lcb_t instance, const char *name, lcbcrypto_PROVIDER *provider)
 Register crypto-provider for specified alias. More...
 
void lcbcrypto_unregister (lcb_t instance, const char *name)
 Unregister crypto-provider for specified alias. More...
 
void lcbcrypto_ref (lcbcrypto_PROVIDER *provider)
 Increment reference counter for crypto-provider. More...
 
void lcbcrypto_unref (lcbcrypto_PROVIDER *provider)
 Decrement reference counter for crypto-provider. More...
 
lcb_error_t lcbcrypto_encrypt_fields (lcb_t instance, lcbcrypto_CMDENCRYPT *cmd)
 
Encrypt all specified fields in the JSON encoded object. More...
 
lcb_error_t lcbcrypto_decrypt_fields (lcb_t instance, lcbcrypto_CMDDECRYPT *cmd)
 
Decrypt all specified fields in the JSON encoded object. More...
 
 LCB_DEPR_API2 (lcb_error_t lcbcrypto_encrypt_document(lcb_t instance, lcbcrypto_CMDENCRYPT *cmd), "Use lcbcrypto_encrypt_fields")
 
 LCB_DEPR_API2 (lcb_error_t lcbcrypto_decrypt_document(lcb_t instance, lcbcrypto_CMDDECRYPT *cmd), "Use lcbcrypto_decrypt_fields")
 

Detailed Description


Field encryption

Stability
Uncommitted:

Function Documentation

◆ LCB_DEPR_API2() [1/2]

LCB_DEPR_API2 ( lcb_error_t   lcbcrypto_encrypt_documentlcb_t instance, lcbcrypto_CMDENCRYPT *cmd,
"Use lcbcrypto_encrypt_fields  
)

◆ LCB_DEPR_API2() [2/2]

LCB_DEPR_API2 ( lcb_error_t   lcbcrypto_decrypt_documentlcb_t instance, lcbcrypto_CMDDECRYPT *cmd,
"Use lcbcrypto_decrypt_fields  
)