Exemple #1
0
int bin2b64str_revendian(const BYTE *bindata, size_t size, char *buf)
{
	BYTE *rev = new BYTE [size];

	if (!rev) return -1;

	rev_order(bindata, rev, size);
	int	ret = bin2b64str(rev, size, buf);
	delete [] rev;

	return	ret;
}
Exemple #2
0
int bin2b64str_revendian(const BYTE *bindata, int len, char *buf)
{
	BYTE *rev = new BYTE [len];

	if (!rev) return -1;

	rev_order(bindata, rev, len);
	int	ret = bin2b64str(rev, len, buf);
	delete [] rev;

	return	ret;
}
Exemple #3
0
size_t b64str2bin_revendian(const char *s, BYTE *bindata, size_t maxsize)
{
	size_t	size = b64str2bin(s, bindata, maxsize);
	rev_order(bindata, size);
	return	size;
}
Exemple #4
0
BOOL b64str2bin_revendian(const char *buf, BYTE *bindata, int maxlen, int *len)
{
	if (!b64str2bin(buf, bindata, maxlen, len)) return FALSE;
	rev_order(bindata, *len);
	return	TRUE;
}