Cose
Properties
Link copied to clipboard
The COSE Key common parameter for the key id (bstr).
Link copied to clipboard
The COSE Key common parameter for the key type (tstr / int).
Link copied to clipboard
The COSE Key type parameter for the EC curve (int / tstr).
Link copied to clipboard
The COSE Key type parameter for the private key (bstr).
Link copied to clipboard
The COSE Key type parameter for the X coordinate (bstr).
Link copied to clipboard
The COSE Key type parameter for the Y coordinate (bstr / bool).
Link copied to clipboard
The COSE Key Type for EC2.
Link copied to clipboard
The COSE Key Type for OKP.
Link copied to clipboard
The COSE label for conveying an algorithm.
Link copied to clipboard
The COSE label for conveying an X.509 certificate chain.
Functions
Link copied to clipboard
fun coseSign1Check(publicKey: EcPublicKey, detachedData: ByteArray?, signature: CoseSign1, signatureAlgorithm: Algorithm)
Checks a COSE_Sign1 signature.
Link copied to clipboard
fun coseSign1Sign(key: EcPrivateKey, dataToSign: ByteArray, includeDataInPayload: Boolean, signatureAlgorithm: Algorithm, protectedHeaders: Map<CoseLabel, DataItem>, unprotectedHeaders: Map<CoseLabel, DataItem>): CoseSign1
suspend fun coseSign1Sign(secureArea: SecureArea, alias: String, message: ByteArray, includeMessageInPayload: Boolean, protectedHeaders: Map<CoseLabel, DataItem>, unprotectedHeaders: Map<CoseLabel, DataItem>, keyUnlockData: KeyUnlockData?): CoseSign1
Creates a COSE_Sign1 signature.