Lines Matching refs:spec

533 	KSSLCipherSpec *spec;  in kssl_handle_mblk()  local
639 spec = &ssl->spec[KSSL_READ]; in kssl_handle_mblk()
640 mac_sz = spec->mac_hashsz; in kssl_handle_mblk()
641 if (spec->cipher_ctx != 0) { in kssl_handle_mblk()
648 if ((spec->cipher_type == type_block) && in kssl_handle_mblk()
649 ((rec_sz & (spec->cipher_bsize - 1)) != 0)) { in kssl_handle_mblk()
652 int, spec->cipher_bsize); in kssl_handle_mblk()
665 error = crypto_decrypt_update(spec->cipher_ctx, in kssl_handle_mblk()
677 if (spec->cipher_type == type_block) { in kssl_handle_mblk()
796 KSSLCipherSpec *spec; in kssl_handle_any_record() local
855 spec = &ssl->spec[KSSL_READ]; in kssl_handle_any_record()
856 mac_sz = spec->mac_hashsz; in kssl_handle_any_record()
857 if (spec->cipher_ctx != 0) { in kssl_handle_any_record()
862 if ((spec->cipher_type == type_block) && in kssl_handle_any_record()
863 ((rec_sz & (spec->cipher_bsize - 1)) != 0)) { in kssl_handle_any_record()
865 uint16_t, rec_sz, int, spec->cipher_bsize); in kssl_handle_any_record()
872 spec->cipher_data.cd_length = rec_sz; in kssl_handle_any_record()
873 spec->cipher_data.cd_raw.iov_base = (char *)mp->b_rptr; in kssl_handle_any_record()
874 spec->cipher_data.cd_raw.iov_len = rec_sz; in kssl_handle_any_record()
875 error = crypto_decrypt_update(spec->cipher_ctx, in kssl_handle_any_record()
876 &spec->cipher_data, NULL, NULL); in kssl_handle_any_record()
886 if (spec->cipher_type == type_block) { in kssl_handle_any_record()
1262 KSSLCipherSpec *spec; in kssl_build_single_record() local
1266 spec = &ssl->spec[KSSL_WRITE]; in kssl_build_single_record()
1267 mac_sz = spec->mac_hashsz; in kssl_build_single_record()
1271 ASSERT(mp->b_datap->db_lim - mp->b_wptr >= mac_sz + spec->cipher_bsize); in kssl_build_single_record()
1295 if (spec->cipher_type == type_block) { in kssl_build_single_record()
1296 pad_sz = spec->cipher_bsize - in kssl_build_single_record()
1297 (reclen & (spec->cipher_bsize - 1)); in kssl_build_single_record()