Module Otr.Utils

Utilities

Fingerprint Utilities

An OTR fingerprint is the `SHA1 hash of the public key prepended with the key type.

val their_fingerprint : State.session -> string option

their_fingerprint session is fp, the fingerprint of the communication partner (None if no session is established).

val own_fingerprint : Mirage_crypto_pk.Dsa.priv -> string

own_fingerprint dsa is fp, the fingerprint of the private DSA key.