Implementing custom sqlcipher crypto provider


#1

Hello! I’m looking for documentation about implementing custom crypto provider.

What functions of sqlcipher_provider are required to imlement and what are optional?

Is there any information about creating custom crypto providers for SQLCipher?


#2

@anivaros we don’t have any specific documentation on writing custom providers. However, you can probably get a good idea of what is required by looking at the existing provider implementations (e.g. crypto_openssl.c, crypto_cc.c, crypto_libtomcrypt.c).


#3

I’ve already did that, but without at least comments it’s hard to understand what all this functions do.


#4

Hi @anivaros

Can you share a bit more about what you are trying to accomplish with a custom crypto provider. The CommonCrypto provider is rather small, with the setup routine mapping all of the callback functions. Do you have any specific questions?