Searched refs:blocksize (Results 1 – 4 of 4) sorted by relevance
/net/sunrpc/auth_gss/ |
D | gss_krb5_wrap.c | 43 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_blkcipher_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 …]
|
D | gss_krb5_keys.c | 156 size_t blocksize, keybytes, keylength, n; in krb5_derive_key() local 162 blocksize = gk5e->blocksize; in krb5_derive_key() 179 inblockdata = kmalloc(blocksize, gfp_mask); in krb5_derive_key() 183 outblockdata = kmalloc(blocksize, gfp_mask); in krb5_derive_key() 192 inblock.len = blocksize; in krb5_derive_key() 195 outblock.len = blocksize; in krb5_derive_key() 244 memset(outblockdata, 0, blocksize); in krb5_derive_key() 247 memset(inblockdata, 0, blocksize); in krb5_derive_key()
|
D | gss_krb5_crypto.c | 651 int blocksize; in gss_krb5_aes_encrypt() local 669 blocksize = crypto_blkcipher_blocksize(cipher); in gss_krb5_aes_encrypt() 719 nblocks = (nbytes + blocksize - 1) / blocksize; in gss_krb5_aes_encrypt() 722 cbcbytes = (nblocks - 2) * blocksize; in gss_krb5_aes_encrypt() 775 int nblocks, blocksize, cbcbytes; in gss_krb5_aes_decrypt() local 790 blocksize = crypto_blkcipher_blocksize(cipher); in gss_krb5_aes_decrypt() 798 nblocks = (subbuf.len + blocksize - 1) / blocksize; in gss_krb5_aes_decrypt() 802 cbcbytes = (nblocks - 2) * blocksize; in gss_krb5_aes_decrypt()
|
D | gss_krb5_mech.c | 71 .blocksize = 8, 92 .blocksize = 1, 113 .blocksize = 8, 136 .blocksize = 16, 159 .blocksize = 16,
|