Home
last modified time | relevance | path

Searched refs:DES_BLOCK_LEN (Results 1 – 11 of 11) sorted by relevance

/illumos-gate/usr/src/lib/pkcs11/pkcs11_softtoken/common/
H A DsoftDESCrypt.c224 out_len = DES_BLOCK_LEN * in soft_des_encrypt_common()
251 out_len -= DES_BLOCK_LEN; in soft_des_encrypt_common()
418 out.cd_length = DES_BLOCK_LEN; in soft_des_encrypt_common()
426 out_len += DES_BLOCK_LEN; in soft_des_encrypt_common()
606 remain = DES_BLOCK_LEN; in soft_des_decrypt_common()
607 out_len -= DES_BLOCK_LEN; in soft_des_decrypt_common()
713 out.cd_length = DES_BLOCK_LEN; in soft_des_decrypt_common()
731 DES_BLOCK_LEN, &rem_len); in soft_des_decrypt_common()
851 DES_BLOCK_LEN) { in soft_des_sign_verify_init_common()
975 DES_BLOCK_LEN); in soft_des_sign_verify_common()
[all …]
H A DsoftDecryptUtil.c133 (pMechanism->ulParameterLen != DES_BLOCK_LEN)) { in soft_decrypt_init()
148 DES_BLOCK_LEN); in soft_decrypt_init()
469 if (soft_des_ctx->remain_len != DES_BLOCK_LEN) { in soft_decrypt_final()
480 out_len = DES_BLOCK_LEN; in soft_decrypt_final()
495 DES_BLOCK_LEN); in soft_decrypt_final()
499 out.cd_length = DES_BLOCK_LEN; in soft_decrypt_final()
501 out.cd_raw.iov_len = DES_BLOCK_LEN; in soft_decrypt_final()
506 (char *)pLastPart, DES_BLOCK_LEN, &out); in soft_decrypt_final()
515 DES_BLOCK_LEN, &out_len); in soft_decrypt_final()
H A DsoftCrypt.h43 #define DES_MAC_LEN (DES_BLOCK_LEN / 2)
48 uint8_t ivec[DES_BLOCK_LEN]; /* initialization vector */
49 uint8_t data[DES_BLOCK_LEN]; /* for use by update */
H A DsoftEncryptUtil.c157 (pMechanism->ulParameterLen != DES_BLOCK_LEN)) { in soft_encrypt_init()
172 DES_BLOCK_LEN); in soft_encrypt_init()
495 if (soft_des_ctx->remain_len == DES_BLOCK_LEN) in soft_encrypt_final()
496 out_len = 2 * DES_BLOCK_LEN; in soft_encrypt_final()
498 out_len = DES_BLOCK_LEN; in soft_encrypt_final()
518 soft_des_ctx->remain_len, DES_BLOCK_LEN, in soft_encrypt_final()
H A DsoftVerifyUtil.c185 CK_BYTE signature[DES_BLOCK_LEN]; /* use the maximum size */ in soft_verify()
408 CK_BYTE signature[DES_BLOCK_LEN]; /* use the maximum size */ in soft_verify_final()
H A DsoftSignUtil.c178 CK_BYTE signature[DES_BLOCK_LEN]; /* use the maximum size */ in soft_sign()
386 CK_BYTE signature[DES_BLOCK_LEN]; /* use the maximum size */ in soft_sign_final()
H A DsoftKeysUtil.c1495 wkey_blksz = DES_BLOCK_LEN; in soft_wrapkey()
/illumos-gate/usr/src/uts/common/des/
H A Ddes_crypt.c458 mechanism->cm_param_len != DES_BLOCK_LEN) in des_common_init()
471 mechanism->cm_param_len != DES_BLOCK_LEN) in des_common_init()
541 if ((plaintext->cd_length & (DES_BLOCK_LEN - 1)) != 0) in des_encrypt()
583 if ((ciphertext->cd_length & (DES_BLOCK_LEN - 1)) != 0) in des_decrypt()
627 out_len &= ~(DES_BLOCK_LEN - 1); in des_encrypt_update()
689 out_len &= ~(DES_BLOCK_LEN - 1); in des_decrypt_update()
804 if ((plaintext->cd_length & (DES_BLOCK_LEN - 1)) != 0) in des_encrypt_atomic()
818 mechanism->cm_param_len != DES_BLOCK_LEN) in des_encrypt_atomic()
827 mechanism->cm_param_len != DES_BLOCK_LEN) in des_encrypt_atomic()
921 mechanism->cm_param_len != DES_BLOCK_LEN) in des_decrypt_atomic()
[all …]
/illumos-gate/usr/src/common/crypto/des/
H A Ddes_impl.c1064 length, out, DES_BLOCK_LEN, des3_encrypt_block, in des_encrypt_contiguous_blocks()
1068 out, DES_BLOCK_LEN, des3_encrypt_block); in des_encrypt_contiguous_blocks()
1073 length, out, DES_BLOCK_LEN, des_encrypt_block, in des_encrypt_contiguous_blocks()
1077 out, DES_BLOCK_LEN, des_encrypt_block); in des_encrypt_contiguous_blocks()
1096 length, out, DES_BLOCK_LEN, des3_decrypt_block, in des_decrypt_contiguous_blocks()
1100 out, DES_BLOCK_LEN, des3_decrypt_block); in des_decrypt_contiguous_blocks()
1107 length, out, DES_BLOCK_LEN, des_decrypt_block, in des_decrypt_contiguous_blocks()
1111 out, DES_BLOCK_LEN, des_decrypt_block); in des_decrypt_contiguous_blocks()
H A Ddes_impl.h37 #define DES_BLOCK_LEN 8 macro
/illumos-gate/usr/src/uts/common/crypto/io/
H A Ddprov.c4762 expected_param_len = DES_BLOCK_LEN; in dprov_copyin_mechanism()