hcrypto PKCS#11 backend: allow digest update with NULL (#378)lukeh/pkcs11-hcrypto-cbc-fix
commit590be3d7dadb8e17a15261bce9275f37f6dfc917
authorLuke Howard <lukeh@padl.com>
Fri, 11 May 2018 03:16:44 +0000 (11 13:16 +1000)
committerLuke Howard <lukeh@padl.com>
Fri, 11 May 2018 03:16:44 +0000 (11 13:16 +1000)
tree118d1b74f7f8f10ce318ca567e4fcc748e91c47d
parenta88d00660efc0de15514f0957a51954478e31f45
hcrypto PKCS#11 backend: allow digest update with NULL (#378)

Some callers of EVP_DigestUpdate (such as libntlm) pass NULL as the
data argument. PKCS#11 returns CKR_ARGUMENTS_BAD which may poison
the context. Pass an empty string to C_DigestUpdate work around this.
lib/hcrypto/evp-pkcs11.c