Merge pull request #146 from libtom/fix/85-part3

Fix for #85 (part3)
This commit is contained in:
karel-m 2017-02-25 13:23:03 +01:00 committed by GitHub
commit 7c2cc079ec
2 changed files with 2 additions and 2 deletions

View File

@ -115,7 +115,7 @@ int adler32_test(void)
adler32_state ctx;
adler32_init(&ctx);
adler32_update(&ctx, in, strlen(in));
adler32_finish(&ctx, &out, 4);
adler32_finish(&ctx, out, 4);
if (XMEMCMP(adler32, out, 4)) {
#ifdef LTC_TEST_DBG
ulong32 _out, _adler32;

View File

@ -108,7 +108,7 @@ int ecc_import_ex(const unsigned char *in, unsigned long inlen, ecc_key *key, co
/* find out what type of key it is */
if ((err = der_decode_sequence_multi(in, inlen,
LTC_ASN1_BIT_STRING, 1UL, &flags,
LTC_ASN1_BIT_STRING, 1UL, flags,
LTC_ASN1_EOL, 0UL, NULL)) != CRYPT_OK) {
goto done;
}