sqlite3_rekey() private method

private sqlite3_rekey ( IntPtr db, byte key, int keylen ) : int
db IntPtr
key byte
keylen int
return int
Esempio n. 1
0
        internal override void ChangePassword(byte[] newPasswordBytes)
        {
            int n = UnsafeNativeMethods.sqlite3_rekey(_sql, newPasswordBytes, (newPasswordBytes == null) ? 0 : newPasswordBytes.Length);

            if (n > 0)
            {
                throw new SqliteException(n, SQLiteLastError());
            }
        }
Esempio n. 2
0
        internal override void ChangePassword(byte[] newPasswordBytes)
        {
#if MOBILE
            throw new PlatformNotSupportedException();
#else
            int n = UnsafeNativeMethods.sqlite3_rekey(_sql, newPasswordBytes, (newPasswordBytes == null) ? 0 : newPasswordBytes.Length);
            if (n > 0)
            {
                throw new SqliteException(n, SQLiteLastError());
            }
#endif
        }