Lines Matching refs:pad_len
60 int pad_len; member
332 int total_size, blocks, pad_len, out_size; in crypto_write() local
335 total_size = size + c->pad_len; in crypto_write()
336 pad_len = total_size % BLOCKSIZE; in crypto_write()
337 out_size = total_size - pad_len; in crypto_write()
346 if (c->pad_len) { in crypto_write()
347 memcpy(&c->pad[c->pad_len], buf, BLOCKSIZE - c->pad_len); in crypto_write()
353 &c->write_buf[c->pad_len ? BLOCKSIZE : 0], in crypto_write()
354 &buf[c->pad_len ? BLOCKSIZE - c->pad_len : 0], in crypto_write()
361 memcpy(c->pad, &buf[size - pad_len], pad_len); in crypto_write()
363 memcpy(&c->pad[c->pad_len], buf, size); in crypto_write()
365 c->pad_len = pad_len; in crypto_write()
377 int pad = BLOCKSIZE - c->pad_len; in crypto_close()
379 memset(&c->pad[c->pad_len], pad, pad); in crypto_close()