Пример #1
0
// Returns name of EA, cascaded cipher names are separated by hyphens
char *EAGetName (char *buf, int ea)
{
	int i = EAGetLastCipher(ea);
	strcpy (buf, (i != 0) ? CipherGetName (i) : "?");

	while (i = EAGetPreviousCipher(ea, i))
	{
		strcat (buf, "-");
		strcat (buf, CipherGetName (i));
	}

	return buf;
}
Пример #2
0
// Returns name of EA, cascaded cipher names are separated by hyphens
char *EAGetName (char *buf, int ea, int guiDisplay)
{
	if (guiDisplay)
	{
		EAGetDisplayName (buf, ea, EAGetLastCipher(ea));
	}
	else
	{
		int i = EAGetLastCipher(ea);
		strcpy (buf, (i != 0) ? CipherGetName (i) : "?");

		while (i = EAGetPreviousCipher(ea, i))
		{
			strcat (buf, "-");
			strcat (buf, CipherGetName (i));
		}
	}
	return buf;
}
Пример #3
0
static void EAGetDisplayName(char *buf, int ea, int i)
{
	strcpy (buf, CipherGetName (i));
	if (i = EAGetPreviousCipher(ea, i))
	{
		strcat (buf, "(");
		EAGetDisplayName (&buf[strlen(buf)], ea, i);
		strcat (buf, ")");
	}
}