mirror of
https://github.com/groue/GRDB.swift
synced 2026-11-28 04:24:20 +00:00
Rename parameter to better align with the SQLCipher PRAGMA
This commit is contained in:
1 parent
d4eb7ba27b
commit
8415e8c2a0
3 files changed
+4
-4
No files matched your search
@@ -94,7 +94,7 @@ public struct Configuration {
|
||||
|
||||
public var cipherPageSize: CipherPageSize = .pageSize1K
|
||||
|
||||
public var cipherKDFIterations: Int = 64000
|
||||
public var KDFIterations: Int = 64000
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
@@ -174,7 +174,7 @@ public final class Database {
|
||||
if let passphrase = configuration.passphrase {
|
||||
try Database.set(passphrase: passphrase, forConnection: sqliteConnection)
|
||||
try Database.set(cipherPageSize: configuration.cipherPageSize, forConnection: sqliteConnection)
|
||||
try Database.set(kdfIterations: configuration.cipherKDFIterations, forConnection: sqliteConnection)
|
||||
try Database.set(kdfIterations: configuration.KDFIterations, forConnection: sqliteConnection)
|
||||
}
|
||||
#endif
|
||||
try Database.validateDatabaseFormat(sqliteConnection)
|
||||
|
||||
@@ -364,7 +364,7 @@ class EncryptionTests: GRDBTestCase {
|
||||
func testCipherKDFSettings() throws {
|
||||
do {
|
||||
dbConfiguration.passphrase = "secret"
|
||||
dbConfiguration.cipherKDFIterations = 128000
|
||||
dbConfiguration.KDFIterations = 128000
|
||||
|
||||
var dbQueue: DatabaseQueue? = try makeDatabaseQueue(filename: "test.sqlite")
|
||||
try dbQueue!.inDatabase { db in
|
||||
@@ -376,7 +376,7 @@ class EncryptionTests: GRDBTestCase {
|
||||
}
|
||||
|
||||
do {
|
||||
dbConfiguration.cipherKDFIterations = 128000
|
||||
dbConfiguration.KDFIterations = 128000
|
||||
|
||||
var dbQueue: DatabasePool? = try makeDatabasePool(filename: "testpool.sqlite")
|
||||
try dbQueue!.write { db in
|
||||
|
||||
Reference in new issue
Block a user