PinDerivation

actual object PinDerivation(source)

Platform-specific PIN-derivation functions.

All derivations key off the user's raw PIN and produce hex-string outputs so the caller can put the result in HTTP headers / multicast payloads without extra encoding. Implementations MUST agree byte-for-byte on the output of both methods so a token derived on one platform validates on every other — see the values of BEARER_HMAC_KEY and TOTP_WINDOW_SECONDS for the shared constants.

expect object PinDerivation(source)

Platform-specific PIN-derivation functions.

All derivations key off the user's raw PIN and produce hex-string outputs so the caller can put the result in HTTP headers / multicast payloads without extra encoding. Implementations MUST agree byte-for-byte on the output of both methods so a token derived on one platform validates on every other — see the values of BEARER_HMAC_KEY and TOTP_WINDOW_SECONDS for the shared constants.

actual object PinDerivation(source)

Platform-specific PIN-derivation functions.

All derivations key off the user's raw PIN and produce hex-string outputs so the caller can put the result in HTTP headers / multicast payloads without extra encoding. Implementations MUST agree byte-for-byte on the output of both methods so a token derived on one platform validates on every other — see the values of BEARER_HMAC_KEY and TOTP_WINDOW_SECONDS for the shared constants.

actual object PinDerivation(source)

Platform-specific PIN-derivation functions.

All derivations key off the user's raw PIN and produce hex-string outputs so the caller can put the result in HTTP headers / multicast payloads without extra encoding. Implementations MUST agree byte-for-byte on the output of both methods so a token derived on one platform validates on every other — see the values of BEARER_HMAC_KEY and TOTP_WINDOW_SECONDS for the shared constants.

actual object PinDerivation(source)

Platform-specific PIN-derivation functions.

All derivations key off the user's raw PIN and produce hex-string outputs so the caller can put the result in HTTP headers / multicast payloads without extra encoding. Implementations MUST agree byte-for-byte on the output of both methods so a token derived on one platform validates on every other — see the values of BEARER_HMAC_KEY and TOTP_WINDOW_SECONDS for the shared constants.

Functions

Link copied to clipboard
actual fun deriveBeaconToken(pin: String, nodeUuid: String, epochSeconds: Long): String

Returns a rolling 8-character hex token that proves the caller knows the swarm PIN without revealing it on the wire — used in multicast beacons to filter out devices that belong to a different swarm.

expect fun deriveBeaconToken(pin: String, nodeUuid: String, epochSeconds: Long): String

Returns a rolling 8-character hex token that proves the caller knows the swarm PIN without revealing it on the wire — used in multicast beacons to filter out devices that belong to a different swarm.

actual fun deriveBeaconToken(pin: String, nodeUuid: String, epochSeconds: Long): String

Returns a rolling 8-character hex token that proves the caller knows the swarm PIN without revealing it on the wire — used in multicast beacons to filter out devices that belong to a different swarm.

actual fun deriveBeaconToken(pin: String, nodeUuid: String, epochSeconds: Long): String

Returns a rolling 8-character hex token that proves the caller knows the swarm PIN without revealing it on the wire — used in multicast beacons to filter out devices that belong to a different swarm.

actual fun deriveBeaconToken(pin: String, nodeUuid: String, epochSeconds: Long): String

Returns a rolling 8-character hex token that proves the caller knows the swarm PIN without revealing it on the wire — used in multicast beacons to filter out devices that belong to a different swarm.

Link copied to clipboard
actual fun deriveBearerToken(pin: String): String

Returns a stable, deterministic Bearer token for a Krill server.

expect fun deriveBearerToken(pin: String): String

Returns a stable, deterministic Bearer token for a Krill server.

actual fun deriveBearerToken(pin: String): String

Returns a stable, deterministic Bearer token for a Krill server.

actual fun deriveBearerToken(pin: String): String

Returns a stable, deterministic Bearer token for a Krill server.

actual fun deriveBearerToken(pin: String): String

Returns a stable, deterministic Bearer token for a Krill server.