Lines Matching refs:for_ctx

19119 const char* sqlcipher_codec_ctx_get_cipher(codec_ctx *ctx, int for_ctx);
19132 int sqlcipher_codec_ctx_get_use_hmac(codec_ctx *ctx, int for_ctx);
19136 int sqlcipher_codec_ctx_get_flag(codec_ctx *ctx, unsigned int flag, int for_ctx);
19197 static int codec_set_pass_key(sqlite3* db, int nDb, const void *zKey, int nKey, int for_ctx) {
19199 …ass_key: entered db=%p nDb=%d zKey=%s nKey=%d for_ctx=%d\n", db, nDb, (char *)zKey, nKey, for_ctx);
19203 if(ctx) return sqlcipher_codec_ctx_set_pass(ctx, zKey, nKey, for_ctx);
20509 int sqlcipher_codec_ctx_set_pass(codec_ctx *ctx, const void *zKey, int nKey, int for_ctx) {
20510 cipher_ctx *c_ctx = for_ctx ? ctx->write_ctx : ctx->read_ctx;
20516 if(for_ctx == 2)
20517 …if((rc = sqlcipher_cipher_ctx_copy( for_ctx ? ctx->read_ctx : ctx->write_ctx, c_ctx)) != SQLITE_OK…
20523 int sqlcipher_codec_ctx_set_cipher(codec_ctx *ctx, const char *cipher_name, int for_ctx) {
20524 cipher_ctx *c_ctx = for_ctx ? ctx->write_ctx : ctx->read_ctx;
20538 if(for_ctx == 2)
20539 …if((rc = sqlcipher_cipher_ctx_copy( for_ctx ? ctx->read_ctx : ctx->write_ctx, c_ctx)) != SQLITE_OK)
20545 const char* sqlcipher_codec_ctx_get_cipher(codec_ctx *ctx, int for_ctx) {
20546 cipher_ctx *c_ctx = for_ctx ? ctx->write_ctx : ctx->read_ctx;
20559 int sqlcipher_codec_ctx_set_kdf_iter(codec_ctx *ctx, int kdf_iter, int for_ctx) {
20560 cipher_ctx *c_ctx = for_ctx ? ctx->write_ctx : ctx->read_ctx;
20566 if(for_ctx == 2)
20567 …if((rc = sqlcipher_cipher_ctx_copy( for_ctx ? ctx->read_ctx : ctx->write_ctx, c_ctx)) != SQLITE_OK)
20573 int sqlcipher_codec_ctx_get_kdf_iter(codec_ctx *ctx, int for_ctx) {
20574 cipher_ctx *c_ctx = for_ctx ? ctx->write_ctx : ctx->read_ctx;
20578 int sqlcipher_codec_ctx_set_fast_kdf_iter(codec_ctx *ctx, int fast_kdf_iter, int for_ctx) {
20579 cipher_ctx *c_ctx = for_ctx ? ctx->write_ctx : ctx->read_ctx;
20585 if(for_ctx == 2)
20586 …if((rc = sqlcipher_cipher_ctx_copy( for_ctx ? ctx->read_ctx : ctx->write_ctx, c_ctx)) != SQLITE_OK)
20592 int sqlcipher_codec_ctx_get_fast_kdf_iter(codec_ctx *ctx, int for_ctx) {
20593 cipher_ctx *c_ctx = for_ctx ? ctx->write_ctx : ctx->read_ctx;
20641 int sqlcipher_codec_ctx_get_use_hmac(codec_ctx *ctx, int for_ctx) {
20642 cipher_ctx * c_ctx = for_ctx ? ctx->write_ctx : ctx->read_ctx;
20658 int sqlcipher_codec_ctx_get_flag(codec_ctx *ctx, unsigned int flag, int for_ctx) {
20659 cipher_ctx * c_ctx = for_ctx ? ctx->write_ctx : ctx->read_ctx;
20848 int sqlcipher_page_cipher(codec_ctx *ctx, int for_ctx, Pgno pgno, int mode, int page_sz, unsigned c…
20849 cipher_ctx *c_ctx = for_ctx ? ctx->write_ctx : ctx->read_ctx;