diff --git a/src/misc/hkdf/hkdf_test.c b/src/misc/hkdf/hkdf_test.c index 0447d28..c740b58 100644 --- a/src/misc/hkdf/hkdf_test.c +++ b/src/misc/hkdf/hkdf_test.c @@ -48,9 +48,9 @@ int hkdf_test(void) unsigned char info[80]; unsigned long info_l; unsigned char PRK[32]; - unsigned long PRK_l; + unsigned long PRK_l; unsigned char OKM[82]; - unsigned long OKM_l; + unsigned long OKM_l; } cases[] = { #ifdef LTC_SHA256 /* diff --git a/src/pk/dsa/dsa_import_radix.c b/src/pk/dsa/dsa_import_radix.c index ba9408d..03e1ba7 100755 --- a/src/pk/dsa/dsa_import_radix.c +++ b/src/pk/dsa/dsa_import_radix.c @@ -37,7 +37,7 @@ int dsa_import_radix(int radix, char *p, char *q, char *g, char *x, char *y, dsa /* init key */ err = mp_init_multi(&key->p, &key->g, &key->q, &key->x, &key->y, NULL); if (err != CRYPT_OK) return err; - + if ((err = mp_read_radix(key->p , p , radix)) != CRYPT_OK) { goto LBL_ERR; } if ((err = mp_read_radix(key->q , q , radix)) != CRYPT_OK) { goto LBL_ERR; } if ((err = mp_read_radix(key->g , g , radix)) != CRYPT_OK) { goto LBL_ERR; }