Пример #1
0
/* Cipher Suite's functions */
gnutls_cipher_algorithm_t
_gnutls_cipher_suite_get_cipher_algo (const uint8_t suite[2])
{
  int ret = 0;
  CIPHER_SUITE_ALG_LOOP (ret = p->block_algorithm);
  return ret;
}
Пример #2
0
/* Cipher Suite's functions */
const cipher_entry_st *_gnutls_cipher_suite_get_cipher_algo(const uint8_t
							    suite[2])
{
	int ret = 0;
	CIPHER_SUITE_ALG_LOOP(ret = p->block_algorithm);
	return cipher_to_entry(ret);
}
Пример #3
0
gnutls_mac_algorithm_t
_gnutls_cipher_suite_get_mac_algo (const uint8_t suite[2])
{                               /* In bytes */
  int ret = 0;
  CIPHER_SUITE_ALG_LOOP (ret = p->mac_algorithm);
  return ret;

}
Пример #4
0
const mac_entry_st *_gnutls_cipher_suite_get_mac_algo(const uint8_t
						      suite[2])
{				/* In bytes */
	int ret = 0;
	CIPHER_SUITE_ALG_LOOP(ret = p->mac_algorithm);
	return mac_to_entry(ret);

}
Пример #5
0
gnutls_mac_algorithm_t _gnutls_cipher_suite_get_prf(const uint8_t suite[2])
{
	int ret = 0;

	CIPHER_SUITE_ALG_LOOP(ret = p->prf);
	return ret;

}
Пример #6
0
const char *_gnutls_cipher_suite_get_name(const uint8_t suite[2])
{
	const char *ret = NULL;

	/* avoid prefix */
	CIPHER_SUITE_ALG_LOOP(ret = p->name + sizeof("GNUTLS_") - 1);

	return ret;
}