File tree 2 files changed +5
-5
lines changed
2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -491,7 +491,7 @@ void SetKey (byte[] key)
491
491
/// Change the encryption key for a SQLCipher database with "pragma rekey = ...".
492
492
/// </summary>
493
493
/// <param name="key">Encryption key plain text that is converted to the real encryption key using PBKDF2 key derivation</param>
494
- public void SetReKey ( string key )
494
+ public void ReKey ( string key )
495
495
{
496
496
if ( key == null )
497
497
throw new ArgumentNullException ( nameof ( key ) ) ;
@@ -503,7 +503,7 @@ public void SetReKey (string key)
503
503
/// Change the encryption key for a SQLCipher database.
504
504
/// </summary>
505
505
/// <param name="key">256-bit (32 byte) or 384-bit (48 bytes) encryption key data</param>
506
- public void SetReKey ( byte [ ] key )
506
+ public void ReKey ( byte [ ] key )
507
507
{
508
508
if ( key == null )
509
509
throw new ArgumentNullException ( nameof ( key ) ) ;
Original file line number Diff line number Diff line change @@ -158,7 +158,7 @@ public void ResetStringKey ()
158
158
var reKey = "SecretKey" ;
159
159
160
160
using ( var db = new TestDb ( key : key ) ) {
161
- db . SetReKey ( reKey ) ;
161
+ db . ReKey ( reKey ) ;
162
162
path = db . DatabasePath ;
163
163
164
164
db . CreateTable < TestTable > ( ) ;
@@ -184,7 +184,7 @@ public void ResetByteKey ()
184
184
rand . NextBytes ( reKey ) ;
185
185
186
186
using ( var db = new TestDb ( key : key ) ) {
187
- db . SetReKey ( reKey ) ;
187
+ db . ReKey ( reKey ) ;
188
188
path = db . DatabasePath ;
189
189
190
190
db . CreateTable < TestTable > ( ) ;
@@ -206,7 +206,7 @@ public void ResetBadKey ()
206
206
try
207
207
{
208
208
using ( var db = new TestDb ( ) ) {
209
- db . SetReKey ( key ) ;
209
+ db . ReKey ( key ) ;
210
210
}
211
211
212
212
Assert . Fail ( "Should have thrown" ) ;
You can’t perform that action at this time.
0 commit comments