8000 remove unused array allocation · magic-coder/sqlcipher@b75c9ff · GitHub
[go: up one dir, main page]

Skip to content

Commit b75c9ff

Browse files
committed
remove unused array allocation
1 parent 0a767d7 commit b75c9ff

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/crypto_openssl.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -116,9 +116,6 @@ static int sqlcipher_openssl_hmac(void *ctx, unsigned char *hmac_key, int key_sz
116116
}
117117

118118
static int sqlcipher_openssl_kdf(void *ctx, const char *pass, int pass_sz, unsigned char* salt, int salt_sz, int workfactor, int key_sz, unsigned char *key) {
119-
unsigned long random_buffer_sz = 256;
120-
char random_buffer[random_buffer_sz];
121-
122119
PKCS5_PBKDF2_HMAC_SHA1(pass, pass_sz, salt, salt_sz, workfactor, key_sz, key);
123120
return SQLITE_OK;
124121
}

0 commit comments

Comments
 (0)
0