Couchbase C Client  3.3.12
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...


 Default prefix for encrypted JSON fields.


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

Detailed Description

Field encryption.