mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2026-07-05 15:30:49 +02:00
Line length fixup and repro in second impl.
This commit is contained in:
committed by
Daniel Pouzzner
parent
e0e6610503
commit
1cd9caca02
@@ -417,7 +417,8 @@ int wc_PKCS12_PBKDF_ex(byte* output, const byte* passwd, int passLen,
|
||||
iterations = 1;
|
||||
|
||||
if (iterations > WC_PBKDF_MAX_ITERATIONS) {
|
||||
WOLFSSL_MSG("PKCS12 PBKDF iteration count exceeds WC_PBKDF_MAX_ITERATIONS");
|
||||
WOLFSSL_MSG("PKCS12 PBKDF iteration count exceeds "
|
||||
"WC_PBKDF_MAX_ITERATIONS");
|
||||
return BAD_FUNC_ARG;
|
||||
}
|
||||
|
||||
@@ -649,6 +650,12 @@ int wc_PKCS12_PBKDF_ex(byte* output, const byte* passwd, int passLen,
|
||||
iterations = 1;
|
||||
}
|
||||
|
||||
if (iterations > WC_PBKDF_MAX_ITERATIONS) {
|
||||
WOLFSSL_MSG("PKCS12 PBKDF iteration count exceeds "
|
||||
"WC_PBKDF_MAX_ITERATIONS");
|
||||
return BAD_FUNC_ARG;
|
||||
}
|
||||
|
||||
/* u = hash output size. */
|
||||
hashT = wc_HashTypeConvert(hashType);
|
||||
ret = wc_HashGetDigestSize(hashT);
|
||||
|
||||
Reference in New Issue
Block a user