verify

open suspend override fun verify(algorithm: SignatureAlgorithm, publicKey: ByteArray, data: ByteArray, signature: ByteArray): Boolean(source)

ML-DSA.Verify (FIPS 204 Algorithm 3). Returns false for a wrong or malformed signature.

Throws

when publicKey does not have the length of the algorithm's key type.