diff --git a/sqlcipher-1.1.8-testkey.db b/sqlcipher-1.1.8-testkey.db new file mode 100644 index 0000000..36ef196 Binary files /dev/null and b/sqlcipher-1.1.8-testkey.db differ diff --git a/test/crypto.test b/test/crypto.test index 2575b8b..9edc8b4 100644 --- a/test/crypto.test +++ b/test/crypto.test @@ -677,5 +677,18 @@ do_test nohmac-not-tamper-resistent { db close file delete -force test.db +# test a large number of inserts in a transaction for multiple pages +do_test open-1.1.8-database { + sqlite_orig db sqlcipher-1.1.8-testkey.db + execsql { + PRAGMA key = 'testkey'; + PRAGMA cipher_use_hmac = OFF; + SELECT count(*) FROM t1; + SELECT * FROM t1; + } +} {4 1 1 one one 1 2 one two} +db close + +# test a rekey operation as the first op on a database finish_test