Home
last modified time | relevance | path

Searched refs:cd_offset (Results 1 – 25 of 43) sorted by relevance

12

/illumos-gate/usr/src/uts/common/crypto/io/
H A Daes.c462 saved_offset = ciphertext->cd_offset; in aes_encrypt()
484 ciphertext->cd_offset = ciphertext->cd_length; in aes_encrypt()
494 ciphertext->cd_offset - saved_offset; in aes_encrypt()
496 ciphertext->cd_offset = saved_offset; in aes_encrypt()
505 ciphertext->cd_offset = ciphertext->cd_length; in aes_encrypt()
516 ciphertext->cd_offset - saved_offset; in aes_encrypt()
518 ciphertext->cd_offset = saved_offset; in aes_encrypt()
588 saved_offset = plaintext->cd_offset; in aes_decrypt()
604 plaintext->cd_offset = plaintext->cd_length; in aes_decrypt()
613 plaintext->cd_offset - saved_offset; in aes_decrypt()
[all …]
H A Darcfour.c269 start = input->cd_raw.iov_base + input->cd_offset; in rc4_crypt_update()
287 mp1 = advance_position(mp, input->cd_offset, &start); in rc4_crypt_update()
292 mp2 = advance_position(mp, input->cd_offset + in rc4_crypt_update()
316 off_t offset = input->cd_offset; in rc4_crypt_update()
371 saveoffset = output->cd_offset; in rc4_crypt_update()
376 start = input->cd_raw.iov_base + input->cd_offset; in rc4_crypt_update()
397 mp1 = advance_position(mp, input->cd_offset, &start); in rc4_crypt_update()
402 mp2 = advance_position(mp, input->cd_offset + input->cd_length, in rc4_crypt_update()
426 output->cd_offset += len; in rc4_crypt_update()
433 off_t offset = input->cd_offset; in rc4_crypt_update()
[all …]
H A Dsha1_mod.c267 off_t offset = data->cd_offset; in sha1_digest_update_uio()
331 off_t offset = digest->cd_offset; in sha1_digest_final_uio()
423 off_t offset = data->cd_offset; in sha1_digest_update_mblk()
476 off_t offset = digest->cd_offset; in sha1_digest_final_mblk()
573 (uint8_t *)data->cd_raw.iov_base + data->cd_offset, in sha1_digest()
603 digest->cd_offset, &PROV_SHA1_CTX(ctx)->sc_sha1_ctx); in sha1_digest()
645 (uint8_t *)data->cd_raw.iov_base + data->cd_offset, in sha1_digest_update()
688 digest->cd_offset, &PROV_SHA1_CTX(ctx)->sc_sha1_ctx); in sha1_digest_final()
740 (uint8_t *)data->cd_raw.iov_base + data->cd_offset, in sha1_digest_atomic()
766 digest->cd_offset, &sha1_ctx); in sha1_digest_atomic()
[all …]
H A Dmd4_mod.c237 off_t offset = data->cd_offset; in md4_digest_update_uio()
300 off_t offset = digest->cd_offset; in md4_digest_final_uio()
392 off_t offset = data->cd_offset; in md4_digest_update_mblk()
445 off_t offset = digest->cd_offset; in md4_digest_final_mblk()
542 data->cd_raw.iov_base + data->cd_offset, in md4_digest()
572 digest->cd_offset, &PROV_MD4_CTX(ctx)->mc_md4_ctx); in md4_digest()
614 data->cd_raw.iov_base + data->cd_offset, in md4_digest_update()
657 digest->cd_offset, &PROV_MD4_CTX(ctx)->mc_md4_ctx); in md4_digest_final()
708 MD4Update(&md4_ctx, data->cd_raw.iov_base + data->cd_offset, in md4_digest_atomic()
734 digest->cd_offset, &md4_ctx); in md4_digest_atomic()
H A Dblowfish.c443 saved_offset = ciphertext->cd_offset; in blowfish_encrypt_update()
472 ciphertext->cd_offset - saved_offset; in blowfish_encrypt_update()
476 ciphertext->cd_offset = saved_offset; in blowfish_encrypt_update()
506 saved_offset = plaintext->cd_offset; in blowfish_decrypt_update()
535 plaintext->cd_offset - saved_offset; in blowfish_decrypt_update()
539 plaintext->cd_offset = saved_offset; in blowfish_decrypt_update()
634 saved_offset = ciphertext->cd_offset; in blowfish_encrypt_atomic()
670 ciphertext->cd_offset - saved_offset; in blowfish_encrypt_atomic()
674 ciphertext->cd_offset = saved_offset; in blowfish_encrypt_atomic()
721 saved_offset = plaintext->cd_offset; in blowfish_decrypt_atomic()
[all …]
H A Dmd5_mod.c322 off_t offset = data->cd_offset; in md5_digest_update_uio()
385 off_t offset = digest->cd_offset; in md5_digest_final_uio()
477 off_t offset = data->cd_offset; in md5_digest_update_mblk()
530 off_t offset = digest->cd_offset; in md5_digest_final_mblk()
627 data->cd_raw.iov_base + data->cd_offset, in md5_digest()
657 digest->cd_offset, &PROV_MD5_CTX(ctx)->mc_md5_ctx); in md5_digest()
699 data->cd_raw.iov_base + data->cd_offset, in md5_digest_update()
742 digest->cd_offset, &PROV_MD5_CTX(ctx)->mc_md5_ctx); in md5_digest_final()
793 MD5Update(&md5_ctx, data->cd_raw.iov_base + data->cd_offset, in md5_digest_atomic()
819 digest->cd_offset, &md5_ctx); in md5_digest_atomic()
[all …]
H A Dsha2_mod.c296 off_t offset = data->cd_offset; in sha2_digest_update_uio()
358 off_t offset = digest->cd_offset; in sha2_digest_final_uio()
456 off_t offset = data->cd_offset; in sha2_digest_update_mblk()
509 off_t offset = digest->cd_offset; in sha2_digest_final_mblk()
630 (uint8_t *)data->cd_raw.iov_base + data->cd_offset, in sha2_digest()
660 digest->cd_offset, &PROV_SHA2_CTX(ctx)->sc_sha2_ctx); in sha2_digest()
701 (uint8_t *)data->cd_raw.iov_base + data->cd_offset, in sha2_digest_update()
765 digest->cd_offset, &PROV_SHA2_CTX(ctx)->sc_sha2_ctx); in sha2_digest_final()
812 cd_raw.iov_base + data->cd_offset, data->cd_length); in sha2_digest_atomic()
846 digest->cd_offset, &sha2_ctx); in sha2_digest_atomic()
[all …]
H A Dskein_mod.c265 off_t offset = data->cd_offset; in skein_digest_update_uio()
322 off_t offset = digest->cd_offset; in skein_digest_final_uio()
393 off_t offset = data->cd_offset; in skein_digest_update_mblk()
438 off_t offset = digest->cd_offset; in skein_digest_final_mblk()
574 (uint8_t *)data->cd_raw.iov_base + data->cd_offset, in skein_update()
613 (uint8_t *)digest->cd_raw.iov_base + digest->cd_offset); in skein_final()
H A Ddca.c2711 ninput->cd_offset = input->cd_offset; in dca_dupcrypto()
2818 off += data->cd_offset; in dca_getbufbytes()
3048 off_t off = in->cd_offset; in dca_gather()
3065 bcopy(in->cd_raw.iov_base + in->cd_offset, dest, count); in dca_gather()
3066 in->cd_offset += count; in dca_gather()
3103 in->cd_offset += cur_len; in dca_gather()
3149 in->cd_offset += cur_len; in dca_gather()
3184 off_t off = in->cd_offset; in dca_resid_gather()
3216 bcopy(in->cd_raw.iov_base + in->cd_offset, dest, count); in dca_resid_gather()
3217 in->cd_offset += count; in dca_resid_gather()
[all …]
/illumos-gate/usr/src/lib/pkcs11/pkcs11_softtoken/common/
H A DsoftAESCrypt.c336 .cd_offset = 0, in soft_aes_encrypt()
425 out.cd_offset = *pulEncryptedDataLen; in soft_aes_encrypt()
495 *pulEncryptedDataLen = out.cd_offset; in soft_aes_encrypt()
579 out_orig->cd_offset = 0; in soft_aes_cbc_pad_decrypt()
595 out.cd_offset -= pad_len; in soft_aes_cbc_pad_decrypt()
611 if (out.cd_offset <= out_orig->cd_length) { in soft_aes_cbc_pad_decrypt()
613 out.cd_offset); in soft_aes_cbc_pad_decrypt()
622 out_orig->cd_offset = out.cd_offset; in soft_aes_cbc_pad_decrypt()
646 .cd_offset = 0, in soft_aes_decrypt()
688 *pulDataLen = out.cd_offset; in soft_aes_decrypt()
[all …]
H A DsoftDESCrypt.c381 out.cd_offset = 0; in soft_des_encrypt_common()
417 out.cd_offset = out_len; in soft_des_encrypt_common()
697 out.cd_offset = 0; in soft_des_decrypt_common()
712 out.cd_offset = 0; in soft_des_decrypt_common()
H A DsoftBlowfishCrypt.c268 out.cd_offset = 0; in soft_blowfish_encrypt_common()
431 out.cd_offset = 0; in soft_blowfish_decrypt_common()
/illumos-gate/usr/src/common/crypto/modes/
H A Dmodes.c51 *current_offset = out->cd_offset; in crypto_init_ptrs()
58 offset = out->cd_offset; in crypto_init_ptrs()
72 offset = out->cd_offset; in crypto_init_ptrs()
243 off_t offset = data->cd_offset; in crypto_uio_data()
333 off_t offset = data->cd_offset; in crypto_mblk_data()
417 if (MAXOFF_T - output->cd_offset < (off_t)len) { in crypto_put_output_data()
420 if (output->cd_raw.iov_len < len + output->cd_offset) { in crypto_put_output_data()
425 output->cd_offset), len); in crypto_put_output_data()
H A Dctr.c186 if (out->cd_offset < 0) in ctr_mode_contiguous_blocks()
188 if (SIZE_MAX - in_length < (size_t)out->cd_offset) in ctr_mode_contiguous_blocks()
195 if (out->cd_offset + in_length > out->cd_length) in ctr_mode_contiguous_blocks()
234 out->cd_offset += in_length; in ctr_mode_contiguous_blocks()
H A Dgcm.c220 out->cd_offset += block_size; in gcm_mode_encrypt_contiguous_blocks()
315 out->cd_offset += ctx->gcm_remainder_len; in gcm_encrypt_final()
320 out->cd_offset += ctx->gcm_tag_len; in gcm_encrypt_final()
479 out->cd_offset += pt_len; in gcm_decrypt_final()
/illumos-gate/usr/src/uts/common/fs/zfs/
H A Dhkdf.c47 input_cd.cd_offset = 0; in hkdf_sha512_extract()
53 output_cd.cd_offset = 0; in hkdf_sha512_extract()
94 T_cd.cd_offset = 0; in hkdf_sha512_expand()
98 c_cd.cd_offset = 0; in hkdf_sha512_expand()
104 info_cd.cd_offset = 0; in hkdf_sha512_expand()
/illumos-gate/usr/src/uts/common/gssapi/mechs/krb5/crypto/hash_provider/
H A Dhash_kef_generic.c34 d2.cd_offset = 0; in k5_ef_hash()
59 d1.cd_offset = 0; in k5_ef_hash()
110 d2.cd_offset = 0; in k5_ef_mac()
129 d1.cd_offset = 0; in k5_ef_mac()
/illumos-gate/usr/src/uts/common/des/
H A Ddes_crypt.c635 saved_offset = ciphertext->cd_offset; in des_encrypt_update()
664 ciphertext->cd_offset - saved_offset; in des_encrypt_update()
668 ciphertext->cd_offset = saved_offset; in des_encrypt_update()
697 saved_offset = plaintext->cd_offset; in des_decrypt_update()
726 plaintext->cd_offset - saved_offset; in des_decrypt_update()
730 plaintext->cd_offset = saved_offset; in des_decrypt_update()
844 saved_offset = ciphertext->cd_offset; in des_encrypt_atomic()
876 ciphertext->cd_offset - saved_offset; in des_encrypt_atomic()
880 ciphertext->cd_offset = saved_offset; in des_encrypt_atomic()
947 saved_offset = plaintext->cd_offset; in des_decrypt_atomic()
[all …]
/illumos-gate/usr/src/uts/common/crypto/core/
H A Dkcf_prov_lib.c53 input->cd_offset); in crypto_get_input_data()
146 data->cd_offset); in crypto_digest_data()
214 rv = (cipher)(ctx, input->cd_raw.iov_base + input->cd_offset, in crypto_update_iov()
227 off_t offset = input->cd_offset; in crypto_update_uio()
291 off_t offset = input->cd_offset; in crypto_update_mp()
/illumos-gate/usr/src/uts/common/gssapi/mechs/krb5/crypto/des/
H A Def_crypto.c32 d1.cd_offset = 0; in k5_ef_crypto()
38 d2.cd_offset = 0; in k5_ef_crypto()
/illumos-gate/usr/src/uts/common/io/net80211/
H A Dnet80211_crypto_ccmp.c264 d1.cd_offset = 0; in aes_ccm_encrypt()
270 d2.cd_offset = 0; in aes_ccm_encrypt()
317 d1.cd_offset = 0; in aes_ccm_decrypt()
323 d2.cd_offset = 0; in aes_ccm_decrypt()
H A Dnet80211_crypto_wep.c368 d1.cd_offset = 0; in rc4_crypt()
374 d2.cd_offset = 0; in rc4_crypt()
404 d2.cd_offset = 0; in rc4_final()
/illumos-gate/usr/src/uts/common/gssapi/mechs/krb5/crypto/
H A Dhmac.c63 dd.cd_offset = 0; in krb5_hmac()
69 mac.cd_offset = 0; in krb5_hmac()
/illumos-gate/usr/src/uts/common/io/
H A Dcryptmod.c684 d1.cd_offset = 0; in kef_digest()
692 d2.cd_offset = 0; in kef_digest()
996 dd.cd_offset = 0; in kef_decr_hmac()
1004 mac.cd_offset = 0; in kef_decr_hmac()
1065 dd.cd_offset = 0; in kef_encr_hmac()
1073 mac.cd_offset = 0; in kef_encr_hmac()
1146 d1.cd_offset = 0; in kef_crypt()
1202 dd.cd_offset = 0; in do_hmac()
1210 mac.cd_offset = 0; in do_hmac()
1288 ct.cd_offset = 0; in aes_cbc_cts_encrypt()
[all …]
/illumos-gate/usr/src/uts/common/sys/crypto/
H A Dcommon.h252 off_t cd_offset; /* Offset from the beginning */ member
279 #define dd_offset1 dd_data.cd_offset

12