Documentation ¶
Index ¶
- func AsymmetricDecrypt(client *kms.Client, keyId, keyVersionId string, cipherBlob []byte, ...) (string, error)
- func AsymmetricEncrypt(client *kms.Client, keyId, keyVersionId, message, algorithm string) ([]byte, error)
- func AsymmetricSign(client *kms.Client, keyId, keyVersionId, message, algorithm string) ([]byte, error)
- func AsymmetricVerify(client *kms.Client, keyId, keyVersionId, message string, signature []byte, ...) (bool, error)
- func CancelKeyDeletion(client *kms.Client, keyId string) error
- func CreateAlias(client *kms.Client, aliasName, keyId string) error
- func CreateKey(client *kms.Client, keySpec, keyUsage, origin string) (string, error)
- func CreateKeyVersion(client *kms.Client, keyId string) (*kms.KeyVersion, error)
- func CreateKmsClient(regionId, accessKeyId, accessKeySecret string) (*kms.Client, error)
- func Decrypt(client *kms.Client, cipherTextBlob string) (string, error)
- func DeleteAlias(client *kms.Client, aliasName string) error
- func DeleteKeyMaterial(client *kms.Client, keyId string) error
- func DescribeKey(client *kms.Client, keyId string) (*kms.KeyMetadata, error)
- func DescribeKeyVersion(client *kms.Client, keyId, keyVersionId string) (*kms.KeyVersion, error)
- func DescribeRegions(client *kms.Client) ([]string, error)
- func DisableKey(client *kms.Client, keyId string) error
- func EcP256KVerify(client *kms.Client, keyId, keyVersionId, message string, signature []byte) error
- func EcP256Verify(client *kms.Client, keyId, keyVersionId, message string, signature []byte) error
- func EnableKey(client *kms.Client, keyId string) error
- func Encrypt(client *kms.Client, keyId, base64Plaintext string) (string, error)
- func GenerateDataKey(client *kms.Client, keyId string) (string, string, error)
- func GenerateDataKeyWithoutPlaintext(client *kms.Client, keyId string) (string, error)
- func GetAsymmetricPublicKey(client *kms.Client, keyId, keyVersionId string) (string, error)
- func GetParametersForImport(client *kms.Client, keyId, wrappingKeySpec, wrappingAlgorithm string) (string, string, error)
- func ImportKeyMaterial(client *kms.Client, keyId, importToken, encryptedKeyMaterial string) error
- func ListAliases(client *kms.Client) ([]kms.Alias, error)
- func ListAliasesByKeyId(client *kms.Client, keyId string) ([]string, error)
- func ListKeyVersions(client *kms.Client, keyId string) ([]kms.KeyVersion, error)
- func ListKeys(client *kms.Client) ([]string, error)
- func ListResourceTags(client *kms.Client, keyId string) ([]kms.Tag, error)
- func RsaEncrypt(client *kms.Client, keyId, keyVersionId, message, algorithm string) ([]byte, error)
- func RsaVerify(client *kms.Client, keyId, keyVersionId, message string, signature []byte, ...) error
- func ScheduleKeyDeletion(client *kms.Client, keyId string, pendingWindowInDays int) error
- func TagResource(client *kms.Client, keyId, tags string) error
- func UntagResource(client *kms.Client, keyId, tagsKeys string) error
- func UpdateAlias(client *kms.Client, aliasName, keyId string) error
- func UpdateKeyDescription(client *kms.Client, keyId, description string) error
- func UpdateRotationPolicy(client *kms.Client, keyId string, enableAutomaticRotation bool, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AsymmetricDecrypt ¶
func AsymmetricEncrypt ¶
func AsymmetricSign ¶
func AsymmetricVerify ¶
func CreateKey ¶
keySpec:Aliyun_AES_256、RSA_2048、EC_P256、EC_P256K keyUsage:ENCRYPT/DECRYPT、SIGN/VERIFY
func CreateKeyVersion ¶
func CreateKmsClient ¶
func DescribeKey ¶
func DescribeKeyVersion ¶
func EcP256KVerify ¶
func EcP256Verify ¶
func GenerateDataKey ¶
func GetAsymmetricPublicKey ¶
func GetParametersForImport ¶
func ImportKeyMaterial ¶
func ListAliasesByKeyId ¶
func ListKeyVersions ¶
func RsaEncrypt ¶
func ScheduleKeyDeletion ¶
pendingWindowInDays:密钥预删除周期,最小值7,最大值30
func UpdateKeyDescription ¶
Types ¶
This section is empty.
Source Files ¶
- cancel_key_deletion.go
- create_alias.go
- create_key.go
- create_key_version.go
- delete_alias.go
- delete_key_material.go
- describe_key.go
- describe_key_version.go
- describe_regions.go
- disable_key.go
- ec_verify.go
- enable_key.go
- generate_data_key.go
- get_parameters_for_import.go
- get_public_key.go
- import_key_material.go
- kms_client.go
- kms_decrypt.go
- kms_encrypt.go
- kms_sign.go
- kms_verify.go
- list_aliases.go
- list_key_versions.go
- list_keys.go
- list_resource_tags.go
- rsa_encrypt.go
- rsa_verify.go
- schedule_key_deletion.go
- tag_resource.go
- untag_resource.go
- update_alias.go
- update_key_description.go
- update_rotation_policy.go
Click to show internal directories.
Click to hide internal directories.