Lines Matching refs:cipherlen
378 size_t cipherlen; in encrypt_size() local
382 cipherlen = (size_t)P2ROUNDUP(null_hash.hash_len + in encrypt_size()
386 cipherlen = (size_t)P2ROUNDUP(md5_hash.hash_len + in encrypt_size()
391 cipherlen = (size_t)P2ROUNDUP(crc32_hash.hash_len + in encrypt_size()
396 cipherlen = (size_t)P2ROUNDUP(sha1_hash.confound_len + in encrypt_size()
401 cipherlen = (size_t)P2ROUNDUP(md5_hash.confound_len + in encrypt_size()
407 cipherlen = DEFAULT_AES_BLOCKLEN + plainlen + in encrypt_size()
412 cipherlen = plainlen; in encrypt_size()
416 return (cipherlen); in encrypt_size()
1658 size_t cipherlen; in aes_encrypt() local
1664 cipherlen = encrypt_size(&tmi->enc_data, inlen); in aes_encrypt()
1666 ASSERT(MBLKSIZE(mp) >= cipherlen); in aes_encrypt()
1706 mp->b_wptr = mp->b_rptr + cipherlen; in aes_encrypt()
1749 size_t cipherlen; in arcfour_hmac_md5_decrypt() local
1784 cipherlen = inlen - hash->hash_len; in arcfour_hmac_md5_decrypt()
1786 ASSERT(MBLKSIZE(mp) >= cipherlen); in arcfour_hmac_md5_decrypt()
1902 v1.iov_len = cipherlen; in arcfour_hmac_md5_decrypt()
1906 indata.cd_length = cipherlen; in arcfour_hmac_md5_decrypt()
1928 (char *)mp->b_rptr + hash->hash_len, cipherlen, in arcfour_hmac_md5_decrypt()
1982 size_t cipherlen; in arcfour_hmac_md5_encrypt() local
2016 cipherlen = encrypt_size(&tmi->enc_data, inlen); in arcfour_hmac_md5_encrypt()
2018 ASSERT(MBLKSIZE(mp) >= cipherlen); in arcfour_hmac_md5_encrypt()
2029 if (cipherlen > inlen) { in arcfour_hmac_md5_encrypt()
2238 size_t cipherlen; in des_cbc_encrypt() local
2254 cipherlen = encrypt_size(&tmi->enc_data, inlen); in des_cbc_encrypt()
2256 ASSERT(MBLKSIZE(mp) >= cipherlen); in des_cbc_encrypt()
2258 if (cipherlen > inlen) { in des_cbc_encrypt()
2290 cipherlen); in des_cbc_encrypt()
2323 plainlen = cipherlen - hash->hash_len; in des_cbc_encrypt()
2332 ASSERT(mp->b_rptr + cipherlen <= DB_LIM(mp)); in des_cbc_encrypt()
2333 mp->b_wptr = mp->b_rptr + cipherlen; in des_cbc_encrypt()
2335 CRYPTO_DATA_MBLK, (size_t)cipherlen, in des_cbc_encrypt()
2344 cipherlen, result); in des_cbc_encrypt()
2363 mp->b_wptr = mp->b_rptr + cipherlen; in des_cbc_encrypt()
2964 size_t cipherlen; in encrypt_block() local
2976 cipherlen = encrypt_size(&tmi->enc_data, (size_t)ptlen); in encrypt_block()
2998 if ((cipherlen + extra >= MBLKSIZE(mp)) || DB_REF(mp) > 1) { in encrypt_block()
2999 int sz = P2ROUNDUP(cipherlen+extra, 8); in encrypt_block()
3041 if ((cbp->b_rptr + P2ROUNDUP(cipherlen + extra, 8) > in encrypt_block()