PKCS#5 bug fix during de-encryption