testkeys

package
v0.0.0-...-94a1697 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package testkeys provides/generates test keys and test hashes.

Index

Constants

View Source
const KnownInput = "Oh Be A Fine Girl Kiss Me"

KnownInput is wellknown digest input. A nod to Stellar classification.

Variables

This section is empty.

Functions

func GetECP224PrivateKey

func GetECP224PrivateKey() *ecdsa.PrivateKey

GetECP224PrivateKey returns a EC P-224 bit private key. This private key is unique per execution of the binary and corresponds to public key returned by GetECP224PublicKey.

func GetECP224PublicKey

func GetECP224PublicKey() *ecdsa.PublicKey

GetECP224PublicKey returns a EC P-224 bit public key. This pub key is unique per execution of the binary and corresponds to private key returned by GetECP224PrivateKey.

func GetECP256PrivateKey

func GetECP256PrivateKey() *ecdsa.PrivateKey

GetECP256PrivateKey returns a EC P-256 bit private key. This private key is unique per execution of the binary and corresponds to public key returned by GetECP256PublicKey.

func GetECP256PublicKey

func GetECP256PublicKey() *ecdsa.PublicKey

GetECP256PublicKey returns a EC P-256 bit public key. This pub key is unique per execution of the binary and corresponds to private key returned by GetECP256PrivateKey.

func GetECP384PrivateKey

func GetECP384PrivateKey() *ecdsa.PrivateKey

GetECP384PrivateKey returns a EC P-384 bit private key. This private key is unique per execution of the binary and corresponds to public key returned by GetECP384PublicKey.

func GetECP384PublicKey

func GetECP384PublicKey() *ecdsa.PublicKey

GetECP384PublicKey returns a EC P-384 bit public key. This pub key is unique per execution of the binary and corresponds to private key returned by GetECP384PrivateKey.

func GetECP521PrivateKey

func GetECP521PrivateKey() *ecdsa.PrivateKey

GetECP521PrivateKey returns a EC P-521 bit private key. This private key is unique per execution of the binary and corresponds to public key returned by GetECP521PublicKey.

func GetECP521PublicKey

func GetECP521PublicKey() *ecdsa.PublicKey

GetECP521PublicKey returns a EC P-521 bit public key. This pub key is unique per execution of the binary and corresponds to private key returned by GetECP521PrivateKey.

func GetED25519PrivateKey

func GetED25519PrivateKey() ed25519.PrivateKey

GetED25519PrivateKey returns ED-25519 private key. This private key is unique per execution of the binary and corresponds to public key returned by GetED25519PublicKey.

func GetED25519PublicKey

func GetED25519PublicKey() ed25519.PublicKey

GetED25519PublicKey returns ED-25519 public key. This public key is unique per execution of the binary and corresponds to private key returned by GetED25519PrivateKey.

func GetRSA1024PrivateKey

func GetRSA1024PrivateKey() *rsa.PrivateKey

Get1024PrivateKey returns a RSA 1024 bit private key. This private key is unique per execution of the binary and corresponds to public key returned by GetRSA1024PublicKey.

func GetRSA1024PublicKey

func GetRSA1024PublicKey() *rsa.PublicKey

Get1024PublicKey returns a RSA 1024 bit public key. This pub key is unique per execution of the binary and corresponds to private key returned by GetRSA1024PrivateKey.

func GetRSA2048PrivateKey

func GetRSA2048PrivateKey() *rsa.PrivateKey

Get2048PrivateKey returns a RSA 2048 bit private key. This private key is unique per execution of the binary and corresponds to public key returned by GetRSA2048PublicKey.

func GetRSA2048PublicKey

func GetRSA2048PublicKey() *rsa.PublicKey

Get2048PublicKey returns a RSA 2048 bit public key. This pub key is unique per execution of the binary and corresponds to private key returned by GetRSA2048PrivateKey.

func GetRSA3072PrivateKey

func GetRSA3072PrivateKey() *rsa.PrivateKey

Get3072PrivateKey returns a RSA 3072 bit private key. This private key is unique per execution of the binary and corresponds to public key returned by GetRSA3072PublicKey.

func GetRSA3072PublicKey

func GetRSA3072PublicKey() *rsa.PublicKey

Get3072PublicKey returns a RSA 3072 bit public key. This pub key is unique per execution of the binary and corresponds to private key returned by GetRSA3072PrivateKey.

func GetRSA4096PrivateKey

func GetRSA4096PrivateKey() *rsa.PrivateKey

Get4096PrivateKey returns a RSA 4096 bit private key. This private key is unique per execution of the binary and corresponds to public key returned by GetRSA4096PublicKey.

func GetRSA4096PublicKey

func GetRSA4096PublicKey() *rsa.PublicKey

Get4096PublicKey returns a RSA 4096 bit public key. This pub key is unique per execution of the binary and corresponds to private key returned by GetRSA4096PrivateKey.

func KnownInputHash

func KnownInputHash(hash crypto.Hash) []byte

KnownInputHash Hashes KnownInput with specified hash algorithm.

Types

This section is empty.

Jump to

Keyboard shortcuts

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