notary: github.com/docker/notary/tuf/testutils/keys Index | Files

package keys

import "github.com/docker/notary/tuf/testutils/keys"

Index

Package Files

keys.go

func CreateOrAddKey Uses

func CreateOrAddKey(cs signed.CryptoService, role data.RoleName, gun data.GUN, keyAlgorithm string) (pubKey data.PublicKey, err error)

CreateOrAddKey creates a new key in case of ECDSA or ED25519 inside the cryptoservice with the given role and gun while in the case of RSA, it takes a key from the map that includes multiple pre-existing RSA keys and adds them to the keystore, returning the public key.

func GetRSAKey Uses

func GetRSAKey(size int) (data.PrivateKey, error)

GetRSAKey returns a parsed RSA key based on the given size

Package keys imports 6 packages (graph). Updated 2018-02-15. Refresh now. Tools for package owners. This is an inactive package (no imports and no commits in at least two years).