Home
last modified time | relevance | path

Searched refs:pEncrypted (Results 1 – 6 of 6) sorted by relevance

/titanic_41/usr/src/lib/pkcs11/pkcs11_softtoken/common/
H A DsoftDESCrypt.c177 CK_ULONG ulDataLen, CK_BYTE_PTR pEncrypted, in soft_des_encrypt_common() argument
237 if (pEncrypted == NULL) { in soft_des_encrypt_common()
254 out_buf = pEncrypted; in soft_des_encrypt_common()
301 if (pEncrypted == NULL) { in soft_des_encrypt_common()
317 (void) memmove(pEncrypted + soft_des_ctx->remain_len, in soft_des_encrypt_common()
319 (void) memcpy(pEncrypted, soft_des_ctx->data, in soft_des_encrypt_common()
323 in_buf = pEncrypted; in soft_des_encrypt_common()
327 out_buf = pEncrypted; in soft_des_encrypt_common()
491 soft_des_decrypt_common(soft_session_t *session_p, CK_BYTE_PTR pEncrypted, in soft_des_decrypt_common() argument
557 in_buf = pEncrypted; in soft_des_decrypt_common()
[all …]
H A DsoftBlowfishCrypt.c142 CK_ULONG ulDataLen, CK_BYTE_PTR pEncrypted, CK_ULONG_PTR pulEncryptedLen, in soft_blowfish_encrypt_common() argument
173 if (pEncrypted == NULL) { in soft_blowfish_encrypt_common()
185 out_buf = pEncrypted; in soft_blowfish_encrypt_common()
202 if (pEncrypted != NULL) { in soft_blowfish_encrypt_common()
231 if (pEncrypted == NULL) { in soft_blowfish_encrypt_common()
247 (void) memmove(pEncrypted + in soft_blowfish_encrypt_common()
250 (void) memcpy(pEncrypted, soft_blowfish_ctx->data, in soft_blowfish_encrypt_common()
255 in_buf = pEncrypted; in soft_blowfish_encrypt_common()
259 out_buf = pEncrypted; in soft_blowfish_encrypt_common()
317 soft_blowfish_decrypt_common(soft_session_t *session_p, CK_BYTE_PTR pEncrypted, in soft_blowfish_decrypt_common() argument
[all …]
H A DsoftAESCrypt.c155 CK_ULONG ulDataLen, CK_BYTE_PTR pEncrypted, in soft_aes_encrypt_common() argument
216 if (pEncrypted == NULL) { in soft_aes_encrypt_common()
233 out_buf = pEncrypted; in soft_aes_encrypt_common()
253 if (pEncrypted != NULL) { in soft_aes_encrypt_common()
281 if (pEncrypted == NULL) { in soft_aes_encrypt_common()
297 (void) memmove(pEncrypted + soft_aes_ctx->remain_len, in soft_aes_encrypt_common()
299 (void) memcpy(pEncrypted, soft_aes_ctx->data, in soft_aes_encrypt_common()
303 in_buf = pEncrypted; in soft_aes_encrypt_common()
307 out_buf = pEncrypted; in soft_aes_encrypt_common()
418 out.cd_raw.iov_base = (char *)pEncrypted; in soft_aes_encrypt_common()
[all …]
H A DsoftDecryptUtil.c352 soft_decrypt_common(soft_session_t *session_p, CK_BYTE_PTR pEncrypted, in soft_decrypt_common() argument
375 return (soft_des_decrypt_common(session_p, pEncrypted, in soft_decrypt_common()
390 return (soft_aes_decrypt_common(session_p, pEncrypted, in soft_decrypt_common()
400 return (soft_blowfish_decrypt_common(session_p, pEncrypted, in soft_decrypt_common()
411 return (soft_arcfour_crypt(&(session_p->decrypt), pEncrypted, in soft_decrypt_common()
417 return (soft_rsa_decrypt_common(session_p, pEncrypted, in soft_decrypt_common()
H A DsoftEncryptUtil.c372 CK_ULONG ulDataLen, CK_BYTE_PTR pEncrypted, in soft_encrypt_common() argument
395 ulDataLen, pEncrypted, pulEncryptedLen, update)); in soft_encrypt_common()
410 ulDataLen, pEncrypted, pulEncryptedLen, update)); in soft_encrypt_common()
420 ulDataLen, pEncrypted, pulEncryptedLen, update)); in soft_encrypt_common()
430 ulDataLen, pEncrypted, pulEncryptedLen)); in soft_encrypt_common()
436 ulDataLen, pEncrypted, pulEncryptedLen, mechanism)); in soft_encrypt_common()
H A DsoftRSA.c241 CK_ULONG ulDataLen, CK_BYTE_PTR pEncrypted, in soft_rsa_encrypt_common() argument
258 if (pEncrypted == NULL) { in soft_rsa_encrypt_common()
313 (void) memcpy(pEncrypted, cipher_data, modulus_len); in soft_rsa_encrypt_common()
330 soft_rsa_decrypt_common(soft_session_t *session_p, CK_BYTE_PTR pEncrypted, in soft_rsa_decrypt_common() argument
370 rv = soft_rsa_decrypt(key, pEncrypted, modulus_len, plain_data); in soft_rsa_decrypt_common()