Skip to content

Commit 06838d2

Browse files
committed
Fix incompatible use of HMAC algorithm symbols
1 parent 06630fd commit 06838d2

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/cipher_sqlcipher.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -219,11 +219,11 @@ GetReservedSQLCipherCipher(void* cipher)
219219
{
220220
switch (sqlCipherCipher->m_hmacAlgorithm)
221221
{
222-
case SQLCIPHER_HMAC_ALGORITHM_SHA1:
223-
case SQLCIPHER_HMAC_ALGORITHM_SHA256:
222+
case SQLCIPHER_ALGORITHM_SHA1:
223+
case SQLCIPHER_ALGORITHM_SHA256:
224224
reserved += SHA256_DIGEST_SIZE;
225225
break;
226-
case SQLCIPHER_HMAC_ALGORITHM_SHA512:
226+
case SQLCIPHER_ALGORITHM_SHA512:
227227
default:
228228
reserved += SHA512_DIGEST_SIZE;
229229
break;
@@ -337,13 +337,13 @@ GetHmacSizeSQLCipherCipher(int algorithm)
337337
int hmacSize = SHA512_DIGEST_SIZE;
338338
switch (algorithm)
339339
{
340-
case SQLCIPHER_HMAC_ALGORITHM_SHA1:
340+
case SQLCIPHER_ALGORITHM_SHA1:
341341
hmacSize = SHA1_DIGEST_SIZE;
342342
break;
343-
case SQLCIPHER_HMAC_ALGORITHM_SHA256:
343+
case SQLCIPHER_ALGORITHM_SHA256:
344344
hmacSize = SHA256_DIGEST_SIZE;
345345
break;
346-
case SQLCIPHER_HMAC_ALGORITHM_SHA512:
346+
case SQLCIPHER_ALGORITHM_SHA512:
347347
default:
348348
hmacSize = SHA512_DIGEST_SIZE;
349349
break;

0 commit comments

Comments
 (0)