We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 47957c5 commit f8c26a0Copy full SHA for f8c26a0
src/SQLite.cs
@@ -384,8 +384,8 @@ void SetKey (byte[] key)
384
{
385
if (key == null)
386
throw new ArgumentNullException (nameof (key));
387
- if (key.Length != 32)
388
- throw new ArgumentException ("Key must be 32 bytes (256-bit)", nameof (key));
+ if (key.Length != 32 && key.Length != 48)
+ throw new ArgumentException ("Key must be 32 bytes (256-bit) or 48 bytes (384-bit)", nameof (key));
389
var s = String.Join ("", key.Select (x => x.ToString ("X2")));
390
ExecuteScalar<string> ("pragma key = \"x'" + s + "'\"");
391
}
0 commit comments