Searched refs:DES_BLOCK_LEN (Results 1 – 11 of 11) sorted by relevance
/illumos-gate/usr/src/lib/pkcs11/pkcs11_softtoken/common/ |
H A D | softDESCrypt.c | 205 if ((ulDataLen % DES_BLOCK_LEN) != 0) { in soft_des_encrypt_common() 224 out_len = DES_BLOCK_LEN * in soft_des_encrypt_common() 225 (ulDataLen / DES_BLOCK_LEN + 1); in soft_des_encrypt_common() 251 out_len -= DES_BLOCK_LEN; in soft_des_encrypt_common() 272 if ((total_len < DES_BLOCK_LEN) || in soft_des_encrypt_common() 273 (pad_mechanism && (total_len == DES_BLOCK_LEN))) { in soft_des_encrypt_common() 290 remain = total_len % DES_BLOCK_LEN; in soft_des_encrypt_common() 344 for (i = 0; i < out_len; i += DES_BLOCK_LEN) { in soft_des_encrypt_common() 410 CK_BYTE tmpblock[DES_BLOCK_LEN]; in soft_des_encrypt_common() 415 DES_BLOCK_LEN, ulDataLen - out_len); in soft_des_encrypt_common() [all …]
|
H A D | softDecryptUtil.c | 133 (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 D | softCrypt.h | 43 #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 D | softEncryptUtil.c | 157 (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 D | softVerifyUtil.c | 185 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 D | softSignUtil.c | 178 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 D | softKeysUtil.c | 1495 wkey_blksz = DES_BLOCK_LEN; in soft_wrapkey()
|
/illumos-gate/usr/src/uts/common/des/ |
H A D | des_crypt.c | 458 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 …]
|
/illumos-gate/usr/src/common/crypto/des/ |
H A D | des_impl.c | 1064 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 D | des_impl.h | 37 #define DES_BLOCK_LEN 8 macro
|
/illumos-gate/usr/src/uts/common/crypto/io/ |
H A D | dprov.c | 4762 expected_param_len = DES_BLOCK_LEN; in dprov_copyin_mechanism()
|