fingerprint

package
v1.1.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 20, 2022 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Overview

Based on https://gist.github.com/nanu-c/f885b928b9e43a7167258dd70dc186d6 from nanu-c which is based on https://github.com/signalapp/libsignal-protocol-java/blob/master/java/src/main/java/org/whispersystems/libsignal/fingerprint/NumericFingerprintGenerator.java

Index

Constants

View Source
const FINGERPRINT_VERSION int16 = 0
View Source
const ITERATIONS int = 5200

Variables

This section is empty.

Functions

func CreateFingerprint

func CreateFingerprint(version uint32, localStableIdentifier []byte, localIdentityKeys []axolotl.ECPublicKey, remoteStableIdentifier []byte, remoteIdentityKeys []axolotl.ECPublicKey) ([]string, []byte, error)

https://github.com/signalapp/libsignal-protocol-java/blob/fde96d22004f32a391554e4991e4e1f0a14c2d50/java/src/main/java/org/whispersystems/libsignal/fingerprint/NumericFingerprintGenerator.java#L85 returns: the fingerprint in blocks of five digits

func CreateFingerprintNumbers

func CreateFingerprintNumbers(localFingerprint []byte, remoteFingerprint []byte) []string

func CreateFingerprintSimple

func CreateFingerprintSimple(version uint32, local string, localKey []byte, remote string, remoteKey []byte) ([]string, []byte, error)

I'm not particular happy with the name "CreateFingerprintSimple"

func SortByteArrays

func SortByteArrays(src []axolotl.ECPublicKey) []axolotl.ECPublicKey

Public

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL