| /titanic_41/usr/src/uts/common/crypto/io/ |
| H A D | aes.c | 421 == 0) && (plaintext->cd_length & (AES_BLOCK_LEN - 1)) != 0) in aes_encrypt() 432 length_needed = plaintext->cd_length + aes_ctx->ac_mac_len; in aes_encrypt() 435 length_needed = plaintext->cd_length + aes_ctx->ac_tag_len; in aes_encrypt() 438 if (plaintext->cd_length != 0) in aes_encrypt() 444 length_needed = plaintext->cd_length; in aes_encrypt() 447 if (ciphertext->cd_length < length_needed) { in aes_encrypt() 448 ciphertext->cd_length = length_needed; in aes_encrypt() 452 saved_length = ciphertext->cd_length; in aes_encrypt() 475 ciphertext->cd_offset = ciphertext->cd_length; in aes_encrypt() 476 ciphertext->cd_length = saved_length - ciphertext->cd_length; in aes_encrypt() [all …]
|
| H A D | blowfish.c | 348 if ((plaintext->cd_length & (BLOWFISH_BLOCK_LEN - 1)) != 0) in blowfish_encrypt() 360 if (ciphertext->cd_length < plaintext->cd_length) { in blowfish_encrypt() 361 ciphertext->cd_length = plaintext->cd_length; in blowfish_encrypt() 390 if ((ciphertext->cd_length & (BLOWFISH_BLOCK_LEN - 1)) != 0) in blowfish_decrypt() 402 if (plaintext->cd_length < ciphertext->cd_length) { in blowfish_decrypt() 403 plaintext->cd_length = ciphertext->cd_length; in blowfish_decrypt() 434 out_len += plaintext->cd_length; in blowfish_encrypt_update() 438 if (ciphertext->cd_length < out_len) { in blowfish_encrypt_update() 439 ciphertext->cd_length = out_len; in blowfish_encrypt_update() 444 saved_length = ciphertext->cd_length; in blowfish_encrypt_update() [all …]
|
| H A D | md4_mod.c | 238 size_t length = data->cd_length; in md4_digest_update_uio() 393 size_t length = data->cd_length; in md4_digest_update_mblk() 530 if ((digest->cd_length == 0) || in md4_digest() 531 (digest->cd_length < MD4_DIGEST_LENGTH)) { in md4_digest() 532 digest->cd_length = MD4_DIGEST_LENGTH; in md4_digest() 543 data->cd_length); in md4_digest() 561 digest->cd_length = 0; in md4_digest() 589 digest->cd_length = MD4_DIGEST_LENGTH; in md4_digest() 591 digest->cd_length = 0; in md4_digest() 615 data->cd_length); in md4_digest_update() [all …]
|
| H A D | arcfour.c | 273 if (start + input->cd_length > end) in rc4_crypt_update() 277 input->cd_length); in rc4_crypt_update() 293 input->cd_length, &end); in rc4_crypt_update() 298 left = input->cd_length; in rc4_crypt_update() 317 size_t length = input->cd_length; in rc4_crypt_update() 366 if (input->cd_length > output->cd_length) { in rc4_crypt_update() 367 output->cd_length = input->cd_length; in rc4_crypt_update() 380 if (start + input->cd_length > end) in rc4_crypt_update() 384 input->cd_length); in rc4_crypt_update() 402 mp2 = advance_position(mp, input->cd_offset + input->cd_length, in rc4_crypt_update() [all …]
|
| H A D | md5_mod.c | 323 size_t length = data->cd_length; in md5_digest_update_uio() 478 size_t length = data->cd_length; in md5_digest_update_mblk() 615 if ((digest->cd_length == 0) || in md5_digest() 616 (digest->cd_length < MD5_DIGEST_LENGTH)) { in md5_digest() 617 digest->cd_length = MD5_DIGEST_LENGTH; in md5_digest() 628 data->cd_length); in md5_digest() 646 digest->cd_length = 0; in md5_digest() 674 digest->cd_length = MD5_DIGEST_LENGTH; in md5_digest() 676 digest->cd_length = 0; in md5_digest() 700 data->cd_length); in md5_digest_update() [all …]
|
| H A D | sha1_mod.c | 265 size_t length = data->cd_length; in sha1_digest_update_uio() 421 size_t length = data->cd_length; in sha1_digest_update_mblk() 558 if ((digest->cd_length == 0) || in sha1_digest() 559 (digest->cd_length < SHA1_DIGEST_LENGTH)) { in sha1_digest() 560 digest->cd_length = SHA1_DIGEST_LENGTH; in sha1_digest() 571 data->cd_length); in sha1_digest() 589 digest->cd_length = 0; in sha1_digest() 617 digest->cd_length = SHA1_DIGEST_LENGTH; in sha1_digest() 619 digest->cd_length = 0; in sha1_digest() 643 data->cd_length); in sha1_digest_update() [all …]
|
| H A D | sha2_mod.c | 289 size_t length = data->cd_length; in sha2_digest_update_uio() 449 size_t length = data->cd_length; in sha2_digest_update_mblk() 604 if ((digest->cd_length == 0) || in sha2_digest() 605 (digest->cd_length < sha_digest_len)) { in sha2_digest() 606 digest->cd_length = sha_digest_len; in sha2_digest() 617 data->cd_length); in sha2_digest() 635 digest->cd_length = 0; in sha2_digest() 663 digest->cd_length = sha_digest_len; in sha2_digest() 665 digest->cd_length = 0; in sha2_digest() 688 data->cd_length); in sha2_digest_update() [all …]
|
| H A D | rsa.c | 469 len = data->cd_length; in compare_data() 606 plen = plaintext->cd_length; in rsa_encrypt_common() 618 if (ciphertext->cd_length < modulus_len) { in rsa_encrypt_common() 619 ciphertext->cd_length = modulus_len; in rsa_encrypt_common() 623 ASSERT(plaintext->cd_length <= sizeof (tmp_data)); in rsa_encrypt_common() 646 ciphertext->cd_length = modulus_len; in rsa_encrypt_common() 754 if (ciphertext->cd_length != modulus_len) in rsa_decrypt_common() 757 ASSERT(ciphertext->cd_length <= sizeof (tmp_data)); in rsa_decrypt_common() 774 if (plain_len > plaintext->cd_length) { in rsa_decrypt_common() 775 plaintext->cd_length = plain_len; in rsa_decrypt_common() [all …]
|
| H A D | dca_rsa.c | 94 out->cd_length = reqp->dr_ctx.modlen; in dca_rsastart() 99 if (out != in && out->cd_length > reqp->dr_ctx.modlen) in dca_rsastart() 100 out->cd_length = reqp->dr_ctx.modlen; in dca_rsastart() 124 if (out->cd_length < reqp->dr_ctx.modlen && (mode == DCA_RSA_DEC || in dca_rsastart() 127 out->cd_length = reqp->dr_ctx.modlen; in dca_rsastart() 133 if (out && len < out->cd_length) { in dca_rsastart() 212 int outsz = reqp->dr_out->cd_length; in dca_rsadone() 246 reqp->dr_out->cd_length = outsz; in dca_rsadone() 250 reqp->dr_out->cd_length = outsz; in dca_rsadone() 301 int outsz = reqp->dr_out->cd_length; in dca_rsaverifydone() [all …]
|
| H A D | dca_3des.c | 94 out->cd_length = len; in dca_3des() 106 out->cd_length = 0; in dca_3des() 123 out->cd_length = 0; in dca_3des() 194 out->cd_length = len; in dca_3desupdate() 226 out->cd_length = 0; in dca_3desupdate() 267 out->cd_length = 0; in dca_3desupdate() 309 out->cd_length = 0; in dca_3desfinal() 359 output->cd_length = 0; in dca_3desatomic() 465 reqp->dr_in->cd_length -= len; in dca_3desstart() 567 out->cd_length += reqp->dr_pkt_length; in dca_3desdone()
|
| H A D | dca_rng.c | 69 data->cd_length = 0; in dca_rng() 103 len = out->cd_raw.iov_len - out->cd_length; in dca_rngstart() 169 reqp->dr_out->cd_length += in dca_rngdone() 177 if (reqp->dr_out->cd_length < reqp->dr_out->cd_raw.iov_len) { in dca_rngdone()
|
| H A D | ecc.c | 591 (data).cd_length = cd_len; 610 if (signature->cd_length > 0) { in ecc_digest_svrfy_common() 660 if (data->cd_length > sizeof (tmp_data)) in ecc_sign_common() 667 digest_item.len = data->cd_length; in ecc_sign_common() 697 signature->cd_length = signature_item.len; in ecc_sign_common() 862 if (signature->cd_length > sizeof (signed_data)) { in ecc_verify_common() 870 signature_item.len = signature->cd_length; in ecc_verify_common() 872 if (data->cd_length > sizeof (tmp_data)) in ecc_verify_common() 879 digest_item.len = data->cd_length; in ecc_verify_common()
|
| H A D | dca.c | 2418 return (cdata->cd_length); in dca_length() 2756 ninput->cd_length = input->cd_length; in dca_dupcrypto() 2857 if (count > (data->cd_length - off)) { in dca_getbufbytes() 3045 if ((data->cd_length % dca->dca_pagesize) || in dca_sgcheck() 3098 if (count > in->cd_length) { in dca_gather() 3111 in->cd_length -= count; in dca_gather() 3148 in->cd_length -= cur_len; in dca_gather() 3194 in->cd_length -= cur_len; in dca_gather() 3253 if (count > in->cd_length) { in dca_resid_gather() 3262 in->cd_length -= count; in dca_resid_gather() [all …]
|
| /titanic_41/usr/src/uts/common/des/ |
| H A D | des_crypt.c | 541 if ((plaintext->cd_length & (DES_BLOCK_LEN - 1)) != 0) in des_encrypt() 553 if (ciphertext->cd_length < plaintext->cd_length) { in des_encrypt() 554 ciphertext->cd_length = plaintext->cd_length; in des_encrypt() 583 if ((ciphertext->cd_length & (DES_BLOCK_LEN - 1)) != 0) in des_decrypt() 595 if (plaintext->cd_length < ciphertext->cd_length) { in des_decrypt() 596 plaintext->cd_length = ciphertext->cd_length; in des_decrypt() 626 out_len += plaintext->cd_length; in des_encrypt_update() 630 if (ciphertext->cd_length < out_len) { in des_encrypt_update() 631 ciphertext->cd_length = out_len; in des_encrypt_update() 636 saved_length = ciphertext->cd_length; in des_encrypt_update() [all …]
|
| /titanic_41/usr/src/uts/common/crypto/core/ |
| H A D | kcf_prov_lib.c | 114 data->cd_length = len; in crypto_uio_data() 194 data->cd_length = len; in crypto_mblk_data() 213 output->cd_length = len; in crypto_put_output_data() 248 if (input->cd_raw.iov_len < input->cd_length) in crypto_get_input_data() 255 if ((rv = crypto_uio_data(input, buf, input->cd_length, in crypto_get_input_data() 262 if ((rv = crypto_mblk_data(input, buf, input->cd_length, in crypto_get_input_data() 337 dlen = data->cd_length; in crypto_digest_data() 409 if (input->cd_raw.iov_len < input->cd_length) in crypto_update_iov() 413 input->cd_length, (input == output) ? NULL : output); in crypto_update_iov() 426 size_t length = input->cd_length; in crypto_update_uio() [all …]
|
| /titanic_41/usr/src/uts/common/gssapi/mechs/krb5/crypto/hash_provider/ |
| H A D | hash_kef_generic.c | 37 d2.cd_length = output->length; in k5_ef_hash() 59 d1.cd_length = input[i].length; in k5_ef_hash() 113 d2.cd_length = output->length; in k5_ef_mac() 132 d1.cd_length = input->length; in k5_ef_mac()
|
| /titanic_41/usr/src/uts/common/fs/smbclnt/netsmb/ |
| H A D | smb_sign.c | 138 key.cd_length = vcp->vc_mackeylen; in smb_compute_MAC() 149 data.cd_length = SMB_HDRLEN; in smb_compute_MAC() 160 data.cd_length = msgdsize(mp) - SMB_HDRLEN; in smb_compute_MAC() 170 digest.cd_length = sizeof (mac); in smb_compute_MAC()
|
| /titanic_41/usr/src/uts/common/fs/smbsrv/ |
| H A D | smb_sign_kcf.c | 72 data.cd_length = len; in smb_md5_update() 92 out.cd_length = MD5_DIGEST_LENGTH; in smb_md5_final()
|
| /titanic_41/usr/src/uts/common/gssapi/mechs/krb5/crypto/des/ |
| H A D | ef_crypto.c | 35 d1.cd_length = length; in k5_ef_crypto() 41 d2.cd_length = length; in k5_ef_crypto()
|
| /titanic_41/usr/src/lib/pkcs11/pkcs11_softtoken/common/ |
| H A D | softAESCrypt.c | 354 out.cd_length = out_len; in soft_aes_encrypt_common() 390 out.cd_length = AES_BLOCK_LEN; in soft_aes_encrypt_common() 417 out.cd_length = *pulEncryptedLen; in soft_aes_encrypt_common() 696 out.cd_length = out_len; in soft_aes_decrypt_common() 711 out.cd_length = AES_BLOCK_LEN; in soft_aes_decrypt_common() 767 out.cd_length = *pulDataLen; in soft_aes_decrypt_common()
|
| /titanic_41/usr/src/uts/common/io/net80211/ |
| H A D | net80211_crypto_ccmp.c | 265 d1.cd_length = plain_len; in aes_ccm_encrypt() 271 d2.cd_length = cipher_len; in aes_ccm_encrypt() 318 d1.cd_length = cipher_len; in aes_ccm_decrypt() 324 d2.cd_length = plain_len; in aes_ccm_decrypt()
|
| H A D | net80211_crypto_wep.c | 369 d1.cd_length = buflen; in rc4_crypt() 375 d2.cd_length = buflen; in rc4_crypt() 405 d2.cd_length = buflen; in rc4_final()
|
| /titanic_41/usr/src/uts/common/gssapi/mechs/krb5/crypto/ |
| H A D | hmac.c | 64 dd.cd_length = input->length; in krb5_hmac() 70 mac.cd_length = output->length; in krb5_hmac()
|
| /titanic_41/usr/src/uts/common/crypto/api/ |
| H A D | kcf_mac.c | 144 list, CRYPTO_FG_MAC_ATOMIC, data->cd_length)) == NULL) { in crypto_mac() 182 (data->cd_length > pd->pd_hmac_limit)) { in crypto_mac() 268 list, CRYPTO_FG_MAC_ATOMIC, data->cd_length)) == NULL) { in crypto_mac_verify() 306 (data->cd_length > pd->pd_hmac_limit)) { in crypto_mac_verify()
|
| /titanic_41/usr/src/uts/common/io/ |
| H A D | cryptmod.c | 682 d1.cd_length = v1.iov_len; in kef_digest() 690 d2.cd_length = v2.iov_len; in kef_digest() 994 dd.cd_length = length; in kef_decr_hmac() 1002 mac.cd_length = hmaclen; in kef_decr_hmac() 1063 dd.cd_length = length; in kef_encr_hmac() 1071 mac.cd_length = hmaclen; in kef_encr_hmac() 1144 d1.cd_length = length; in kef_crypt() 1200 dd.cd_length = datalen; in do_hmac() 1208 mac.cd_length = hmaclen; in do_hmac() 1270 pt.cd_length = length; in aes_cbc_cts_encrypt() [all …]
|