9156 Remove openssl dependency from pcks11_tpm
Review Request #910 - Created Feb. 22, 2018 and submitted
Gets rid of one of the openssl dependencies in the gate with a few small updates.
Andy Fiddaman was able to get pkcs11_tpm working with a TPM and tested before and after the change that things are working.
Cstyle fix, typo fix, remove XXX
Revision 2 (+59 -63)
% pfexec pktool list token=TPM Enter PIN for TPM: Found 1 asymmetric public keys. Key #1 - RSA public key: jbktest
Test code: https://gist.github.com/citrus-it/c5c1838b6c4ffe800b6d242826e7caef
Output (same before and after this change)# ./tpm Slots found: 1 Token label: TPM Opening session... Unlocking TPM... Token UNLOCKED Found private key... SignRecover rv: 0 (len=128) Data signed successfully. Found public key... VerifyRecover rv: 0 Data: This is some data which is going to be signed. MATCH!
Use libmd implementations for MD5 and SHA1
Revision 3 (+41 -65)