func hexEncodedLen(val uint64) uint64 {
	return val * 2
}
hexEncodedLen return length of hex encoded data of <val> length
package postgresql
import (
	"bytes"
	"encoding/binary"
	"encoding/hex"
	"io"
	"github.com/cossacklabs/acra/decryptor/base"
	"github.com/cossacklabs/acra/keystore"
	"github.com/cossacklabs/acra/logging"
	"github.com/cossacklabs/acra/utils"
	"github.com/cossacklabs/acra/zone"
	"github.com/cossacklabs/themis/gothemis/cell"
	"github.com/cossacklabs/themis/gothemis/keys"
	"github.com/cossacklabs/themis/gothemis/message"
	log "github.com/sirupsen/logrus"
)
var (
	HexTagBegin          = []byte(hex.EncodeToString(base.TagBegin))
	HexZoneIDBegin       = []byte(hex.EncodeToString(zone.ZoneIDBegin))
	HexZoneTagLength     = len(HexZoneIDBegin)
	HexZoneIDLength      = hex.EncodedLen(16)
	HexZoneIDBlockLength = int(HexZoneTagLength + HexZoneIDLength)
)