Home
last modified time | relevance | path

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

/titanic_50/usr/src/lib/pkcs11/pkcs11_softtoken/common/
H A DsoftDESCrypt.c204 if ((ulDataLen % DES_BLOCK_LEN) != 0) { in soft_des_encrypt_common()
223 out_len = DES_BLOCK_LEN * in soft_des_encrypt_common()
224 (ulDataLen / DES_BLOCK_LEN + 1); in soft_des_encrypt_common()
250 out_len -= DES_BLOCK_LEN; in soft_des_encrypt_common()
271 if ((total_len < DES_BLOCK_LEN) || in soft_des_encrypt_common()
272 (pad_mechanism && (total_len == DES_BLOCK_LEN))) { in soft_des_encrypt_common()
289 remain = total_len % DES_BLOCK_LEN; in soft_des_encrypt_common()
343 for (i = 0; i < out_len; i += DES_BLOCK_LEN) { in soft_des_encrypt_common()
409 CK_BYTE tmpblock[DES_BLOCK_LEN]; in soft_des_encrypt_common()
414 DES_BLOCK_LEN, ulDataLen - out_len); in soft_des_encrypt_common()
[all …]
H A DsoftDecryptUtil.c131 (pMechanism->ulParameterLen != DES_BLOCK_LEN)) { in soft_decrypt_init()
146 DES_BLOCK_LEN); in soft_decrypt_init()
552 if (soft_des_ctx->remain_len != DES_BLOCK_LEN) { in soft_decrypt_final()
564 out_len = DES_BLOCK_LEN; in soft_decrypt_final()
579 DES_BLOCK_LEN); in soft_decrypt_final()
583 out.cd_length = DES_BLOCK_LEN; in soft_decrypt_final()
585 out.cd_raw.iov_len = DES_BLOCK_LEN; in soft_decrypt_final()
590 (char *)pLastPart, DES_BLOCK_LEN, &out); in soft_decrypt_final()
599 DES_BLOCK_LEN, &out_len); in soft_decrypt_final()
H A DsoftCrypt.h42 #define DES_MAC_LEN (DES_BLOCK_LEN / 2)
47 uint8_t ivec[DES_BLOCK_LEN]; /* initialization vector */
48 uint8_t data[DES_BLOCK_LEN]; /* for use by update */
H A DsoftEncryptUtil.c154 (pMechanism->ulParameterLen != DES_BLOCK_LEN)) { in soft_encrypt_init()
169 DES_BLOCK_LEN); in soft_encrypt_init()
572 if (soft_des_ctx->remain_len == DES_BLOCK_LEN) in soft_encrypt_final()
573 out_len = 2 * DES_BLOCK_LEN; in soft_encrypt_final()
575 out_len = DES_BLOCK_LEN; in soft_encrypt_final()
595 soft_des_ctx->remain_len, DES_BLOCK_LEN, in soft_encrypt_final()
H A DsoftVerifyUtil.c179 CK_BYTE signature[DES_BLOCK_LEN]; /* use the maximum size */ in soft_verify()
370 CK_BYTE signature[DES_BLOCK_LEN]; /* use the maximum size */ in soft_verify_final()
H A DsoftSignUtil.c172 CK_BYTE signature[DES_BLOCK_LEN]; /* use the maximum size */ in soft_sign()
353 CK_BYTE signature[DES_BLOCK_LEN]; /* use the maximum size */ in soft_sign_final()
H A DsoftKeysUtil.c1497 wkey_blksz = DES_BLOCK_LEN; in soft_wrapkey()
/titanic_50/usr/src/common/crypto/des/
H A Ddes_impl.c503 des3_crunch_block(const void *cookie, const uint8_t block[DES_BLOCK_LEN], in des3_crunch_block() argument
504 uint8_t out_block[DES_BLOCK_LEN], boolean_t decrypt) in des3_crunch_block() argument
562 des_crunch_block(const void *cookie, const uint8_t block[DES_BLOCK_LEN], in des_crunch_block() argument
563 uint8_t out_block[DES_BLOCK_LEN], boolean_t decrypt) in des_crunch_block() argument
1058 length, out, DES_BLOCK_LEN, des3_encrypt_block, in des_encrypt_contiguous_blocks()
1062 out, DES_BLOCK_LEN, des3_encrypt_block); in des_encrypt_contiguous_blocks()
1067 length, out, DES_BLOCK_LEN, des_encrypt_block, in des_encrypt_contiguous_blocks()
1071 out, DES_BLOCK_LEN, des_encrypt_block); in des_encrypt_contiguous_blocks()
1090 length, out, DES_BLOCK_LEN, des3_decrypt_block, in des_decrypt_contiguous_blocks()
1094 out, DES_BLOCK_LEN, des3_decrypt_block); in des_decrypt_contiguous_blocks()
[all …]
H A Ddes_impl.h37 #define DES_BLOCK_LEN 8 macro
/titanic_50/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()
907 if ((ciphertext->cd_length & (DES_BLOCK_LEN - 1)) != 0) in des_decrypt_atomic()
[all …]
/titanic_50/usr/src/uts/common/crypto/io/
H A Ddprov.c4736 expected_param_len = DES_BLOCK_LEN; in dprov_copyin_mechanism()