hwsecurity / de.cotech.hw / SecurityKeyAuthenticator / authenticateWithDigest /

authenticateWithDigest

abstract fun authenticateWithDigest(challenge: Array< Byte>, hashAlgo: String): Array< Byte>

Authenticate a challenge, by hashing it with the given hashing algorithm and signing it with the Security Key’sauthentication key.

Valid values for hashAlgo are “SHA-1”, “SHA-224”, “SHA-256”, “SHA-384”, “SHA-512”, and “RIPEMD160”.

Parameters

Name Summary
challenge the challenge to sign
hashAlgo the algorithm to digest the challenge with before signing