CMAC support for cipher with 64bit blocks (DES/3DES)
diff --git a/include/mbedtls/cmac.h b/include/mbedtls/cmac.h
index c2ae83b..3e02f91 100644
--- a/include/mbedtls/cmac.h
+++ b/include/mbedtls/cmac.h
@@ -37,8 +37,8 @@
  */
 typedef struct {
     mbedtls_cipher_context_t cipher_ctx;    /*!< cipher context used */
-    unsigned char K1[16];
-    unsigned char K2[16];
+    unsigned char* K1;
+    unsigned char* K2;
 }
 mbedtls_cmac_context;
 
@@ -108,9 +108,8 @@
 
 /**
  * \brief           AES-CMAC-128-PRF
- * TODO: add reference to the standard
+ *  See RFC
  *
- * \param ctx       CMAC context
  * \param key       PRF key
  * \param key_len   PRF key length
  * \param input     buffer holding the input data
@@ -120,8 +119,7 @@
  *
  * \return          0 if successful
  */
-int mbedtls_aes_cmac_prf_128( mbedtls_cmac_context *ctx,
-                              const unsigned char *key, size_t key_len,
+int mbedtls_aes_cmac_prf_128( const unsigned char *key, size_t key_len,
                               const unsigned char *input, size_t in_len,
                               unsigned char *tag );