mirror of
https://github.com/status-im/sqlcipher.git
synced 2025-02-23 09:18:11 +00:00
Add test for commoncrypto default cipher
This commit is contained in:
parent
ee14e0fd2a
commit
5b639be3c4
@ -82,6 +82,12 @@ proc if_built_with_libtomcrypt {name cmd expected} {
|
||||
}
|
||||
}
|
||||
|
||||
proc if_built_with_commoncrypto {name cmd expected} {
|
||||
if {[get_cipher_provider] == "commoncrypto"} {
|
||||
do_test $name $cmd $expected
|
||||
}
|
||||
}
|
||||
|
||||
# The database is initially empty.
|
||||
# set an hex key create some basic data
|
||||
# create table and insert operations should work
|
||||
@ -1886,4 +1892,14 @@ if_built_with_libtomcrypt verify-default-cipher {
|
||||
db close
|
||||
file delete -force test.db
|
||||
|
||||
if_built_with_commoncrypto verify-default-cipher {
|
||||
sqlite_orig db test.db
|
||||
execsql {
|
||||
PRAGMA key='test';
|
||||
PRAGMA cipher;
|
||||
}
|
||||
} {aes-256-cbc}
|
||||
db close
|
||||
file delete -force test.db
|
||||
|
||||
finish_test
|
||||
|
Loading…
x
Reference in New Issue
Block a user