func (kp *kmsContextKeyHandler) DecryptKeyWithContext(ctx aws.Context, key []byte) ([]byte, error) {
	out, err := kp.kms.DecryptWithContext(ctx,
		&kms.DecryptInput{
			KeyId:             kp.cmkID, // will be nil and not serialized if created with the AnyCMK constructor
			EncryptionContext: kp.MaterialDescription,
			CiphertextBlob:    key,
			GrantTokens:       []*string{},
		})
	if err != nil {
		return nil, err
	}
	return out.Plaintext, nil
}
// DecryptKeyWithContext makes a call to KMS to decrypt the key with request context.
DecryptKeyWithContext makes a call to KMS to decrypt the key with request context.
// DecryptKeyWithContext makes a call to KMS to decrypt the key with request context .
func (kp *kmsContextKeyHandler) DecryptKeyWithContext(ctx aws.Context, key []byte) ([]byte, error) {
	out, err := kp.kms.DecryptWithContext(ctx,
		&kms.DecryptInput{
			KeyId:             kp.cmkID, 
			EncryptionContext: kp.MaterialDescription,
			CiphertextBlob:    key,
			GrantTokens:       []*string{},
		})
	if err != nil {
		return nil, err
	}
	return out.Plaintext, nil
}
func ( kp * kmsContextKeyHandler ) DecryptKeyWithContext ( ctx aws . Context , key [ ] byte ) ( [ ] byte , error ) { out , err := kp . kms . DecryptWithContext ( ctx , & kms . DecryptInput { KeyId : kp . cmkID , EncryptionContext : kp . MaterialDescription , CiphertextBlob : key , GrantTokens : [ ] * string { } , } ) if err != nil { return nil , err } return out . Plaintext , nil }
DecryptKeyWithContext makes a call to KMS to decrypt the key with request context.
DecryptKeyWithContext makes a call to KMS to decrypt the key with request context .
// will be nil and not serialized if created with the AnyCMK constructor