Add documentation for SHA256 fingerprints

This commit is contained in:
Aron Wussler 2020-04-07 15:19:48 +02:00
parent 3c79f40acb
commit 9caf737bc7
2 changed files with 14 additions and 0 deletions

View file

@ -68,6 +68,8 @@ func EncryptAttachment(plainData []byte, fileName string, keyRing *crypto.KeyRin
return decrypted, nil
}
// GetJsonSHA256Fingerprints returns the SHA256 fingeprints of key and subkeys, encoded in JSON, since gomobile can not
// handle arrays
func GetJsonSHA256Fingerprints(publicKey string) ([]byte, error) {
key, err := crypto.NewKeyFromArmored(publicKey)
if err != nil {