File tree Expand file tree Collapse file tree 4 files changed +4
-8
lines changed Expand file tree Collapse file tree 4 files changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -187,8 +187,7 @@ AllocateAegisCipher(sqlite3* db)
187187 aegisCipher -> m_keyLength = KEYLENGTH_AEGIS_256 ;
188188 aegisCipher -> m_nonceLength = PAGE_NONCE_LEN_AEGIS_256 ;
189189 }
190- int plaintextHeaderSize = sqlite3mcGetCipherParameter (cipherParams , "plaintext_header_size" );
191- aegisCipher -> m_plaintextHeaderSize = (plaintextHeaderSize >=0 && plaintextHeaderSize <= 100 && plaintextHeaderSize % 16 == 0 ) ? plaintextHeaderSize : 0 ;
190+ aegisCipher -> m_plaintextHeaderSize = sqlite3mcGetCipherParameter (cipherParams , "plaintext_header_size" );
192191 }
193192 return aegisCipher ;
194193}
Original file line number Diff line number Diff line change @@ -64,8 +64,7 @@ AllocateAscon128Cipher(sqlite3* db)
6464 {
6565 CipherParams * cipherParams = sqlite3mcGetCipherParams (db , CIPHER_NAME_ASCON128 );
6666 ascon128Cipher -> m_kdfIter = sqlite3mcGetCipherParameter (cipherParams , "kdf_iter" );
67- int plaintextHeaderSize = sqlite3mcGetCipherParameter (cipherParams , "plaintext_header_size" );
68- ascon128Cipher -> m_plaintextHeaderSize = (plaintextHeaderSize >=0 && plaintextHeaderSize <= 100 && plaintextHeaderSize % 16 == 0 ) ? plaintextHeaderSize : 0 ;
67+ ascon128Cipher -> m_plaintextHeaderSize = sqlite3mcGetCipherParameter (cipherParams , "plaintext_header_size" );
6968 }
7069 return ascon128Cipher ;
7170}
Original file line number Diff line number Diff line change @@ -80,8 +80,7 @@ AllocateChaCha20Cipher(sqlite3* db)
8080 {
8181 chacha20Cipher -> m_kdfIter = SQLEET_KDF_ITER ;
8282 }
83- int plaintextHeaderSize = sqlite3mcGetCipherParameter (cipherParams , "plaintext_header_size" );
84- chacha20Cipher -> m_plaintextHeaderSize = (plaintextHeaderSize >=0 && plaintextHeaderSize <= 100 && plaintextHeaderSize % 16 == 0 ) ? plaintextHeaderSize : 0 ;
83+ chacha20Cipher -> m_plaintextHeaderSize = sqlite3mcGetCipherParameter (cipherParams , "plaintext_header_size" );
8584 }
8685 return chacha20Cipher ;
8786}
Original file line number Diff line number Diff line change @@ -142,8 +142,7 @@ AllocateSQLCipherCipher(sqlite3* db)
142142 sqlCipherCipher -> m_hmacAlgorithmCompat = sqlite3mcGetCipherParameter (cipherParams , "hmac_algorithm_compat" );
143143 if (sqlCipherCipher -> m_legacy >= SQLCIPHER_VERSION_4 )
144144 {
145- int plaintextHeaderSize = sqlite3mcGetCipherParameter (cipherParams , "plaintext_header_size" );
146- sqlCipherCipher -> m_plaintextHeaderSize = (plaintextHeaderSize >=0 && plaintextHeaderSize <= 100 && plaintextHeaderSize % 16 == 0 ) ? plaintextHeaderSize : 0 ;
145+ sqlCipherCipher -> m_plaintextHeaderSize = sqlite3mcGetCipherParameter (cipherParams , "plaintext_header_size" );
147146 }
148147 else
149148 {
You can’t perform that action at this time.
0 commit comments