HS384

@Serializable(with = CoseAlgorithmSerializer::class)
data object HS384 : CoseAlgorithm.MAC

Properties

Link copied to clipboard
open override val algorithm: MessageAuthenticationCode
Link copied to clipboard
open override val coseValue: Int
Link copied to clipboard
val tagLength: BitLength
Link copied to clipboard
open val value: Int

Functions

Link copied to clipboard
fun SpecializedDataIntegrityAlgorithm.toCoseAlgorithm(): KmmResult<CoseAlgorithm.DataIntegrity>
fun SpecializedMessageAuthenticationCode.toCoseAlgorithm(): KmmResult<CoseAlgorithm.MAC>

Tries to find a matching COSE algorithm. Note that COSE imposes curve restrictions on ECDSA based on the digest.