cryptosense / pkcs11

OCaml bindings for the PKCS#11 cryptographic API
BSD 2-Clause "Simplified" License
22 stars 6 forks source link

Support CKM_AES_KEY_WRAP mechanism #83

Closed emillon closed 6 years ago

emillon commented 6 years ago

Already enjoying CKM_AES_KEY_WRAP-the-mechanism-type? You'll love CKM_AES_KEY_WRAP-the-mechanism.

It's a bit of a special case in that its parameter is a string, but NULL can be passed as well. I created an abstract type for that, but it's pretty obvious that it's backed by a string option. On the driver side, this reuses pieces of string-handling code, so there's no corresponding Pkcs11_CK_AES_KEY_WRAP_params module (this name does not exist in PKCS11).