Hey folks, I am currently working on a multiplatfo...
# kotlin-native
t
Hey folks, I am currently working on a multiplatform library for android/ios involving some hashing. As part of this I need a hmac function using SHA-256. Above you can see the implementation I have for the JVM, now I wonder how I can implement this using Kotlin/Native. I found this swift example (https://gist.github.com/thewheat/7342c76ade46e7322c3e#gistcomment-1769792), which does more or less what I need, despite it gives me a
String
instead of a
ByteArray
, but I am still a bit lost what are the required steps. Since the above linked swift example just requires
Foundation
, should I try to convert this to kotlin in the native platform source set? Thanks in advance.
t
thanks 👍