sm_test.c shows how to manage black keys. However, source code says:
The module does not show the use of key objects as working key register source material at this time.
And indeed, I didn't find any example to use a black key to encrypt or decrypt. Does someone has an example for that?