DES_BLOCK_LEN
length, out, DES_BLOCK_LEN, des3_encrypt_block,
out, DES_BLOCK_LEN, des3_encrypt_block);
length, out, DES_BLOCK_LEN, des_encrypt_block,
out, DES_BLOCK_LEN, des_encrypt_block);
length, out, DES_BLOCK_LEN, des3_decrypt_block,
out, DES_BLOCK_LEN, des3_decrypt_block);
length, out, DES_BLOCK_LEN, des_decrypt_block,
out, DES_BLOCK_LEN, des_decrypt_block);
#define DES_MAC_LEN (DES_BLOCK_LEN / 2)
uint8_t ivec[DES_BLOCK_LEN]; /* initialization vector */
uint8_t data[DES_BLOCK_LEN]; /* for use by update */
&pEncrypted[ulEncryptedLen - DES_BLOCK_LEN], DES_BLOCK_LEN);
if (total_len < DES_BLOCK_LEN) {
remainder = ulPartLen % DES_BLOCK_LEN;
ulEncryptedLen = ulPartLen + (DES_BLOCK_LEN - remainder);
if ((ulDataLen % DES_BLOCK_LEN) != 0) {
out_len = DES_BLOCK_LEN *
(ulDataLen / DES_BLOCK_LEN + 1);
out_len -= DES_BLOCK_LEN;
if ((total_len < DES_BLOCK_LEN) ||
(pad_mechanism && (total_len == DES_BLOCK_LEN))) {
remain = total_len % DES_BLOCK_LEN;
for (i = 0; i < out_len; i += DES_BLOCK_LEN) {
CK_BYTE tmpblock[DES_BLOCK_LEN];
DES_BLOCK_LEN, ulDataLen - out_len);
out.cd_length = DES_BLOCK_LEN;
out.cd_raw.iov_len = out_len + DES_BLOCK_LEN;
(char *)tmpblock, DES_BLOCK_LEN, &out);
out_len += DES_BLOCK_LEN;
if ((ulEncryptedLen % DES_BLOCK_LEN) != 0) {
if (*pulDataLen < (ulEncryptedLen - DES_BLOCK_LEN)) {
*pulDataLen = ulEncryptedLen - DES_BLOCK_LEN;
out_len = ulEncryptedLen - DES_BLOCK_LEN;
if ((total_len < DES_BLOCK_LEN) ||
(pad_mechanism && (total_len == DES_BLOCK_LEN))) {
remain = total_len % DES_BLOCK_LEN;
remain = DES_BLOCK_LEN;
out_len -= DES_BLOCK_LEN;
for (i = 0; i < out_len; i += DES_BLOCK_LEN) {
uint8_t last_block[DES_BLOCK_LEN];
out.cd_length = DES_BLOCK_LEN;
out.cd_raw.iov_len = DES_BLOCK_LEN;
(char *)in_buf + out_len, DES_BLOCK_LEN, &out);
DES_BLOCK_LEN, &rem_len);
(void) memcpy(&cbc_ctx->cbc_iv[0], ivec, DES_BLOCK_LEN);
bzero(soft_des_ctx->ivec, DES_BLOCK_LEN);
DES_BLOCK_LEN) {
encrypt_mech.ulParameterLen = DES_BLOCK_LEN;
CK_BYTE last_block[DES_BLOCK_LEN];
bzero(last_block, DES_BLOCK_LEN);
ulEncryptedLen = DES_BLOCK_LEN;
DES_BLOCK_LEN);
remainder = ulDataLen % DES_BLOCK_LEN;
ulEncryptedLen = ulDataLen + (DES_BLOCK_LEN - remainder);
(pMechanism->ulParameterLen != DES_BLOCK_LEN)) {
DES_BLOCK_LEN);
if (soft_des_ctx->remain_len != DES_BLOCK_LEN) {
out_len = DES_BLOCK_LEN;
DES_BLOCK_LEN);
out.cd_length = DES_BLOCK_LEN;
out.cd_raw.iov_len = DES_BLOCK_LEN;
(char *)pLastPart, DES_BLOCK_LEN, &out);
DES_BLOCK_LEN, &out_len);
(pMechanism->ulParameterLen != DES_BLOCK_LEN)) {
DES_BLOCK_LEN);
if (soft_des_ctx->remain_len == DES_BLOCK_LEN)
out_len = 2 * DES_BLOCK_LEN;
out_len = DES_BLOCK_LEN;
soft_des_ctx->remain_len, DES_BLOCK_LEN,
wkey_blksz = DES_BLOCK_LEN;
CK_BYTE signature[DES_BLOCK_LEN]; /* use the maximum size */
CK_BYTE signature[DES_BLOCK_LEN]; /* use the maximum size */
CK_BYTE signature[DES_BLOCK_LEN]; /* use the maximum size */
CK_BYTE signature[DES_BLOCK_LEN]; /* use the maximum size */
expected_param_len = DES_BLOCK_LEN;
mechanism->cm_param_len, DES_BLOCK_LEN, des_copy_block64);
mechanism->cm_param_len != DES_BLOCK_LEN)
mechanism->cm_param_len != DES_BLOCK_LEN)
if ((plaintext->cd_length & (DES_BLOCK_LEN - 1)) != 0)
if ((ciphertext->cd_length & (DES_BLOCK_LEN - 1)) != 0)
out_len &= ~(DES_BLOCK_LEN - 1);
out_len &= ~(DES_BLOCK_LEN - 1);
if ((plaintext->cd_length & (DES_BLOCK_LEN - 1)) != 0)
mechanism->cm_param_len != DES_BLOCK_LEN)
mechanism->cm_param_len != DES_BLOCK_LEN)
if ((ciphertext->cd_length & (DES_BLOCK_LEN - 1)) != 0)
mechanism->cm_param_len != DES_BLOCK_LEN)
mechanism->cm_param_len != DES_BLOCK_LEN)