WebAuthn

class WebAuthn

Functions

Link copied to clipboard
open fun getPublicKey(attestationObject: Array<Byte>): PublicKey
Converts attestation object to the public key on P256 curve
Link copied to clipboard
open fun getRSValues(signature: Array<Byte>): Array<Byte>
Uses ASN parser to extract r and s values from a webauthn signature
Link copied to clipboard
open fun reconstructOriginalMessage(authenticatorData: Array<Byte>, clientDataJSON: Array<Byte>): Array<Byte>
Reconstructs the original message that was signed via P256 curve.