crypto: jitter - Allow configuration of memory size
[linux-2.6-block.git] / crypto / jitterentropy-kcapi.c
index 1de730f94683085ff588e9911d6ed8cb3bcc8d01..a8e7bbd28c6eb4a1a4a9e0d0704707e58f8f2405 100644 (file)
  * Helper function
  ***************************************************************************/
 
+void *jent_kvzalloc(unsigned int len)
+{
+       return kvzalloc(len, GFP_KERNEL);
+}
+
+void jent_kvzfree(void *ptr, unsigned int len)
+{
+       memzero_explicit(ptr, len);
+       kvfree(ptr);
+}
+
 void *jent_zalloc(unsigned int len)
 {
        return kzalloc(len, GFP_KERNEL);