Add CCM and GCM mode support to AES in pkcs11_softtoken
Review Request #1266 - Created Nov. 2, 2018 and submitted - Latest diff uploaded
Upstream of Joyent OS-6576. This adds support of AES CCM and GCM to PKCS#11, and also cleans up and simplifies the AES softtoken code quite a bit -- there was a lot of needless duplication with the code in usr/src/common that just would otherwise have complicated the implementation.
AES crypto tests were run using the metaslot, pkcs11_softtoken, and pkcs11_kernel.