func cipherText(text []byte, cipherblock cipher.Block, nonce []byte,
	seal bool) (ciphertext []byte) {
	aesgcm, err := cipher.NewGCM(cipherblock)
	check(err)
	var errm error
	if seal {
		ciphertext = aesgcm.Seal(nil, nonce, text, nil)
	} else {
		ciphertext, errm = aesgcm.Open(nil, nonce, text, nil)
	}
	check(errm)
	return
}
//cipherText seals or opens the text
cipherText seals or opens the text
// cipherText seals or opens the text
func cipherText(text []byte, cipherblock cipher.Block, nonce []byte,
	seal bool) (ciphertext []byte) {
	aesgcm, err := cipher.NewGCM(cipherblock)
	check(err)
	var errm error
	if seal {
		ciphertext = aesgcm.Seal(nil, nonce, text, nil)
	} else {
		ciphertext, errm = aesgcm.Open(nil, nonce, text, nil)
	}
	check(errm)
	return
}
func cipherText ( text [ ] byte , cipherblock cipher . Block , nonce [ ] byte , seal bool ) ( ciphertext [ ] byte ) { aesgcm , err := cipher . NewGCM ( cipherblock ) check ( err ) var errm error if seal { ciphertext = aesgcm . Seal ( nil , nonce , text , nil ) } else { ciphertext , errm = aesgcm . Open ( nil , nonce , text , nil ) } check ( errm ) return }
cipherText seals or opens the text
cipherText seals or opens the text