package
Version:
v0.11.0
Opens a new window with list of versions in this module.
Published: Oct 20, 2022
License: Apache-2.0
Opens a new window with license information.
Imports: 18
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package google provides functions for key and signer generation in Google KMS.
-
func AsymKey(ctx context.Context, parent, id string) (*cloudkms.Key, error)
-
func Generate(cfg *configs.Config, ctx context.Context, keyIndex, weight int) (*flow.AccountKey, *keys.Private, error)
-
func Signer(ctx context.Context, key keys.Private) (crypto.Signer, error)
-
type GoogleKMSCrypter
AsymKey creates a new asymmetric signing key in Google KMS and returns
a cloudkms.Key (the "raw" result isn't needed)
Generate creates a new asymmetric signing & verification key in Google KMS
and returns the required data to use the key with the Flow blockchain
Signer creates a crypto.Signer for the given private key
(KMS key resource name)
type GoogleKMSCrypter struct {
}
NewGoogleKMSCrypter creates a new GoogleKMSCrypter
with the specified key (KMS key resource name)
Decrypt decryptes the given encrypted data with the symmetric encryption key
specified in the crypter
Encrypt encrypts the given data with the symmetric encryption key
specified in the crypter
Source Files
¶
Click to show internal directories.
Click to hide internal directories.