calculateKeys
fun calculateKeys(algorithm: Algorithm, confirmationInputs: ByteArray, sharedSecret: ByteArray, provisionerRandom: ByteArray, deviceRandom: ByteArray): Triple<ByteArray, ByteArray, ByteArray>
Calculates the Session Key, Session Nonce and the Device Key based on the Confirmation Inputs, 16 or 32-byte Provisioner Random and 16 or 32-byte device Random.
Return
Triple of Session Key, Session Nonce and Device Key.
Parameters
confirmationInputs
Confirmation inputs is built over hte provisioning process.
sharedSecret
Shared secret obtained in the previous step.
provisionerRandom
Array of 16 or 32 bytes random bytes.
deviceRandom
Array of 16 or 32 bytes random bytes received from the device.
algorithm
Algorithm to be used.