keys

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2018 License: Apache-2.0, BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateOrAddKey

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

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

GetRSAKey returns a parsed RSA key based on the given size

Types

This section is empty.

Jump to

Keyboard shortcuts

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