mirror of https://github.com/wolfSSL/wolfssl.git
PKCS#12 PBKDF - maximum tmp buffer size
Use WC_MAX_BLOCK_SIZE - only an issue if PBKDF is using SHA-3 algorithms.pull/2677/head
parent
8d8ab655fa
commit
8d7d2c74ee
|
@ -484,7 +484,7 @@ int wc_PKCS12_PBKDF_ex(byte* output, const byte* passwd, int passLen,
|
|||
else {
|
||||
if (outSz > (int)v) {
|
||||
/* take off MSB */
|
||||
byte tmp[129];
|
||||
byte tmp[WC_MAX_BLOCK_SIZE + 1];
|
||||
ret = mp_to_unsigned_bin(&res, tmp);
|
||||
XMEMCPY(I + i, tmp + 1, v);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue