func awsKMSEncrypt(payload []byte, keyname string, svc *kms.KMS) (resultText []byte, err error) {
	input := &kms.EncryptInput{
		KeyId:     aws.String(keyname),
		Plaintext: payload,
	}
	result, err := svc.Encrypt(input)
	if err == nil {
		resultText = result.CiphertextBlob
	}
	return
}
//awsKMSEncrypt uses aws kms to encypt a bite slice
awsKMSEncrypt uses aws kms to encypt a bite slice
// awsKMSEncrypt uses aws kms to encypt a bite slice
func awsKMSEncrypt(payload []byte, keyname string, svc *kms.KMS) (resultText []byte, err error) {
	input := &kms.EncryptInput{
		KeyId:     aws.String(keyname),
		Plaintext: payload,
	}
	result, err := svc.Encrypt(input)
	if err == nil {
		resultText = result.CiphertextBlob
	}
	return
}
func awsKMSEncrypt ( payload [ ] byte , keyname string , svc * kms . KMS ) ( resultText [ ] byte , err error ) { input := & kms . EncryptInput { KeyId : aws . String ( keyname ) , Plaintext : payload , } result , err := svc . Encrypt ( input ) if err == nil { resultText = result . CiphertextBlob } return }
awsKMSEncrypt uses aws kms to encypt a bite slice
awsKMSEncrypt uses aws kms to encypt a bite slice