Home
last modified time | relevance | path

Searched refs:pSignature (Results 1 – 21 of 21) sorted by relevance

/illumos-gate/usr/src/lib/pkcs11/pkcs11_softtoken/common/
H A DsoftSignUtil.c136 CK_ULONG ulDataLen, CK_BYTE_PTR pSignature, in soft_sign() argument
160 if (pSignature != NULL) { in soft_sign()
167 ulDataLen, pSignature, pulSignatureLen, B_TRUE); in soft_sign()
170 if ((rv == CKR_OK) && (pSignature != NULL)) in soft_sign()
171 (void) memcpy(pSignature, hmac, *pulSignatureLen); in soft_sign()
180 if (pSignature != NULL) { in soft_sign()
191 if ((rv == CKR_OK) && (pSignature != NULL)) in soft_sign()
192 (void) memcpy(pSignature, signature, *pulSignatureLen); in soft_sign()
201 if (pSignature != NULL) { in soft_sign()
212 if ((rv == CKR_OK) && (pSignature != NULL)) in soft_sign()
[all …]
H A DsoftVerifyUtil.c137 CK_ULONG ulDataLen, CK_BYTE_PTR pSignature, in soft_verify() argument
174 if (memcmp(hmac, pSignature, len) != 0) { in soft_verify()
200 if (memcmp(signature, pSignature, len) != 0) { in soft_verify()
226 if (memcmp(signature, pSignature, len) != 0) { in soft_verify()
237 pSignature, ulSignatureLen, mechanism)); in soft_verify()
246 ulDataLen, pSignature, ulSignatureLen, mechanism, B_FALSE)); in soft_verify()
251 pSignature, ulSignatureLen)); in soft_verify()
256 ulDataLen, pSignature, ulSignatureLen, B_FALSE)); in soft_verify()
261 pSignature, ulSignatureLen)); in soft_verify()
266 ulDataLen, pSignature, ulSignatureLen, B_FALSE)); in soft_verify()
[all …]
H A DsoftSign.c105 CK_BYTE_PTR pSignature, CK_ULONG_PTR pulSignatureLen) in C_Sign() argument
152 rv = soft_sign(session_p, pData, ulDataLen, pSignature, in C_Sign()
156 (pSignature == NULL && rv == CKR_OK)) { in C_Sign()
234 C_SignFinal(CK_SESSION_HANDLE hSession, CK_BYTE_PTR pSignature, in C_SignFinal() argument
270 rv = soft_sign_final(session_p, pSignature, pulSignatureLen); in C_SignFinal()
273 (pSignature == NULL && rv == CKR_OK)) { in C_SignFinal()
362 CK_ULONG ulDataLen, CK_BYTE_PTR pSignature, CK_ULONG_PTR pulSignatureLen) in C_SignRecover() argument
394 rv = soft_sign_recover(session_p, pData, ulDataLen, pSignature, in C_SignRecover()
398 (pSignature == NULL && rv == CKR_OK)) { in C_SignRecover()
H A DsoftVerify.c105 CK_BYTE_PTR pSignature, CK_ULONG ulSignatureLen) in C_Verify() argument
152 rv = soft_verify(session_p, pData, ulDataLen, pSignature, in C_Verify()
222 C_VerifyFinal(CK_SESSION_HANDLE hSession, CK_BYTE_PTR pSignature, in C_VerifyFinal() argument
253 rv = soft_verify_final(session_p, pSignature, ulSignatureLen); in C_VerifyFinal()
332 C_VerifyRecover(CK_SESSION_HANDLE hSession, CK_BYTE_PTR pSignature, in C_VerifyRecover() argument
348 if ((pSignature == NULL) || (pulDataLen == NULL)) { in C_VerifyRecover()
364 rv = soft_verify_recover(session_p, pSignature, in C_VerifyRecover()
H A DsoftRSA.c641 CK_ULONG ulDataLen, CK_BYTE_PTR pSignature, in soft_rsa_verify_common() argument
671 rv = soft_rsa_encrypt(key, pSignature, modulus_len, plain_data, 1); in soft_rsa_verify_common()
1175 soft_rsa_verify_recover(soft_session_t *session_p, CK_BYTE_PTR pSignature, in soft_rsa_verify_recover() argument
1201 rv = soft_rsa_encrypt(key, pSignature, modulus_len, plain_data, 1); in soft_rsa_verify_recover()
H A DsoftDSA.c325 CK_ULONG ulDataLen, CK_BYTE_PTR pSignature, in soft_dsa_verify() argument
350 rv = local_dsa_verify(key, pData, pSignature); in soft_dsa_verify()
H A DsoftEC.c530 CK_ULONG ulDataLen, CK_BYTE_PTR pSignature, in soft_ecc_verify() argument
571 signature_item.data = pSignature; in soft_ecc_verify()
/illumos-gate/usr/src/lib/pkcs11/libpkcs11/common/
H A DmetaVerify.c74 CK_BYTE_PTR pSignature, CK_ULONG ulSignatureLen) in meta_Verify() argument
84 if (pData == NULL || pSignature == NULL) { in meta_Verify()
91 pData, ulDataLen, pSignature, &ulSignatureLen); in meta_Verify()
134 meta_VerifyFinal(CK_SESSION_HANDLE hSession, CK_BYTE_PTR pSignature, in meta_VerifyFinal() argument
148 if (pSignature == NULL && ulSignatureLen != 0) { in meta_VerifyFinal()
155 pSignature, ulSignatureLen, NULL, NULL); in meta_VerifyFinal()
202 meta_VerifyRecover(CK_SESSION_HANDLE hSession, CK_BYTE_PTR pSignature, in meta_VerifyRecover() argument
212 if (pSignature == NULL || pulDataLen == NULL) { in meta_VerifyRecover()
219 pSignature, ulSignatureLen, pData, pulDataLen); in meta_VerifyRecover()
H A Dpkcs11Sign.c96 CK_BYTE_PTR pSignature, in C_Sign() argument
105 pSignature, pulSignatureLen)); in C_Sign()
121 ulDataLen, pSignature, pulSignatureLen); in C_Sign()
176 C_SignFinal(CK_SESSION_HANDLE hSession, CK_BYTE_PTR pSignature, in C_SignFinal() argument
184 return (fast_funcs->C_SignFinal(hSession, pSignature, in C_SignFinal()
201 pSignature, pulSignatureLen); in C_SignFinal()
273 CK_ULONG ulDataLen, CK_BYTE_PTR pSignature, CK_ULONG_PTR pulSignatureLen) in C_SignRecover() argument
281 pSignature, pulSignatureLen)); in C_SignRecover()
296 ulDataLen, pSignature, pulSignatureLen); in C_SignRecover()
H A Dpkcs11Verify.c94 CK_BYTE_PTR pSignature, CK_ULONG ulSignatureLen) in C_Verify() argument
102 pSignature, ulSignatureLen)); in C_Verify()
118 ulDataLen, pSignature, ulSignatureLen); in C_Verify()
174 C_VerifyFinal(CK_SESSION_HANDLE hSession, CK_BYTE_PTR pSignature, in C_VerifyFinal() argument
182 return (fast_funcs->C_VerifyFinal(hSession, pSignature, in C_VerifyFinal()
198 pSignature, ulSignatureLen); in C_VerifyFinal()
271 C_VerifyRecover(CK_SESSION_HANDLE hSession, CK_BYTE_PTR pSignature, in C_VerifyRecover() argument
279 return (fast_funcs->C_VerifyRecover(hSession, pSignature, in C_VerifyRecover()
296 pSignature, ulSignatureLen, pData, pulDataLen); in C_VerifyRecover()
H A DmetaSign.c75 CK_BYTE_PTR pSignature, CK_ULONG_PTR pulSignatureLen) in meta_Sign() argument
91 pData, ulDataLen, pSignature, pulSignatureLen); in meta_Sign()
134 meta_SignFinal(CK_SESSION_HANDLE hSession, CK_BYTE_PTR pSignature, in meta_SignFinal() argument
151 NULL, 0, pSignature, pulSignatureLen); in meta_SignFinal()
198 CK_ULONG ulDataLen, CK_BYTE_PTR pSignature, CK_ULONG_PTR pulSignatureLen) in meta_SignRecover() argument
214 pData, ulDataLen, pSignature, pulSignatureLen); in meta_SignRecover()
H A DmetaGlobal.h782 CK_BYTE_PTR pSignature, CK_ULONG_PTR pulSignatureLen);
785 CK_RV meta_SignFinal(CK_SESSION_HANDLE hSession, CK_BYTE_PTR pSignature,
790 CK_ULONG ulDataLen, CK_BYTE_PTR pSignature, CK_ULONG_PTR pulSignatureLen);
794 CK_ULONG ulDataLen, CK_BYTE_PTR pSignature, CK_ULONG ulSignatureLen);
797 CK_RV meta_VerifyFinal(CK_SESSION_HANDLE hSession, CK_BYTE_PTR pSignature,
801 CK_RV meta_VerifyRecover(CK_SESSION_HANDLE hSession, CK_BYTE_PTR pSignature,
/illumos-gate/usr/src/lib/pkcs11/pkcs11_kernel/common/
H A DkernelSign.c176 CK_BYTE_PTR pSignature, CK_ULONG_PTR pulSignatureLen) in C_Sign() argument
231 pSignature, pulSignatureLen, OP_SINGLE); in C_Sign()
245 sign.cs_signbuf = (char *)pSignature; in C_Sign()
262 (rv == CKR_OK && pSignature == NULL)) { in C_Sign()
374 C_SignFinal(CK_SESSION_HANDLE hSession, CK_BYTE_PTR pSignature, in C_SignFinal() argument
415 NULL, 0, pSignature, pulSignatureLen, OP_FINAL); in C_SignFinal()
431 pSignature, pulSignatureLen, OP_SINGLE); in C_SignFinal()
448 pSignature, pulSignatureLen); in C_SignFinal()
457 sign_final.sf_signbuf = (char *)pSignature; in C_SignFinal()
474 (rv == CKR_OK && pSignature == NULL)) { in C_SignFinal()
[all …]
H A DkernelSoftCommon.c165 CK_BYTE_PTR pSignature, CK_ULONG_PTR pulSignatureLen, int opflag) in do_soft_hmac_sign() argument
177 (pSignature != NULL ? hmac : NULL), pulSignatureLen, B_TRUE); in do_soft_hmac_sign()
179 if ((rv == CKR_OK) && (pSignature != NULL)) { in do_soft_hmac_sign()
180 (void) memcpy(pSignature, hmac, *pulSignatureLen); in do_soft_hmac_sign()
191 CK_BYTE_PTR pSignature, CK_ULONG ulSignatureLen, int opflag) in do_soft_hmac_verify() argument
215 if (memcmp(hmac, pSignature, len) != 0) { in do_soft_hmac_verify()
H A DkernelVerify.c180 CK_BYTE_PTR pSignature, CK_ULONG ulSignatureLen) in C_Verify() argument
230 pSignature, ulSignatureLen, OP_SINGLE); in C_Verify()
243 verify.cv_signbuf = (char *)pSignature; in C_Verify()
357 C_VerifyFinal(CK_SESSION_HANDLE hSession, CK_BYTE_PTR pSignature, in C_VerifyFinal() argument
393 NULL, 0, pSignature, ulSignatureLen, in C_VerifyFinal()
420 pSignature, ulSignatureLen); in C_VerifyFinal()
429 verify_final.vf_signbuf = (char *)pSignature; in C_VerifyFinal()
563 C_VerifyRecover(CK_SESSION_HANDLE hSession, CK_BYTE_PTR pSignature, in C_VerifyRecover() argument
581 if (pSignature == NULL || pulDataLen == NULL) { in C_VerifyRecover()
602 verify_recover.vr_signbuf = (char *)pSignature; in C_VerifyRecover()
H A DkernelSoftCommon.h55 CK_BYTE_PTR pSignature, CK_ULONG_PTR pulSignatureLen, int opflag);
57 CK_BYTE_PTR pSignature, CK_ULONG ulSignatureLen, int opflag);
/illumos-gate/usr/src/lib/pkcs11/include/
H A Dpkcs11f.h579 CK_BYTE_PTR pSignature, /* gets the signature */
606 CK_BYTE_PTR pSignature, /* gets the signature */
634 CK_BYTE_PTR pSignature, /* gets the signature */
667 CK_BYTE_PTR pSignature, /* signature */
694 CK_BYTE_PTR pSignature, /* signature to verify */
720 CK_BYTE_PTR pSignature, /* signature to verify */
/illumos-gate/usr/src/lib/pkcs11/pkcs11_tpm/common/
H A Dnew_host.c1709 CK_BYTE_PTR pSignature, in SC_Sign() argument
1737 if (! pSignature) in SC_Sign()
1742 pSignature, pulSignatureLen); in SC_Sign()
1792 CK_BYTE_PTR pSignature, in SC_SignFinal() argument
1821 if (! pSignature) in SC_SignFinal()
1825 &sess->sign_ctx, pSignature, pulSignatureLen); in SC_SignFinal()
1880 CK_BYTE_PTR pSignature, in SC_SignRecover() argument
1908 if (! pSignature) in SC_SignRecover()
1913 pSignature, pulSignatureLen); in SC_SignRecover()
1968 CK_BYTE_PTR pSignature, in SC_Verify() argument
[all …]
H A Dapi_interface.c1917 CK_BYTE_PTR pSignature, in C_Sign() argument
1931 pSignature, pulSignatureLen); in C_Sign()
1967 CK_BYTE_PTR pSignature, in C_SignFinal() argument
1983 rv = FuncList.ST_SignFinal(rSession, pSignature, in C_SignFinal()
2020 CK_BYTE_PTR pSignature, in C_SignRecover() argument
2034 ulDataLen, pSignature, pulSignatureLen); in C_SignRecover()
2124 CK_BYTE_PTR pSignature, in C_Verify() argument
2138 pSignature, ulSignatureLen); in C_Verify()
2147 CK_BYTE_PTR pSignature, in C_VerifyFinal() argument
2156 if (! pSignature) { in C_VerifyFinal()
[all …]
H A Dtpmtok_int.h1442 CK_ULONG usDataLen, CK_BYTE_PTR pSignature,
1450 (ST_SESSION_T hSession, CK_BYTE_PTR pSignature,
1459 CK_ULONG usDataLen, CK_BYTE_PTR pSignature,
1468 CK_ULONG usDataLen, CK_BYTE_PTR pSignature,
1476 (ST_SESSION_T hSession, CK_BYTE_PTR pSignature,
1484 (ST_SESSION_T hSession, CK_BYTE_PTR pSignature,
H A Dtpm_specific.c2752 CK_BYTE_PTR pSignature, in token_specific_rsa_verify_recover() argument
2789 if ((rc = rsa_encrypt(&rsa, pSignature, modLen, plain_data)) != CKR_OK) in token_specific_rsa_verify_recover()