func googleKMSDecrypt(payload []byte, parentName string,
	kmsService *cloudkms.Service) (resultText []byte, err error) {
	req := &cloudkms.DecryptRequest{
		Ciphertext: base64.StdEncoding.EncodeToString(payload),
	}
	var resp *cloudkms.DecryptResponse
	if resp, err = kmsService.Projects.Locations.KeyRings.CryptoKeys.
		Decrypt(parentName, req).Do(); err != nil {
		return
	}
	var errm error
	resultText, errm = base64.StdEncoding.DecodeString(resp.Plaintext)
	check(errm)
	return
}
//googleKMSDecrypt uses google kms to decypt a bite slice
googleKMSDecrypt uses google kms to decypt a bite slice
// googleKMSDecrypt uses google kms to decypt a bite slice
func googleKMSDecrypt(payload []byte, parentName string,
	kmsService *cloudkms.Service) (resultText []byte, err error) {
	req := &cloudkms.DecryptRequest{
		Ciphertext: base64.StdEncoding.EncodeToString(payload),
	}
	var resp *cloudkms.DecryptResponse
	if resp, err = kmsService.Projects.Locations.KeyRings.CryptoKeys.
		Decrypt(parentName, req).Do(); err != nil {
		return
	}
	var errm error
	resultText, errm = base64.StdEncoding.DecodeString(resp.Plaintext)
	check(errm)
	return
}
func googleKMSDecrypt ( payload [ ] byte , parentName string , kmsService * cloudkms . Service ) ( resultText [ ] byte , err error ) { req := & cloudkms . DecryptRequest { Ciphertext : base64 . StdEncoding . EncodeToString ( payload ) , } var resp * cloudkms . DecryptResponse if resp , err = kmsService . Projects . Locations . KeyRings . CryptoKeys . Decrypt ( parentName , req ) . Do ( ) ; err != nil { return } var errm error resultText , errm = base64 . StdEncoding . DecodeString ( resp . Plaintext ) check ( errm ) return }
googleKMSDecrypt uses google kms to decypt a bite slice
googleKMSDecrypt uses google kms to decypt a bite slice