HashMismatch

data class HashMismatch(val algorithm: String, val expected: String, val actual: String) : Exception, DfuError

Hash verification failed after transferring firmware.

Constructors

Link copied to clipboard
constructor(algorithm: String, expected: String, actual: String)

Properties

Link copied to clipboard

hex-encoded hash reported by the peripheral

Link copied to clipboard

hash algorithm name (e.g. "SHA-256", "MD5")

Link copied to clipboard
expect open val cause: Throwable?
Link copied to clipboard

hex-encoded hash computed locally from source data

Link copied to clipboard
expect open val message: String?