I need a smidge of help. I am porting some ObjC co...
# kotlin-native
t
I need a smidge of help. I am porting some ObjC code to Kotlin Native. It is just a few lines that call into CoreCrypto. Fortunately, I see everything wrapped already, which is great. The original code is like so:
Copy code
CCHmacContext context;
CCHmacInit(&context, algorithm, keyCString, strlen(keyCString));
I am unclear on how to create the context and pass in the Kotlin version. The first context param is declared as CValuesRef<CCHmacContext>? So how do I construct this CValuesRef type? Thank you. Any similar code would be cool too.
s