Added SILC MAC API, removed the SILC HMAC API.
[crypto.git] / lib / silccrypt / silccrypto.c
index c4ac5ded38de17987edf9171cefb20eea2d1be28..e383c82dc487c8393b0ad4881a9446a929b27430 100644 (file)
@@ -4,7 +4,7 @@
 
   Author: Pekka Riikonen <priikone@silcnet.org>
 
-  Copyright (C) 2007 Pekka Riikonen
+  Copyright (C) 2007 - 2008 Pekka Riikonen
 
   This program is free software; you can redistribute it and/or modify
   it under the terms of the GNU General Public License as published by
@@ -17,7 +17,7 @@
 
 */
 
-#include "silc.h"
+#include "silccrypto.h"
 
 #ifndef SILC_SYMBIAN
 SilcStack crypto_stack = NULL;         /* Crypto Toolkit's global stack */
@@ -43,7 +43,7 @@ SilcBool silc_crypto_init(SilcStack stack)
     SILC_LOG_ERROR(("Error registering hash functions"));
     goto err;
   }
-  if (!silc_hmac_register_default()) {
+  if (!silc_mac_register_default()) {
     SILC_LOG_ERROR(("Error registering hash HMACs"));
     goto err;
   }
@@ -75,7 +75,7 @@ void silc_crypto_uninit(void)
 
   /* Uninit crypto library */
   silc_pkcs_unregister_all();
-  silc_hmac_unregister_all();
+  silc_mac_unregister_all();
   silc_hash_unregister_all();
   silc_cipher_unregister_all();