payload

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2022 License: GPL-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decrypt

func Decrypt(payload *EncryptedPayload) (string, error)

Decrypt decrypts the given encrypted payload returning the plaintext result iff error is nil; if error is non-nil it represents the reason the ciphertext could not be decrypted

Types

type EncryptedPayload

type EncryptedPayload struct {
	SharedSecret   []byte
	MyPrivateKey   []byte
	TheirPublicKey []byte
	Salt           []byte
	Data           []byte
}

EncryptedPayload represents the encrypted push notification received from Mastodon, including all of the keys and other data required to decrypt the message

Jump to

Keyboard shortcuts

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