hwsecurity / de.cotech.hw / SecurityKeyAuthenticator / authenticatePresignedDigest /
authenticatePresignedDigest
abstract fun authenticatePresignedDigest(digest: Array< Byte>, hashAlgo: String): Array< Byte>
Authenticate a digest by signing it with the Security Key’s authentication key.
Note that the hashAlgo parameter is required to correctly construct the PKCS1 padding, even though this methoddoes not do any hashing of its own. Valid values are “SHA-1”, “SHA-224”, “SHA-256”, “SHA-384”, “SHA-512”,and “RIPEMD160”.
Parameters
Name | Summary |
---|---|
digest | the digest to sign |
hashAlgo | the algorithm to digest the challenge with before signing |