Lines Matching refs:blocksize
43 gss_krb5_padding(int blocksize, int length)
45 return blocksize - (length % blocksize);
49 gss_krb5_add_padding(struct xdr_buf *buf, int offset, int blocksize)
51 int padding = gss_krb5_padding(blocksize, buf->len - offset);
66 gss_krb5_remove_padding(struct xdr_buf *buf, int blocksize)
94 if (pad > blocksize)
148 int blocksize = 0, plainlen;
161 blocksize = crypto_blkcipher_blocksize(kctx->enc);
162 gss_krb5_add_padding(buf, offset, blocksize);
163 BUG_ON((buf->len - offset) % blocksize);
174 BUG_ON((buf->len - offset - headlen) % blocksize);
255 int blocksize;
346 blocksize = crypto_blkcipher_blocksize(kctx->enc);
355 if (gss_krb5_remove_padding(buf, blocksize))
383 int blocksize;
416 blocksize = crypto_blkcipher_blocksize(kctx->acceptor_enc);