Documentation
¶
Overview ¶
Package testkeys provides/generates test keys and test hashes.
Index ¶
- Constants
- func GetECP224PrivateKey() *ecdsa.PrivateKey
- func GetECP224PublicKey() *ecdsa.PublicKey
- func GetECP256PrivateKey() *ecdsa.PrivateKey
- func GetECP256PublicKey() *ecdsa.PublicKey
- func GetECP384PrivateKey() *ecdsa.PrivateKey
- func GetECP384PublicKey() *ecdsa.PublicKey
- func GetECP521PrivateKey() *ecdsa.PrivateKey
- func GetECP521PublicKey() *ecdsa.PublicKey
- func GetED25519PrivateKey() ed25519.PrivateKey
- func GetED25519PublicKey() ed25519.PublicKey
- func GetRSA1024PrivateKey() *rsa.PrivateKey
- func GetRSA1024PublicKey() *rsa.PublicKey
- func GetRSA2048PrivateKey() *rsa.PrivateKey
- func GetRSA2048PublicKey() *rsa.PublicKey
- func GetRSA3072PrivateKey() *rsa.PrivateKey
- func GetRSA3072PublicKey() *rsa.PublicKey
- func GetRSA4096PrivateKey() *rsa.PrivateKey
- func GetRSA4096PublicKey() *rsa.PublicKey
- func KnownInputHash(hash crypto.Hash) []byte
Constants ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
KnownInputHash Hashes KnownInput with specified hash algorithm.
Types ¶
This section is empty.