add serializer
[pam_pcsc_cr.git] / tom_crypto.c
index d77433384a34515ca92b1a2aa9369a2ed36af09c..fa4fc5dabb0ae3d10a53c5e4753c6210a8cf2447 100644 (file)
@@ -5,6 +5,12 @@
 
 #include "crypto_if.h"
 
 
 #include "crypto_if.h"
 
+static const char *tom_init(void)
+{
+       /* nothing to initialize */
+       return "tomcrypt";
+}
+
 static unsigned long tom_encrypt(void *key, int keylen, void *iv,
                        void *pt, void *ct, int tlen)
 {
 static unsigned long tom_encrypt(void *key, int keylen, void *iv,
                        void *pt, void *ct, int tlen)
 {
@@ -66,7 +72,7 @@ static const char *tom_errstr(unsigned long err)
 }
 
 struct crypto_interface tom_crypto_if = {
 }
 
 struct crypto_interface tom_crypto_if = {
-       .name           = "tomcrypt",
+       .init           = tom_init,
        .encrypt        = tom_encrypt,
        .decrypt        = tom_decrypt,
        .hash           = tom_hash,
        .encrypt        = tom_encrypt,
        .decrypt        = tom_decrypt,
        .hash           = tom_hash,