Lines Matching refs:plainlen

376 encrypt_size(struct cipher_data_t *cd, size_t plainlen)  in encrypt_size()  argument
383 plainlen, 8); in encrypt_size()
388 plainlen, 8); in encrypt_size()
393 plainlen, 8); in encrypt_size()
397 plainlen, 8) + in encrypt_size()
402 plainlen, 1) + md5_hash.hash_len; in encrypt_size()
407 cipherlen = DEFAULT_AES_BLOCKLEN + plainlen + in encrypt_size()
412 cipherlen = plainlen; in encrypt_size()
2240 size_t plainlen; in des_cbc_encrypt() local
2323 plainlen = cipherlen - hash->hash_len; in des_cbc_encrypt()
2325 mp->b_wptr = mp->b_rptr + plainlen; in des_cbc_encrypt()
2328 (void *)mp, (size_t)plainlen, in des_cbc_encrypt()
2329 (char *)(mp->b_rptr + plainlen), in des_cbc_encrypt()
2958 encrypt_block(queue_t *q, struct tmodinfo *tmi, mblk_t *mp, size_t plainlen) in encrypt_block() argument
2966 uint32_t ptlen = (uint32_t)plainlen; in encrypt_block()
3014 ASSERT(cbp->b_rptr + P2ROUNDUP(plainlen+headspace, 8) in encrypt_block()
3018 bcopy(mp->b_rptr, cbp->b_rptr, plainlen); in encrypt_block()
3019 cbp->b_wptr = cbp->b_rptr + plainlen; in encrypt_block()
3045 plainlen); in encrypt_block()
3047 cbp->b_wptr = cbp->b_rptr + plainlen; in encrypt_block()
3062 *(cbp->b_rptr + 3) = (uchar_t)(plainlen & 0xff); in encrypt_block()
3063 *(cbp->b_rptr + 2) = (uchar_t)((plainlen >> 8) & 0xff); in encrypt_block()
3064 *(cbp->b_rptr + 1) = (uchar_t)((plainlen >> 16) & 0xff); in encrypt_block()
3065 *(cbp->b_rptr) = (uchar_t)((plainlen >> 24) & 0xff); in encrypt_block()
3079 lp = mklenmp(newmp, plainlen); in encrypt_block()
3100 size_t plainlen, outlen; in encrypt_msgb() local
3108 plainlen = MBLKL(mp); in encrypt_msgb()
3109 if (plainlen == 0) in encrypt_msgb()
3116 while ((plainlen = MBLKL(mp)) > MSGBUF_SIZE) { in encrypt_msgb()
3145 if ((plainlen = MBLKL(mp)) > 0) in encrypt_msgb()
3146 newmp = encrypt_block(q, tmi, mp, plainlen); in encrypt_msgb()