crypto: drbg - add async seeding operation
[firefly-linux-kernel-4.4.55.git] / include / crypto / drbg.h
index b0526981aa85dc896fe2774ec824d9965915cf4d..46994b25dc859d6cb853ac27600fbbacfe0582e0 100644 (file)
@@ -51,6 +51,7 @@
 #include <linux/fips.h>
 #include <linux/mutex.h>
 #include <linux/list.h>
+#include <linux/workqueue.h>
 
 /*
  * Concatenation Helper and string operation helper
@@ -119,6 +120,7 @@ struct drbg_state {
        bool fips_primed;       /* Continuous test primed? */
        unsigned char *prev;    /* FIPS 140-2 continuous test value */
 #endif
+       struct work_struct seed_work;   /* asynchronous seeding support */
        u8 *seed_buf;                   /* buffer holding the seed */
        size_t seed_buf_len;
        const struct drbg_state_ops *d_ops;