Home
last modified time | relevance | path

Searched refs:blocksize (Results 1 – 4 of 4) sorted by relevance

/net/sunrpc/auth_gss/
Dgss_krb5_wrap.c43 gss_krb5_padding(int blocksize, int length) in gss_krb5_padding() argument
45 return blocksize - (length % blocksize); in gss_krb5_padding()
49 gss_krb5_add_padding(struct xdr_buf *buf, int offset, int blocksize) in gss_krb5_add_padding() argument
51 int padding = gss_krb5_padding(blocksize, buf->len - offset); in gss_krb5_add_padding()
66 gss_krb5_remove_padding(struct xdr_buf *buf, int blocksize) in gss_krb5_remove_padding() argument
107 if (pad > blocksize) in gss_krb5_remove_padding()
164 int blocksize = 0, plainlen; in gss_wrap_kerberos_v1() local
177 blocksize = crypto_sync_skcipher_blocksize(kctx->enc); in gss_wrap_kerberos_v1()
178 gss_krb5_add_padding(buf, offset, blocksize); in gss_wrap_kerberos_v1()
179 BUG_ON((buf->len - offset) % blocksize); in gss_wrap_kerberos_v1()
[all …]
Dgss_krb5_keys.c147 size_t blocksize, keybytes, keylength, n; in krb5_derive_key() local
153 blocksize = gk5e->blocksize; in krb5_derive_key()
169 inblockdata = kmalloc(blocksize, gfp_mask); in krb5_derive_key()
173 outblockdata = kmalloc(blocksize, gfp_mask); in krb5_derive_key()
182 inblock.len = blocksize; in krb5_derive_key()
185 outblock.len = blocksize; in krb5_derive_key()
Dgss_krb5_crypto.c607 int blocksize; in gss_krb5_aes_encrypt() local
625 blocksize = crypto_sync_skcipher_blocksize(cipher); in gss_krb5_aes_encrypt()
670 nblocks = (nbytes + blocksize - 1) / blocksize; in gss_krb5_aes_encrypt()
673 cbcbytes = (nblocks - 2) * blocksize; in gss_krb5_aes_encrypt()
730 int nblocks, blocksize, cbcbytes; in gss_krb5_aes_decrypt() local
745 blocksize = crypto_sync_skcipher_blocksize(cipher); in gss_krb5_aes_decrypt()
753 nblocks = (subbuf.len + blocksize - 1) / blocksize; in gss_krb5_aes_decrypt()
757 cbcbytes = (nblocks - 2) * blocksize; in gss_krb5_aes_decrypt()
Dgss_krb5_mech.c50 .blocksize = 8,
72 .blocksize = 8,
95 .blocksize = 16,
118 .blocksize = 16,