Lines Matching defs:sha_pad
73 * static data area. That means sha_pad needs to be kmalloc'd.
76 struct sha_pad {
80 static struct sha_pad *sha_pad;
82 static inline void sha_pad_init(struct sha_pad *shapad)
136 crypto_shash_update(state->sha1, sha_pad->sha_pad1,
137 sizeof(sha_pad->sha_pad1));
140 crypto_shash_update(state->sha1, sha_pad->sha_pad2,
141 sizeof(sha_pad->sha_pad2));
666 sha_pad = kmalloc(sizeof(struct sha_pad), GFP_KERNEL);
667 if (!sha_pad)
669 sha_pad_init(sha_pad);
676 kfree(sha_pad);
684 kfree(sha_pad);