Home
last modified time | relevance | path

Searched refs:ulEncryptedLen (Results 1 – 5 of 5) sorted by relevance

/titanic_41/usr/src/lib/pkcs11/pkcs11_softtoken/common/
H A DsoftDESCrypt.c492 CK_ULONG ulEncryptedLen, CK_BYTE_PTR pData, in soft_des_decrypt_common() argument
522 if ((ulEncryptedLen % DES_BLOCK_LEN) != 0) { in soft_des_decrypt_common()
532 *pulDataLen = ulEncryptedLen; in soft_des_decrypt_common()
538 if (*pulDataLen < ulEncryptedLen) { in soft_des_decrypt_common()
539 *pulDataLen = ulEncryptedLen; in soft_des_decrypt_common()
544 out_len = ulEncryptedLen; in soft_des_decrypt_common()
551 if (*pulDataLen < (ulEncryptedLen - DES_BLOCK_LEN)) { in soft_des_decrypt_common()
552 *pulDataLen = ulEncryptedLen - DES_BLOCK_LEN; in soft_des_decrypt_common()
555 out_len = ulEncryptedLen - DES_BLOCK_LEN; in soft_des_decrypt_common()
566 total_len = soft_des_ctx->remain_len + ulEncryptedLen; in soft_des_decrypt_common()
[all …]
H A DsoftBlowfishCrypt.c318 CK_ULONG ulEncryptedLen, CK_BYTE_PTR pData, CK_ULONG_PTR pulDataLen, in soft_blowfish_decrypt_common() argument
340 if ((ulEncryptedLen % BLOWFISH_BLOCK_LEN) != 0) { in soft_blowfish_decrypt_common()
350 *pulDataLen = ulEncryptedLen; in soft_blowfish_decrypt_common()
355 if (*pulDataLen < ulEncryptedLen) { in soft_blowfish_decrypt_common()
356 *pulDataLen = ulEncryptedLen; in soft_blowfish_decrypt_common()
359 out_len = ulEncryptedLen; in soft_blowfish_decrypt_common()
369 total_len = soft_blowfish_ctx->remain_len + ulEncryptedLen; in soft_blowfish_decrypt_common()
375 pEncrypted, ulEncryptedLen); in soft_blowfish_decrypt_common()
377 soft_blowfish_ctx->remain_len += ulEncryptedLen; in soft_blowfish_decrypt_common()
453 pEncrypted + (ulEncryptedLen - remain), in soft_blowfish_decrypt_common()
H A DsoftAESCrypt.c493 CK_ULONG ulEncryptedLen, CK_BYTE_PTR pData, in soft_aes_decrypt_common() argument
523 if ((ulEncryptedLen % AES_BLOCK_LEN) != 0) { in soft_aes_decrypt_common()
533 *pulDataLen = ulEncryptedLen; in soft_aes_decrypt_common()
539 if (*pulDataLen < ulEncryptedLen) { in soft_aes_decrypt_common()
540 *pulDataLen = ulEncryptedLen; in soft_aes_decrypt_common()
543 out_len = ulEncryptedLen; in soft_aes_decrypt_common()
550 if (*pulDataLen < (ulEncryptedLen - AES_BLOCK_LEN)) { in soft_aes_decrypt_common()
551 *pulDataLen = ulEncryptedLen - AES_BLOCK_LEN; in soft_aes_decrypt_common()
554 out_len = ulEncryptedLen - AES_BLOCK_LEN; in soft_aes_decrypt_common()
565 total_len = soft_aes_ctx->remain_len + ulEncryptedLen; in soft_aes_decrypt_common()
[all …]
H A DsoftDecryptUtil.c353 CK_ULONG ulEncryptedLen, CK_BYTE_PTR pData, in soft_decrypt_common() argument
366 if (ulEncryptedLen == 0) { in soft_decrypt_common()
376 ulEncryptedLen, pData, pulDataLen, Update)); in soft_decrypt_common()
382 if (ulEncryptedLen == 0) { in soft_decrypt_common()
391 ulEncryptedLen, pData, pulDataLen, Update)); in soft_decrypt_common()
395 if (ulEncryptedLen == 0) { in soft_decrypt_common()
401 ulEncryptedLen, pData, pulDataLen, Update)); in soft_decrypt_common()
405 if (ulEncryptedLen == 0) { in soft_decrypt_common()
412 ulEncryptedLen, pData, pulDataLen)); in soft_decrypt_common()
418 ulEncryptedLen, pData, pulDataLen, mechanism)); in soft_decrypt_common()
H A DsoftRSA.c331 CK_ULONG ulEncryptedLen, CK_BYTE_PTR pData, in soft_rsa_decrypt_common() argument
347 if (ulEncryptedLen != (CK_ULONG)modulus_len) { in soft_rsa_decrypt_common()
385 if (ulEncryptedLen - num_padding > *pulDataLen) { in soft_rsa_decrypt_common()