i am trying to figure out how the javacard derivation functions work, and i must admit i am lost as to how to set up the functions.
I figured that the DerivationFunction can be used to derive key, and using ALG_KDF_HKDF i could specify the desired HMAC based key derivation. However, i do not understand how do i set the secret and salt. The KDFHmacSpec interface only specifies getters. It does not specify how to set the values. So far i fail to figure out how i get to set these.
I want to use it to generate XOR key (of preferably specified length), based on a secret and some random public value.
This is for javacard 3+.