#include <random.h>
#include <gnutls_cipher_int.h>
+/* default values for priorities */
+int crypto_mac_prio = INT_MAX;
+int crypto_digest_prio = INT_MAX;
+int crypto_cipher_prio = INT_MAX;
+
typedef struct algo_list
{
int algorithm;
}
-int crypto_cipher_prio = INT_MAX;
-
gnutls_crypto_cipher_st _gnutls_cipher_ops = {
.init = wrap_gcry_cipher_init,
.setkey = wrap_gcry_cipher_setkey,
return GNUTLS_E_HASH_FAILED;
}
-int crypto_mac_prio = INT_MAX;
gnutls_crypto_mac_st _gnutls_mac_ops = {
.init = wrap_gcry_mac_init,
.deinit = wrap_gcry_md_close,
};
-int crypto_digest_prio = INT_MAX;
-
gnutls_crypto_digest_st _gnutls_digest_ops = {
.init = wrap_gcry_hash_init,
.hash = wrap_gcry_md_write,
gnutls_free(h);
}
-
-int crypto_cipher_prio = INT_MAX;
-
gnutls_crypto_cipher_st _gnutls_cipher_ops = {
.init = wrap_nettle_cipher_init,
.setkey = wrap_nettle_cipher_setkey,
return 0;
}
-int crypto_mac_prio = INT_MAX;
-
gnutls_crypto_mac_st _gnutls_mac_ops = {
.init = wrap_nettle_hmac_init,
.setkey = wrap_nettle_hmac_setkey,
.deinit = wrap_nettle_md_close,
};
-int crypto_digest_prio = INT_MAX;
-
gnutls_crypto_digest_st _gnutls_digest_ops = {
.init = wrap_nettle_hash_init,
.hash = wrap_nettle_hash_update,