hcrypto-pkcs11: check mechanism flags
authorLuke Howard <lukeh@padl.com>
Sat, 18 May 2019 04:16:37 +0000 (14:16 +1000)
committerJeffrey Altman <jaltman@auristor.com>
Sat, 18 May 2019 21:15:26 +0000 (17:15 -0400)
commit5c70e5015edbe056eb192c166c3056c29d70482b
tree50c54789db838957e222a0515005a58fbcbc4114
parentdc791c8fcfb8f61fe0d0a14307a6a6cf999a13b7
hcrypto-pkcs11: check mechanism flags

Before committing to a PKCS#11 mechanism, check that it can provide the
required encryption or digest services by validating the flags returned by
C_GetMechanismInfo().
lib/hcrypto/evp-pkcs11.c