Lines Matching refs:pEncrypted
159 * pEncrypted: pointer to the output data after encryption
177 CK_ULONG ulDataLen, CK_BYTE_PTR pEncrypted,
237 if (pEncrypted == NULL) {
254 out_buf = pEncrypted;
301 if (pEncrypted == NULL) {
317 (void) memmove(pEncrypted + soft_des_ctx->remain_len,
319 (void) memcpy(pEncrypted, soft_des_ctx->data,
323 in_buf = pEncrypted;
327 out_buf = pEncrypted;
471 * pEncrypted: pointer to the input data to be decrypted
491 soft_des_decrypt_common(soft_session_t *session_p, CK_BYTE_PTR pEncrypted,
557 in_buf = pEncrypted;
577 if (pEncrypted != NULL) {
584 pEncrypted, ulEncryptedLen);
638 pEncrypted, out_len - soft_des_ctx->remain_len);
645 in_buf = pEncrypted;
682 (void) memcpy(soft_des_ctx->data, pEncrypted +
755 (void) memcpy(soft_des_ctx->data, pEncrypted +
921 CK_BYTE *pEncrypted = NULL;
1009 pEncrypted = malloc(sizeof (CK_BYTE) * ulEncryptedLen);
1010 if (pEncrypted == NULL) {
1017 * pEncrypted. Then pass pEncrypted into soft_encrypt as input
1019 bzero(pEncrypted, ulEncryptedLen);
1020 (void) memcpy(pEncrypted, pData, ulDataLen);
1022 rv = soft_encrypt(session_p, pEncrypted, ulDataLen,
1023 pEncrypted, &ulEncryptedLen);
1025 &pEncrypted[ulEncryptedLen - DES_BLOCK_LEN], DES_BLOCK_LEN);
1051 if (pEncrypted) {
1052 free(pEncrypted);
1077 CK_BYTE *pEncrypted = NULL;
1096 pEncrypted = malloc(sizeof (CK_BYTE) * ulEncryptedLen);
1098 if (pEncrypted != NULL) {
1100 pEncrypted, &ulEncryptedLen);
1101 free(pEncrypted);