CoseSignedBytes

@Serializable
data class CoseSignedBytes(val protectedHeader: ByteArray, val unprotectedHeader: CoseHeader?, val payload: ByteArray?, val rawSignature: ByteArray)(source)

Representation of a signed COSE_Sign1 object, i.e. consisting of protected header, unprotected header and payload. It represents the bytes of the object as it has been transferred, i.e. useful for signature verification.

For the class using typed payloads, see CoseSigned.

See RFC 9052.

Constructors

Link copied to clipboard
constructor(protectedHeader: ByteArray, unprotectedHeader: CoseHeader?, payload: ByteArray?, rawSignature: ByteArray)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
Link copied to clipboard
fun toCoseSignatureInput(externalAad: ByteArray = byteArrayOf()): ByteArray
Link copied to clipboard
open override fun toString(): String