[python module] update fko_new_with_data() call to include hmac_type
authorMichael Rash <mbr@cipherdyne.org>
Mon, 18 Mar 2013 03:03:48 +0000 (23:03 -0400)
committerMichael Rash <mbr@cipherdyne.org>
Mon, 18 Mar 2013 03:03:48 +0000 (23:03 -0400)
python/fkomodule.c

index 23d70d5..1ae8d8c 100644 (file)
@@ -310,14 +310,15 @@ init_ctx_with_data(PyObject *self, PyObject *args)
     int enc_mode;
     char *hmac_key;
     int hmac_key_len;
+    int hmac_type;
     int res;
 
     if(!PyArg_ParseTuple(args, "ss#is#", &spa_data, &dec_key, &dec_key_len,
-                         &enc_mode, &hmac_key, &hmac_key_len))
+                         &enc_mode, &hmac_key, &hmac_key_len, &hmac_type))
         return NULL;
 
     res = fko_new_with_data(&ctx, spa_data, dec_key, dec_key_len, enc_mode,
-                            hmac_key, hmac_key_len);
+                            hmac_key, hmac_key_len, hmac_type);
 
     if(res != FKO_SUCCESS)
     {