Lines Matching refs:keyspec
68 char *keyspec; member
379 sqlcipher_free(ctx->keyspec, ctx->keyspec_sz); in sqlcipher_cipher_ctx_free()
461 sqlcipher_free(target->keyspec, target->keyspec_sz); in sqlcipher_cipher_ctx_copy()
481 if(source->keyspec && source->keyspec_sz) { in sqlcipher_cipher_ctx_copy()
482 target->keyspec = sqlcipher_malloc(source->keyspec_sz); in sqlcipher_cipher_ctx_copy()
483 if(target->keyspec == NULL) return SQLITE_NOMEM; in sqlcipher_cipher_ctx_copy()
484 memcpy(target->keyspec, source->keyspec, source->keyspec_sz); in sqlcipher_cipher_ctx_copy()
498 sqlcipher_free(ctx->keyspec, ctx->keyspec_sz); in sqlcipher_cipher_ctx_set_keyspec()
499 ctx->keyspec = NULL; in sqlcipher_cipher_ctx_set_keyspec()
505 ctx->keyspec = sqlcipher_malloc(ctx->keyspec_sz); in sqlcipher_cipher_ctx_set_keyspec()
506 if(ctx->keyspec == NULL) return SQLITE_NOMEM; in sqlcipher_cipher_ctx_set_keyspec()
508 ctx->keyspec[0] = 'x'; in sqlcipher_cipher_ctx_set_keyspec()
509 ctx->keyspec[1] = '\''; in sqlcipher_cipher_ctx_set_keyspec()
510 cipher_bin2hex(key, key_sz, ctx->keyspec + 2); in sqlcipher_cipher_ctx_set_keyspec()
511 cipher_bin2hex(salt, salt_sz, ctx->keyspec + (key_sz * 2) + 2); in sqlcipher_cipher_ctx_set_keyspec()
512 ctx->keyspec[ctx->keyspec_sz - 1] = '\''; in sqlcipher_cipher_ctx_set_keyspec()
724 *zKey = ctx->read_ctx->keyspec; in sqlcipher_codec_get_keyspec()