signatures

package
v0.22.0 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package signatures implements common signing algorithms.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SignSMS

func SignSMS(signer crypto.Signer, keyID string, t time.Time, purpose SMSPurpose, phone, body string) (string, error)

SignSMS returns a new SMS message with the embedded signature using the provided signer.

Types

type SMSPurpose

type SMSPurpose string

SMSPurpose is an SMS purpose, used in signature calculation.

const (
	// SMSPurposeENReport is an SMS purpose for EN reporting.
	SMSPurposeENReport SMSPurpose = "EN Report"
)

Jump to

Keyboard shortcuts

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