crypto

package
v1.1.3 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package crypto handles cryptographic related operations require to generate OAuth1.0a header.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Sha1

func Sha1(data []byte) []byte

Sha1 generates the SHA1 hash of the provided data

func Sha256

func Sha256(data []byte) []byte

Sha256 generates the SHA256 hash of the provided data

func Sign

func Sign(data []byte, privateKey *rsa.PrivateKey) ([]byte, error)

Sign signs the given signing data by using the RSA PrivateKey.

func SignSHA1

func SignSHA1(data []byte, privateKey *rsa.PrivateKey) ([]byte, error)

Sign signs the given signing data by using the RSA PrivateKey.

Types

This section is empty.

Jump to

Keyboard shortcuts

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