Lines Matching refs:SHA1_BLOCK_SIZE
33 #define SHA1_BLOCK_SIZE 64
38 u8 buf[2 * SHA1_BLOCK_SIZE];
65 if (index + len < SHA1_BLOCK_SIZE)
70 memcpy(sctx->buf + index, data, SHA1_BLOCK_SIZE - index);
72 SHA1_BLOCK_SIZE);
73 BUG_ON(ret != SHA1_BLOCK_SIZE);
74 data += SHA1_BLOCK_SIZE - index;
75 len -= SHA1_BLOCK_SIZE - index;
79 if (len >= SHA1_BLOCK_SIZE) {
81 len & ~(SHA1_BLOCK_SIZE - 1));
82 BUG_ON(ret != (len & ~(SHA1_BLOCK_SIZE - 1)));
103 end = (index < 56) ? SHA1_BLOCK_SIZE : (2 * SHA1_BLOCK_SIZE);
131 .cra_blocksize = SHA1_BLOCK_SIZE,