Lines Matching refs:CODEC_TRACE

19006 #define CODEC_TRACE(...) {__android_log_print(ANDROID_LOG_DEBUG, "sqlcipher", __VA_ARGS__);}  macro
19008 #define CODEC_TRACE(...) {fprintf(stderr, __VA_ARGS__);fflush(stderr);} macro
19011 #define CODEC_TRACE(...) macro
19176CODEC_TRACE("codec_set_btree_to_codec_pagesize: sqlite3BtreeSetPageSize() size=%d reserve=%d\n", p… in codec_set_btree_to_codec_pagesize()
19188 CODEC_TRACE("codec_set_btree_to_codec_pagesize: sqlite3BtreeSetPageSize returned %d\n", rc); in codec_set_btree_to_codec_pagesize()
19199CODEC_TRACE("codec_set_pass_key: entered db=%p nDb=%d zKey=%s nKey=%d for_ctx=%d\n", db, nDb, (cha… in codec_set_pass_key()
19218CODEC_TRACE("sqlcipher_codec_pragma: entered db=%p iDb=%d pParse=%p zLeft=%s zRight=%s ctx=%p\n", … in sqlcipher_codec_pragma()
19430 CODEC_TRACE("sqlite3Codec: entered pgno=%d, mode=%d, page_sz=%d\n", pgno, mode, page_sz); in sqlite3Codec()
19440 CODEC_TRACE("sqlite3Codec: switch mode=%d offset=%d\n", mode, offset); in sqlite3Codec()
19479CODEC_TRACE("sqlite3CodecAttach: entered db=%p, nDb=%d zKey=%s, nKey=%d\n", db, nDb, (char *)zKey,… in sqlite3CodecAttach()
19488 CODEC_TRACE("sqlite3CodecAttach: calling sqlcipher_activate()\n"); in sqlite3CodecAttach()
19496 CODEC_TRACE("sqlite3CodecAttach: calling sqlcipher_codec_ctx_init()\n"); in sqlite3CodecAttach()
19501 CODEC_TRACE("sqlite3CodecAttach: context initialization failed with rc=%d\n", rc); in sqlite3CodecAttach()
19508 CODEC_TRACE("sqlite3CodecAttach: calling sqlite3pager_sqlite3PagerSetCodec()\n"); in sqlite3CodecAttach()
19511 CODEC_TRACE("sqlite3CodecAttach: calling codec_set_btree_to_codec_pagesize()\n"); in sqlite3CodecAttach()
19517 CODEC_TRACE("sqlite3CodecAttach: calling sqlite3BtreeSecureDelete()\n"); in sqlite3CodecAttach()
19524 CODEC_TRACE("sqlite3CodecAttach: calling sqlite3BtreeSetAutoVacuum()\n"); in sqlite3CodecAttach()
19553 CODEC_TRACE("sqlite3_key entered: db=%p pKey=%s nKey=%d\n", db, (char *)pKey, nKey); in sqlite3_key()
19558CODEC_TRACE("sqlite3_key_v2: entered db=%p zDb=%s pKey=%s nKey=%d\n", db, zDb, (char *)pKey, nKey); in sqlite3_key_v2()
19568 CODEC_TRACE("sqlite3_rekey entered: db=%p pKey=%s nKey=%d\n", db, (char *)pKey, nKey); in sqlite3_rekey()
19583CODEC_TRACE("sqlite3_rekey_v2: entered db=%p zDb=%s pKey=%s, nKey=%d\n", db, zDb, (char *)pKey, nK… in sqlite3_rekey_v2()
19587 CODEC_TRACE("sqlite3_rekey_v2: database pDb=%p db_index:%d\n", pDb, db_index); in sqlite3_rekey_v2()
19599 CODEC_TRACE("sqlite3_rekey_v2: no codec attached to db, exiting\n"); in sqlite3_rekey_v2()
19625 CODEC_TRACE("sqlite3_rekey_v2: error %d occurred writing page %d\n", rc, pgno); in sqlite3_rekey_v2()
19628 CODEC_TRACE("sqlite3_rekey_v2: error %d occurred getting page %d\n", rc, pgno); in sqlite3_rekey_v2()
19635 CODEC_TRACE("sqlite3_rekey_v2: committing\n"); in sqlite3_rekey_v2()
19639 CODEC_TRACE("sqlite3_rekey_v2: rollback\n"); in sqlite3_rekey_v2()
19654 CODEC_TRACE("sqlite3CodecGetKey: entered db=%p, nDb=%d\n", db, nDb); in sqlite3CodecGetKey()
20107 CODEC_TRACE("sqlcipher_activate: calling sqlcipher_register_provider(%p)\n", p); in sqlcipher_activate()
20109 CODEC_TRACE("sqlcipher_activate: called sqlcipher_register_provider(%p)\n",p); in sqlcipher_activate()
20166 CODEC_TRACE("sqlcipher_memset: setting %p[0-%d]=%d)\n", a, len, value); in sqlcipher_memset()
20219 CODEC_TRACE("sqlcipher_free: calling sqlcipher_memset(%p,0,%d)\n", ptr, sz); in sqlcipher_free()
20223 CODEC_TRACE("sqlcipher_free: calling munlock(%p,%lu)\n", ptr - offset, sz + offset); in sqlcipher_free()
20226CODEC_TRACE("sqlcipher_free: munlock(%p,%lu) returned %d errno=%d\n", ptr - offset, sz + offset, r… in sqlcipher_free()
20232CODEC_TRACE("sqlcipher_free: VirtualUnlock(%p,%d) returned %d LastError=%d\n", ptr, sz, rc, GetLas… in sqlcipher_free()
20249 CODEC_TRACE("sqlcipher_malloc: calling sqlite3Malloc(%d)\n", sz); in sqlcipher_malloc()
20251 CODEC_TRACE("sqlcipher_malloc: calling sqlcipher_memset(%p,0,%d)\n", ptr, sz); in sqlcipher_malloc()
20259CODEC_TRACE("sqlcipher_malloc: calling mlock(%p,%lu); _SC_PAGESIZE=%lu\n", ptr - offset, sz + offs… in sqlcipher_malloc()
20262CODEC_TRACE("sqlcipher_malloc: mlock(%p,%lu) returned %d errno=%d\n", ptr - offset, sz + offset, r… in sqlcipher_malloc()
20268CODEC_TRACE("sqlcipher_malloc: VirtualLock(%p,%d) returned %d LastError=%d\n", ptr, sz, rc, GetLas… in sqlcipher_malloc()
20288 CODEC_TRACE("sqlcipher_cipher_ctx_init: allocating context\n"); in sqlcipher_cipher_ctx_init()
20293 CODEC_TRACE("sqlcipher_cipher_ctx_init: allocating provider\n"); in sqlcipher_cipher_ctx_init()
20308 CODEC_TRACE("sqlcipher_cipher_ctx_init: calling provider ctx_init\n"); in sqlcipher_cipher_ctx_init()
20311 CODEC_TRACE("sqlcipher_cipher_ctx_init: allocating key\n"); in sqlcipher_cipher_ctx_init()
20314 CODEC_TRACE("sqlcipher_cipher_ctx_init: allocating hmac_key\n"); in sqlcipher_cipher_ctx_init()
20331 CODEC_TRACE("cipher_ctx_free: entered iCtx=%p\n", iCtx); in sqlcipher_cipher_ctx_free()
20364 CODEC_TRACE("sqlcipher_cipher_ctx_cmp: entered \ in sqlcipher_cipher_ctx_cmp()
20417 CODEC_TRACE("sqlcipher_cipher_ctx_copy: entered target=%p, source=%p\n", target, source); in sqlcipher_cipher_ctx_copy()
20626 CODEC_TRACE("sqlcipher_codec_ctx_set_use_hmac: use=%d block_sz=%d md_size=%d reserve=%d\n", in sqlcipher_codec_ctx_set_use_hmac()
20664 CODEC_TRACE("sqlcipher_codec_ctx_set_error: ctx=%p, error=%d\n", ctx, error); in sqlcipher_codec_ctx_set_error()
20688 CODEC_TRACE(("cipher_page_size not a power of 2 and between 512 and 65536 inclusive\n")); in sqlcipher_codec_ctx_set_pagesize()
20720 CODEC_TRACE("sqlcipher_codec_ctx_init: allocating context\n"); in sqlcipher_codec_ctx_init()
20733 CODEC_TRACE("sqlcipher_codec_ctx_init: allocating kdf_salt\n"); in sqlcipher_codec_ctx_init()
20741 CODEC_TRACE("sqlcipher_codec_ctx_init: allocating hmac_kdf_salt\n"); in sqlcipher_codec_ctx_init()
20751CODEC_TRACE("sqlcipher_codec_ctx_init: calling sqlcipher_codec_ctx_set_pagesize with %d\n", defaul… in sqlcipher_codec_ctx_init()
20754 CODEC_TRACE("sqlcipher_codec_ctx_init: initializing read_ctx\n"); in sqlcipher_codec_ctx_init()
20757 CODEC_TRACE("sqlcipher_codec_ctx_init: initializing write_ctx\n"); in sqlcipher_codec_ctx_init()
20760 CODEC_TRACE("sqlcipher_codec_ctx_init: reading file header\n"); in sqlcipher_codec_ctx_init()
20765 CODEC_TRACE("sqlcipher_codec_ctx_init: setting cipher\n"); in sqlcipher_codec_ctx_init()
20768 CODEC_TRACE("sqlcipher_codec_ctx_init: setting default_kdf_iter\n"); in sqlcipher_codec_ctx_init()
20771 CODEC_TRACE("sqlcipher_codec_ctx_init: setting fast_kdf_iter\n"); in sqlcipher_codec_ctx_init()
20774 CODEC_TRACE("sqlcipher_codec_ctx_init: setting pass key\n"); in sqlcipher_codec_ctx_init()
20779 CODEC_TRACE("sqlcipher_codec_ctx_init: setting use_hmac\n"); in sqlcipher_codec_ctx_init()
20782 CODEC_TRACE("sqlcipher_codec_ctx_init: copying write_ctx to read_ctx\n"); in sqlcipher_codec_ctx_init()
20794 CODEC_TRACE("codec_ctx_free: entered iCtx=%p\n", iCtx); in sqlcipher_codec_ctx_free()
20864 CODEC_TRACE("codec_cipher:entered pgno=%d, mode=%d, size=%d\n", pgno, mode, size); in sqlcipher_page_cipher()
20869CODEC_TRACE("codec_cipher: error possible context corruption, key_sz is zero for pgno=%d\n", pgno); in sqlcipher_page_cipher()
20884 CODEC_TRACE("codec_cipher: hmac operations failed for pgno=%d\n", pgno); in sqlcipher_page_cipher()
20888CODEC_TRACE("codec_cipher: comparing hmac on in=%p out=%p hmac_sz=%d\n", hmac_in, hmac_out, c_ctx-… in sqlcipher_page_cipher()
20895CODEC_TRACE("codec_cipher: zeroed page (short read) for pgno %d, encryption but returning SQLITE_O… in sqlcipher_page_cipher()
20902 CODEC_TRACE("codec_cipher: hmac check failed for pgno=%d returning SQLITE_ERROR\n", pgno); in sqlcipher_page_cipher()
20937 CODEC_TRACE("cipher_ctx_key_derive: entered c_ctx->pass=%s, c_ctx->pass_sz=%d \ in sqlcipher_cipher_ctx_key_derive()
20953 CODEC_TRACE("cipher_ctx_key_derive: using raw key from hex\n"); in sqlcipher_cipher_ctx_key_derive()
20957 CODEC_TRACE("cipher_ctx_key_derive: using raw key from hex\n"); in sqlcipher_cipher_ctx_key_derive()
20961CODEC_TRACE("cipher_ctx_key_derive: deriving key using full PBKDF2 with %d iterations\n", c_ctx->k… in sqlcipher_cipher_ctx_key_derive()
20986CODEC_TRACE("cipher_ctx_key_derive: deriving hmac key from encryption key using PBKDF2 with %d ite… in sqlcipher_cipher_ctx_key_derive()
21120 CODEC_TRACE("No upgrade required - exiting\n"); in sqlcipher_codec_ctx_migrate()
21127 CODEC_TRACE("Version 2 format found\n"); in sqlcipher_codec_ctx_migrate()
21137 CODEC_TRACE("Version 1 format found\n"); in sqlcipher_codec_ctx_migrate()
21143 CODEC_TRACE("Upgrade format not determined\n"); in sqlcipher_codec_ctx_migrate()
21174 CODEC_TRACE("cannot migrate from within a transaction"); in sqlcipher_codec_ctx_migrate()
21178 CODEC_TRACE("cannot migrate - SQL statements in progress"); in sqlcipher_codec_ctx_migrate()
21234 CODEC_TRACE("*** migration failure** \n\n"); in sqlcipher_codec_ctx_migrate()
21241 CODEC_TRACE("An error occurred attempting to migrate the database\n"); in sqlcipher_codec_ctx_migrate()
21259 CODEC_TRACE("sqlcipher_codec_add_random: using raw random blob from hex\n"); in sqlcipher_codec_add_random()