ece

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultBlockSize = 128

Variables

This section is empty.

Functions

This section is empty.

Types

type Aes128GcmEncoder

type Aes128GcmEncoder struct{}

func (*Aes128GcmEncoder) Encrypt

func (*Aes128GcmEncoder) Encrypt(
	salt []byte,
	localKey *ecdh.PrivateKey,
	p256dh []byte,
	auth []byte,
	padSize int,
	data []byte,
) ([]byte, error)

func (*Aes128GcmEncoder) EncryptPayload

func (e *Aes128GcmEncoder) EncryptPayload(p256dh []byte, auth []byte, data []byte) ([]byte, error)

type WebPushEncoder

type WebPushEncoder interface {
	EncryptPayload(p256dh []byte, auth []byte, data []byte) ([]byte, error)
}

Jump to

Keyboard shortcuts

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