/illumos-gate/usr/src/lib/pkcs11/pkcs11_softtoken/common/ |
H A D | softOps.h | 42 CK_RV soft_digest(soft_session_t *, CK_BYTE_PTR, CK_ULONG, CK_BYTE_PTR, 45 CK_RV soft_digest_update(soft_session_t *, CK_BYTE_PTR, CK_ULONG); 47 CK_RV soft_digest_final(soft_session_t *, CK_BYTE_PTR, CK_ULONG_PTR); 55 CK_RV soft_encrypt(soft_session_t *, CK_BYTE_PTR, CK_ULONG, CK_BYTE_PTR, 58 CK_RV soft_encrypt_update(soft_session_t *, CK_BYTE_PTR, CK_ULONG, 59 CK_BYTE_PTR, CK_ULONG_PTR); 61 CK_RV soft_encrypt_final(soft_session_t *, CK_BYTE_PTR, CK_ULONG_PTR); 68 CK_RV soft_decrypt(soft_session_t *, CK_BYTE_PTR, CK_ULONG, CK_BYTE_PTR, 71 CK_RV soft_decrypt_update(soft_session_t *, CK_BYTE_PTR, CK_ULONG, 72 CK_BYTE_PTR, CK_ULONG_PTR); [all …]
|
H A D | softCrypt.h | 89 CK_RV soft_des_encrypt_common(soft_session_t *, CK_BYTE_PTR, CK_ULONG, 90 CK_BYTE_PTR, CK_ULONG_PTR, boolean_t); 92 CK_RV soft_des_decrypt_common(soft_session_t *, CK_BYTE_PTR, CK_ULONG, 93 CK_BYTE_PTR, CK_ULONG_PTR, boolean_t); 95 CK_RV soft_des_sign_verify_common(soft_session_t *, CK_BYTE_PTR, 96 CK_ULONG, CK_BYTE_PTR, CK_ULONG_PTR, 102 CK_RV soft_des_mac_sign_verify_update(soft_session_t *, CK_BYTE_PTR, CK_ULONG); 111 CK_RV soft_arcfour_crypt(crypto_active_op_t *, CK_BYTE_PTR, CK_ULONG, 112 CK_BYTE_PTR, CK_ULONG_PTR); 117 CK_RV soft_aes_encrypt(soft_session_t *, CK_BYTE_PTR, CK_ULONG, [all …]
|
H A D | softRSA.h | 51 CK_RV soft_rsa_encrypt(soft_object_t *, CK_BYTE_PTR, uint32_t, CK_BYTE_PTR, 54 CK_RV soft_rsa_decrypt(soft_object_t *, CK_BYTE_PTR, uint32_t, CK_BYTE_PTR); 59 CK_RV soft_rsa_encrypt_common(soft_session_t *, CK_BYTE_PTR, CK_ULONG, 60 CK_BYTE_PTR, CK_ULONG_PTR, CK_MECHANISM_TYPE); 62 CK_RV soft_rsa_decrypt_common(soft_session_t *, CK_BYTE_PTR, CK_ULONG, 63 CK_BYTE_PTR, CK_ULONG_PTR, CK_MECHANISM_TYPE); 68 CK_RV soft_rsa_verify_common(soft_session_t *, CK_BYTE_PTR, CK_ULONG, 69 CK_BYTE_PTR, CK_ULONG, CK_MECHANISM_TYPE); 71 CK_RV soft_rsa_sign_common(soft_session_t *, CK_BYTE_PTR, CK_ULONG, 72 CK_BYTE_PTR, CK_ULONG_PTR, CK_MECHANISM_TYPE); [all …]
|
H A D | softDSA.h | 56 CK_RV soft_dsa_verify(soft_session_t *, CK_BYTE_PTR, CK_ULONG, 57 CK_BYTE_PTR, CK_ULONG); 59 CK_RV soft_dsa_sign(soft_session_t *, CK_BYTE_PTR, CK_ULONG, 60 CK_BYTE_PTR, CK_ULONG_PTR); 64 CK_RV soft_dsa_digest_sign_common(soft_session_t *, CK_BYTE_PTR, 65 CK_ULONG, CK_BYTE_PTR, CK_ULONG_PTR, boolean_t); 67 CK_RV soft_dsa_digest_verify_common(soft_session_t *, CK_BYTE_PTR, 68 CK_ULONG, CK_BYTE_PTR, CK_ULONG, boolean_t);
|
H A D | softEC.h | 53 extern CK_RV soft_ecc_sign(soft_session_t *, CK_BYTE_PTR, CK_ULONG, 54 CK_BYTE_PTR, CK_ULONG_PTR); 55 extern CK_RV soft_ecc_verify(soft_session_t *, CK_BYTE_PTR, CK_ULONG, 56 CK_BYTE_PTR, CK_ULONG); 57 extern CK_RV soft_ecc_digest_sign_common(soft_session_t *, CK_BYTE_PTR, 58 CK_ULONG, CK_BYTE_PTR, CK_ULONG_PTR, boolean_t); 59 extern CK_RV soft_ecc_digest_verify_common(soft_session_t *, CK_BYTE_PTR, 60 CK_ULONG, CK_BYTE_PTR, CK_ULONG, boolean_t);
|
H A D | softDualCrypt.c | 34 C_DigestEncryptUpdate(CK_SESSION_HANDLE hSession, CK_BYTE_PTR pPart, in C_DigestEncryptUpdate() 35 CK_ULONG ulPartLen, CK_BYTE_PTR pEncryptedPart, in C_DigestEncryptUpdate() 63 C_DecryptDigestUpdate(CK_SESSION_HANDLE hSession, CK_BYTE_PTR pEncryptedPart, in C_DecryptDigestUpdate() 64 CK_ULONG ulEncryptedPartLen, CK_BYTE_PTR pPart, CK_ULONG_PTR pulPartLen) in C_DecryptDigestUpdate() 91 C_SignEncryptUpdate(CK_SESSION_HANDLE hSession, CK_BYTE_PTR pPart, in C_SignEncryptUpdate() 92 CK_ULONG ulPartLen, CK_BYTE_PTR pEncryptedPart, in C_SignEncryptUpdate() 120 C_DecryptVerifyUpdate(CK_SESSION_HANDLE hSession, CK_BYTE_PTR pEncryptedPart, in C_DecryptVerifyUpdate() 121 CK_ULONG ulEncryptedPartLen, CK_BYTE_PTR pPart, CK_ULONG_PTR pulPartLen) in C_DecryptVerifyUpdate()
|
H A D | softDSA.c | 117 local_dsa_sign(soft_object_t *key, CK_BYTE_PTR in, CK_ULONG inlen, in local_dsa_sign() 118 CK_BYTE_PTR out) in local_dsa_sign() 168 local_dsa_verify(soft_object_t *key, CK_BYTE_PTR data, CK_BYTE_PTR sig) in local_dsa_verify() 219 soft_dsa_digest_sign_common(soft_session_t *session_p, CK_BYTE_PTR pData, in soft_dsa_digest_sign_common() 220 CK_ULONG ulDataLen, CK_BYTE_PTR pSigned, in soft_dsa_digest_sign_common() 275 soft_dsa_sign(soft_session_t *session_p, CK_BYTE_PTR pData, in soft_dsa_sign() 276 CK_ULONG ulDataLen, CK_BYTE_PTR pSigned, in soft_dsa_sign() 324 soft_dsa_verify(soft_session_t *session_p, CK_BYTE_PTR pData, in soft_dsa_verify() 325 CK_ULONG ulDataLen, CK_BYTE_PTR pSignature, in soft_dsa_verify() 364 soft_dsa_digest_verify_common(soft_session_t *session_p, CK_BYTE_PTR pData, in soft_dsa_digest_verify_common() [all …]
|
/illumos-gate/usr/src/lib/pkcs11/include/ |
H A D | pkcs11f.h | 219 CK_BYTE_PTR pOperationState, /* gets state */ 232 CK_BYTE_PTR pOperationState, /* holds state */ 398 CK_BYTE_PTR pData, /* the plaintext data */ 400 CK_BYTE_PTR pEncryptedData, /* gets ciphertext */ 413 CK_BYTE_PTR pPart, /* the plaintext data */ 415 CK_BYTE_PTR pEncryptedPart, /* gets ciphertext */ 428 CK_BYTE_PTR pLastEncryptedPart, /* last c-text */ 450 CK_BYTE_PTR pEncryptedData, /* ciphertext */ 452 CK_BYTE_PTR pData, /* gets plaintext */ 465 CK_BYTE_PTR pEncryptedPart, /* encrypted data */ [all …]
|
H A D | pkcs11t.h | 63 typedef CK_BYTE CK_PTR CK_BYTE_PTR; typedef 1311 CK_BYTE_PTR pSharedData; 1313 CK_BYTE_PTR pPublicData; 1325 CK_BYTE_PTR pSharedData; 1327 CK_BYTE_PTR pPublicData; 1331 CK_BYTE_PTR pPublicData2; 1339 CK_BYTE_PTR pSharedData; 1341 CK_BYTE_PTR pPublicData; 1345 CK_BYTE_PTR pPublicData2; 1364 CK_BYTE_PTR pOtherInfo; [all …]
|
/illumos-gate/usr/src/lib/pkcs11/libpkcs11/common/ |
H A D | metaDualCrypt.c | 56 meta_DigestEncryptUpdate(CK_SESSION_HANDLE hSession, CK_BYTE_PTR pPart, in meta_DigestEncryptUpdate() 57 CK_ULONG ulPartLen, CK_BYTE_PTR pEncryptedPart, in meta_DigestEncryptUpdate() 70 CK_BYTE_PTR pEncryptedPart, CK_ULONG ulEncryptedPartLen, in meta_DecryptDigestUpdate() 71 CK_BYTE_PTR pPart, CK_ULONG_PTR pulPartLen) in meta_DecryptDigestUpdate() 82 meta_SignEncryptUpdate(CK_SESSION_HANDLE hSession, CK_BYTE_PTR pPart, in meta_SignEncryptUpdate() 83 CK_ULONG ulPartLen, CK_BYTE_PTR pEncryptedPart, in meta_SignEncryptUpdate() 96 CK_BYTE_PTR pEncryptedPart, CK_ULONG ulEncryptedPartLen, in meta_DecryptVerifyUpdate() 97 CK_BYTE_PTR pPart, CK_ULONG_PTR pulPartLen) in meta_DecryptVerifyUpdate()
|
H A D | metaGlobal.h | 725 CK_BYTE_PTR pOperationState, CK_ULONG_PTR pulOperationStateLen); 727 CK_BYTE_PTR pOperationState, CK_ULONG ulOperationStateLen, 753 CK_BYTE_PTR pData, CK_ULONG ulDataLen, 754 CK_BYTE_PTR pEncryptedData, CK_ULONG_PTR pulEncryptedDataLen); 756 CK_BYTE_PTR pPart, CK_ULONG ulPartLen, 757 CK_BYTE_PTR pEncryptedPart, CK_ULONG_PTR pulEncryptedPartLen); 759 CK_BYTE_PTR pLastEncryptedPart, CK_ULONG_PTR pulLastEncryptedPartLen); 763 CK_BYTE_PTR pEncryptedData, CK_ULONG ulEncryptedDataLen, 764 CK_BYTE_PTR pData, CK_ULONG_PTR pulDataLen); 766 CK_BYTE_PTR pEncryptedPart, CK_ULONG ulEncryptedPartLen, [all …]
|
H A D | pkcs11DualCrypt.c | 40 C_DigestEncryptUpdate(CK_SESSION_HANDLE hSession, CK_BYTE_PTR pPart, in C_DigestEncryptUpdate() 41 CK_ULONG ulPartLen, CK_BYTE_PTR pEncryptedPart, in C_DigestEncryptUpdate() 86 C_DecryptDigestUpdate(CK_SESSION_HANDLE hSession, CK_BYTE_PTR pEncryptedPart, in C_DecryptDigestUpdate() 87 CK_ULONG ulEncryptedPartLen, CK_BYTE_PTR pPart, CK_ULONG_PTR pulPartLen) in C_DecryptDigestUpdate() 131 C_SignEncryptUpdate(CK_SESSION_HANDLE hSession, CK_BYTE_PTR pPart, in C_SignEncryptUpdate() 132 CK_ULONG ulPartLen, CK_BYTE_PTR pEncryptedPart, in C_SignEncryptUpdate() 176 C_DecryptVerifyUpdate(CK_SESSION_HANDLE hSession, CK_BYTE_PTR pEncryptedPart, in C_DecryptVerifyUpdate() 177 CK_ULONG ulEncryptedPartLen, CK_BYTE_PTR pPart, CK_ULONG_PTR pulPartLen) in C_DecryptVerifyUpdate()
|
H A D | metaCrypt.c | 75 CK_BYTE_PTR pData, CK_ULONG ulDataLen, in meta_Encrypt() 76 CK_BYTE_PTR pEncryptedData, CK_ULONG_PTR pulEncryptedDataLen) in meta_Encrypt() 117 CK_BYTE_PTR pPart, CK_ULONG ulPartLen, in meta_EncryptUpdate() 118 CK_BYTE_PTR pEncryptedPart, CK_ULONG_PTR pulEncryptedPartLen) in meta_EncryptUpdate() 148 CK_BYTE_PTR pLastEncryptedPart, CK_ULONG_PTR pulLastEncryptedPartLen) in meta_EncryptFinal() 212 CK_BYTE_PTR pEncryptedData, CK_ULONG ulEncryptedDataLen, in meta_Decrypt() 213 CK_BYTE_PTR pData, CK_ULONG_PTR pulDataLen) in meta_Decrypt() 243 CK_BYTE_PTR pEncryptedPart, CK_ULONG ulEncryptedPartLen, in meta_DecryptUpdate() 244 CK_BYTE_PTR pPart, CK_ULONG_PTR pulPartLen) in meta_DecryptUpdate() 274 CK_BYTE_PTR pLastPart, CK_ULONG_PTR pulLastPartLen) in meta_DecryptFinal()
|
H A D | pkcs11Crypt.c | 95 CK_BYTE_PTR pData, in C_Encrypt() 97 CK_BYTE_PTR pEncryptedData, in C_Encrypt() 138 CK_BYTE_PTR pPart, in C_EncryptUpdate() 140 CK_BYTE_PTR pEncryptedPart, in C_EncryptUpdate() 181 CK_BYTE_PTR pLastEncryptedPart, in C_EncryptFinal() 278 CK_BYTE_PTR pEncryptedData, in C_Decrypt() 280 CK_BYTE_PTR pData, in C_Decrypt() 321 CK_BYTE_PTR pEncryptedPart, in C_DecryptUpdate() 323 CK_BYTE_PTR pPart, in C_DecryptUpdate() 364 CK_BYTE_PTR pLastPart, in C_DecryptFinal()
|
H A D | metaSign.c | 74 CK_BYTE_PTR pData, CK_ULONG ulDataLen, in meta_Sign() 75 CK_BYTE_PTR pSignature, CK_ULONG_PTR pulSignatureLen) in meta_Sign() 105 CK_BYTE_PTR pPart, CK_ULONG ulPartLen) in meta_SignUpdate() 134 meta_SignFinal(CK_SESSION_HANDLE hSession, CK_BYTE_PTR pSignature, in meta_SignFinal() 197 meta_SignRecover(CK_SESSION_HANDLE hSession, CK_BYTE_PTR pData, in meta_SignRecover() 198 CK_ULONG ulDataLen, CK_BYTE_PTR pSignature, CK_ULONG_PTR pulSignatureLen) in meta_SignRecover()
|
H A D | metaVerify.c | 73 meta_Verify(CK_SESSION_HANDLE hSession, CK_BYTE_PTR pData, CK_ULONG ulDataLen, in meta_Verify() 74 CK_BYTE_PTR pSignature, CK_ULONG ulSignatureLen) in meta_Verify() 104 meta_VerifyUpdate(CK_SESSION_HANDLE hSession, CK_BYTE_PTR pPart, in meta_VerifyUpdate() 134 meta_VerifyFinal(CK_SESSION_HANDLE hSession, CK_BYTE_PTR pSignature, in meta_VerifyFinal() 202 meta_VerifyRecover(CK_SESSION_HANDLE hSession, CK_BYTE_PTR pSignature, in meta_VerifyRecover() 203 CK_ULONG ulSignatureLen, CK_BYTE_PTR pData, CK_ULONG_PTR pulDataLen) in meta_VerifyRecover()
|
H A D | pkcs11Sign.c | 94 CK_BYTE_PTR pData, in C_Sign() 96 CK_BYTE_PTR pSignature, in C_Sign() 137 C_SignUpdate(CK_SESSION_HANDLE hSession, CK_BYTE_PTR pPart, CK_ULONG ulPartLen) in C_SignUpdate() 176 C_SignFinal(CK_SESSION_HANDLE hSession, CK_BYTE_PTR pSignature, in C_SignFinal() 272 C_SignRecover(CK_SESSION_HANDLE hSession, CK_BYTE_PTR pData, in C_SignRecover() 273 CK_ULONG ulDataLen, CK_BYTE_PTR pSignature, CK_ULONG_PTR pulSignatureLen) in C_SignRecover()
|
H A D | pkcs11Verify.c | 93 C_Verify(CK_SESSION_HANDLE hSession, CK_BYTE_PTR pData, CK_ULONG ulDataLen, in C_Verify() 94 CK_BYTE_PTR pSignature, CK_ULONG ulSignatureLen) in C_Verify() 134 C_VerifyUpdate(CK_SESSION_HANDLE hSession, CK_BYTE_PTR pPart, in C_VerifyUpdate() 174 C_VerifyFinal(CK_SESSION_HANDLE hSession, CK_BYTE_PTR pSignature, in C_VerifyFinal() 271 C_VerifyRecover(CK_SESSION_HANDLE hSession, CK_BYTE_PTR pSignature, in C_VerifyRecover() 272 CK_ULONG ulSignatureLen, CK_BYTE_PTR pData, CK_ULONG_PTR pulDataLen) in C_VerifyRecover()
|
/illumos-gate/usr/src/lib/pkcs11/pkcs11_kernel/common/ |
H A D | kernelDualCrypt.c | 32 C_DigestEncryptUpdate(CK_SESSION_HANDLE hSession, CK_BYTE_PTR pPart, in C_DigestEncryptUpdate() 33 CK_ULONG ulPartLen, CK_BYTE_PTR pEncryptedPart, in C_DigestEncryptUpdate() 44 C_DecryptDigestUpdate(CK_SESSION_HANDLE hSession, CK_BYTE_PTR pEncryptedPart, in C_DecryptDigestUpdate() 45 CK_ULONG ulEncryptedPartLen, CK_BYTE_PTR pPart, CK_ULONG_PTR pulPartLen) in C_DecryptDigestUpdate() 55 C_SignEncryptUpdate(CK_SESSION_HANDLE hSession, CK_BYTE_PTR pPart, in C_SignEncryptUpdate() 56 CK_ULONG ulPartLen, CK_BYTE_PTR pEncryptedPart, in C_SignEncryptUpdate() 67 C_DecryptVerifyUpdate(CK_SESSION_HANDLE hSession, CK_BYTE_PTR pEncryptedPart, in C_DecryptVerifyUpdate() 68 CK_ULONG ulEncryptedPartLen, CK_BYTE_PTR pPart, CK_ULONG_PTR pulPartLen) in C_DecryptVerifyUpdate()
|
H A D | kernelSoftCommon.h | 46 CK_RV do_soft_digest(void **s, CK_MECHANISM_PTR pMechanism, CK_BYTE_PTR pBuf, 47 CK_ULONG ulBufLen, CK_BYTE_PTR pDigest, 50 CK_RV do_soft_hmac_init(void **s, CK_MECHANISM_PTR pMechanism, CK_BYTE_PTR kval, 52 CK_RV do_soft_hmac_update(void **s, CK_BYTE_PTR pBuf, 54 CK_RV do_soft_hmac_sign(void **s, CK_BYTE_PTR pBuf, CK_ULONG ulBufLen, 55 CK_BYTE_PTR pSignature, CK_ULONG_PTR pulSignatureLen, int opflag); 56 CK_RV do_soft_hmac_verify(void **s, CK_BYTE_PTR pBuf, CK_ULONG ulBufLen, 57 CK_BYTE_PTR pSignature, CK_ULONG ulSignatureLen, int opflag);
|
H A D | kernelSoftCommon.c | 45 do_soft_digest(void **s, CK_MECHANISM_PTR pMechanism, CK_BYTE_PTR pData, in do_soft_digest() 46 CK_ULONG ulDataLen, CK_BYTE_PTR pDigest, CK_ULONG_PTR pulDigestLen, in do_soft_digest() 104 CK_BYTE_PTR kval, CK_ULONG klen, int opflag) in do_soft_hmac_init() 147 do_soft_hmac_update(void **s, CK_BYTE_PTR pData, CK_ULONG ulDataLen, int opflag) in do_soft_hmac_update() 164 do_soft_hmac_sign(void **s, CK_BYTE_PTR pData, CK_ULONG ulDataLen, in do_soft_hmac_sign() 165 CK_BYTE_PTR pSignature, CK_ULONG_PTR pulSignatureLen, int opflag) in do_soft_hmac_sign() 190 do_soft_hmac_verify(void **s, CK_BYTE_PTR pData, CK_ULONG ulDataLen, in do_soft_hmac_verify() 191 CK_BYTE_PTR pSignature, CK_ULONG ulSignatureLen, int opflag) in do_soft_hmac_verify()
|
/illumos-gate/usr/src/lib/pkcs11/pkcs11_tpm/common/ |
H A D | api_interface.c | 551 CK_BYTE_PTR pEncryptedData, in C_Decrypt() 553 CK_BYTE_PTR pData, in C_Decrypt() 577 CK_BYTE_PTR pEncryptedPart, in C_DecryptDigestUpdate() 579 CK_BYTE_PTR pPart, in C_DecryptDigestUpdate() 605 CK_BYTE_PTR pLastPart, in C_DecryptFinal() 662 CK_BYTE_PTR pEncryptedPart, in C_DecryptUpdate() 664 CK_BYTE_PTR pPart, in C_DecryptUpdate() 690 CK_BYTE_PTR pEncryptedPart, in C_DecryptVerifyUpdate() 692 CK_BYTE_PTR pPart, in C_DecryptVerifyUpdate() 776 CK_BYTE_PTR pData, in C_Digest() [all …]
|
H A D | tpmtok_int.h | 1327 (ST_SESSION_T hSession, CK_BYTE_PTR pOperationState, 1331 (ST_SESSION_T hSession, CK_BYTE_PTR pOperationState, 1384 (ST_SESSION_T hSession, CK_BYTE_PTR pData, 1385 CK_ULONG usDataLen, CK_BYTE_PTR pEncryptedData, 1389 (ST_SESSION_T hSession, CK_BYTE_PTR pPart, 1390 CK_ULONG usPartLen, CK_BYTE_PTR pEncryptedPart, 1395 CK_BYTE_PTR pLastEncryptedPart, 1403 (ST_SESSION_T hSession, CK_BYTE_PTR pEncryptedData, 1404 CK_ULONG usEncryptedDataLen, CK_BYTE_PTR pData, 1408 (ST_SESSION_T hSession, CK_BYTE_PTR pEncryptedPart, [all …]
|
/illumos-gate/usr/src/uts/common/gssapi/mechs/krb5/crypto/enc_provider/ |
H A D | arcfour_provider.c | 150 (CK_BYTE_PTR)input->data, in k5_arcfour_decrypt() 152 (CK_BYTE_PTR)output->data, in k5_arcfour_decrypt() 156 (CK_BYTE_PTR)input->data, in k5_arcfour_decrypt() 158 (CK_BYTE_PTR)output->data, in k5_arcfour_decrypt() 256 (CK_BYTE_PTR)input->data, in k5_arcfour_encrypt() 258 (CK_BYTE_PTR)output->data, in k5_arcfour_encrypt() 262 (CK_BYTE_PTR)input->data, in k5_arcfour_encrypt() 264 (CK_BYTE_PTR)output->data, in k5_arcfour_encrypt()
|
/illumos-gate/usr/src/lib/smbsrv/libsmb/common/ |
H A D | smb_crypt.c | 112 rv = C_SignUpdate(hSession, (CK_BYTE_PTR)data, data_len); in smb_auth_hmac_md5() 118 rv = C_SignFinal(hSession, (CK_BYTE_PTR)digest, &diglen); in smb_auth_hmac_md5() 197 (CK_BYTE_PTR)Data + (d * 8), 8, in smb_auth_DES() 198 (CK_BYTE_PTR)Result + (k * 8), in smb_auth_DES() 281 (CK_BYTE_PTR)Data, DataLen, in smb_auth_RC4() 282 (CK_BYTE_PTR)Result, &ciphertext_len); in smb_auth_RC4()
|