Documentation ¶
Index ¶
- Constants
- func AddKey(providerName string, hashString string, keyPairNameId string, ...) error
- func DelKey(providerName string, hashString string, keyPairNameId string) error
- func GenHash(sourceList []string) (string, error)
- func GenKeyPair() ([]byte, []byte, error)
- func GetKey(providerName string, hashString string, keyPairNameId string) (*irs.KeyValue, error)
- func ListKey(providerName string, hashString string) ([]*irs.KeyValue, error)
- func MakePublicKeyFromPrivateKey(pem string) (string, error)
- func SaveKey(keyBytes []byte, targetFile string) error
- func ValidateWindowsPassword(pw string) error
Constants ¶
View Source
const STORE_KEYPAIR_PREFIX string = "/driver-info-spaces/keypair"
Variables ¶
This section is empty.
Functions ¶
func AddKey ¶ added in v0.5.1
ex)
privateKey, publicKey, err := GenKeyPair() srcList[0] = credentialInfo.IdentityEndpoint srcList[1] = credentialInfo.AuthToken srcList[2] = credentialInfo.TenantId strHash, err := GenHash(srcList) AddKey("CLOUDIT", strHash, keyPairReqInfo.IId.NameId, privateKey)
func GenKeyPair ¶
generate a KeyPair with 4KB length returns: privateKeyBytes, publicKeyBytes, error
func MakePublicKeyFromPrivateKey ¶
ParseKey reads the given RSA private key and create a public one for it.
func ValidateWindowsPassword ¶ added in v0.6.15
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.