8000 Removing sha256 hash reference · PHPDOTSQL/sqlcipher@bac7518 · GitHub
[go: up one dir, main page]

Skip to content

Commit bac7518

Browse files
Removing sha256 hash reference
1 parent f868ae3 commit bac7518

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/crypto_libtomcrypt.c

Lines changed: 0 additions & 2 deletions
register_hash(&sha1_desc);
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ static int sqlcipher_ltc_activate(void *ctx) {
1010
if(ltc_init == 0) {
1111
register_prng(&fortuna_desc);
1212
register_cipher(&rijndael_desc);
13-
register_hash(&sha256_desc);
1413
1514
ltc_init = 1;
1615
}
@@ -68,7 +67,6 @@ static int sqlcipher_ltc_cipher(void *ctx, int mode, unsigned char *key, int key
6867
symmetric_CBC cbc;
6968

7069
if((cipher_idx = find_cipher(sqlcipher_ltc_get_cipher(ctx))) == -1) return SQLITE_ERROR;
71-
if((hash_idx = find_hash("sha256")) == -1) return SQLITE_ERROR;
7270
if((rc = cbc_start(cipher_idx, iv, key, key_sz, 0, &cbc)) != CRYPT_OK) return SQLITE_ERROR;
7371
rc = mode == 1 ? cbc_encrypt(in, out, in_sz, &cbc) : cbc_decrypt(in, out, in_sz, &cbc);
7472
if(rc != CRYPT_OK) return SQLITE_ERROR;

0 commit comments

Comments
 (0)
0