Home
last modified time | relevance | path

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

/titanic_50/usr/src/lib/pkcs11/pkcs11_softtoken/common/
H A DsoftSignUtil.c130 CK_ULONG ulDataLen, CK_BYTE_PTR pSignature, in soft_sign() argument
154 if (pSignature != NULL) { in soft_sign()
161 ulDataLen, pSignature, pulSignatureLen, B_TRUE); in soft_sign()
164 if ((rv == CKR_OK) && (pSignature != NULL)) in soft_sign()
165 (void) memcpy(pSignature, hmac, *pulSignatureLen); in soft_sign()
174 if (pSignature != NULL) { in soft_sign()
185 if ((rv == CKR_OK) && (pSignature != NULL)) in soft_sign()
186 (void) memcpy(pSignature, signature, *pulSignatureLen); in soft_sign()
194 pSignature, pulSignatureLen, mechanism)); in soft_sign()
203 pSignature, pulSignatureLen, mechanism, B_FALSE)); in soft_sign()
[all …]
H A DsoftVerifyUtil.c131 CK_ULONG ulDataLen, CK_BYTE_PTR pSignature, in soft_verify() argument
168 if (memcmp(hmac, pSignature, len) != 0) { in soft_verify()
194 if (memcmp(signature, pSignature, len) != 0) { in soft_verify()
205 pSignature, ulSignatureLen, mechanism)); in soft_verify()
214 ulDataLen, pSignature, ulSignatureLen, mechanism, B_FALSE)); in soft_verify()
219 pSignature, ulSignatureLen)); in soft_verify()
224 ulDataLen, pSignature, ulSignatureLen, B_FALSE)); in soft_verify()
229 pSignature, ulSignatureLen)); in soft_verify()
234 ulDataLen, pSignature, ulSignatureLen, B_FALSE)); in soft_verify()
322 soft_verify_final(soft_session_t *session_p, CK_BYTE_PTR pSignature, in soft_verify_final() argument
[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 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 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 DsoftEC.c530 CK_ULONG ulDataLen, CK_BYTE_PTR pSignature, in soft_ecc_verify() argument
571 signature_item.data = pSignature; in soft_ecc_verify()
/titanic_50/usr/src/lib/pkcs11/libpkcs11/common/
H A DmetaVerify.c76 CK_BYTE_PTR pSignature, CK_ULONG ulSignatureLen) in meta_Verify() argument
86 if (pData == NULL || pSignature == NULL) { in meta_Verify()
93 pData, ulDataLen, pSignature, &ulSignatureLen); in meta_Verify()
136 meta_VerifyFinal(CK_SESSION_HANDLE hSession, CK_BYTE_PTR pSignature, in meta_VerifyFinal() argument
150 if (pSignature == NULL && ulSignatureLen != 0) { in meta_VerifyFinal()
157 pSignature, ulSignatureLen, NULL, NULL); in meta_VerifyFinal()
204 meta_VerifyRecover(CK_SESSION_HANDLE hSession, CK_BYTE_PTR pSignature, in meta_VerifyRecover() argument
214 if (pSignature == NULL || pulDataLen == NULL) { in meta_VerifyRecover()
221 pSignature, ulSignatureLen, pData, pulDataLen); in meta_VerifyRecover()
H A Dpkcs11Sign.c98 CK_BYTE_PTR pSignature, in C_Sign() argument
107 pSignature, pulSignatureLen)); in C_Sign()
123 ulDataLen, pSignature, pulSignatureLen); in C_Sign()
178 C_SignFinal(CK_SESSION_HANDLE hSession, CK_BYTE_PTR pSignature, in C_SignFinal() argument
186 return (fast_funcs->C_SignFinal(hSession, pSignature, in C_SignFinal()
203 pSignature, pulSignatureLen); in C_SignFinal()
275 CK_ULONG ulDataLen, CK_BYTE_PTR pSignature, CK_ULONG_PTR pulSignatureLen) in C_SignRecover() argument
283 pSignature, pulSignatureLen)); in C_SignRecover()
298 ulDataLen, pSignature, pulSignatureLen); in C_SignRecover()
H A Dpkcs11Verify.c96 CK_BYTE_PTR pSignature, CK_ULONG ulSignatureLen) in C_Verify() argument
104 pSignature, ulSignatureLen)); in C_Verify()
120 ulDataLen, pSignature, ulSignatureLen); in C_Verify()
176 C_VerifyFinal(CK_SESSION_HANDLE hSession, CK_BYTE_PTR pSignature, in C_VerifyFinal() argument
184 return (fast_funcs->C_VerifyFinal(hSession, pSignature, in C_VerifyFinal()
200 pSignature, ulSignatureLen); in C_VerifyFinal()
273 C_VerifyRecover(CK_SESSION_HANDLE hSession, CK_BYTE_PTR pSignature, in C_VerifyRecover() argument
281 return (fast_funcs->C_VerifyRecover(hSession, pSignature, in C_VerifyRecover()
298 pSignature, ulSignatureLen, pData, pulDataLen); in C_VerifyRecover()
H A DmetaSign.c77 CK_BYTE_PTR pSignature, CK_ULONG_PTR pulSignatureLen) in meta_Sign() argument
93 pData, ulDataLen, pSignature, pulSignatureLen); in meta_Sign()
136 meta_SignFinal(CK_SESSION_HANDLE hSession, CK_BYTE_PTR pSignature, in meta_SignFinal() argument
153 NULL, 0, pSignature, pulSignatureLen); in meta_SignFinal()
200 CK_ULONG ulDataLen, CK_BYTE_PTR pSignature, CK_ULONG_PTR pulSignatureLen) in meta_SignRecover() argument
216 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,
/titanic_50/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.c166 CK_BYTE_PTR pSignature, CK_ULONG_PTR pulSignatureLen, int opflag) in do_soft_hmac_sign() argument
178 (pSignature != NULL ? hmac : NULL), pulSignatureLen, B_TRUE); in do_soft_hmac_sign()
180 if ((rv == CKR_OK) && (pSignature != NULL)) { in do_soft_hmac_sign()
181 (void) memcpy(pSignature, hmac, *pulSignatureLen); in do_soft_hmac_sign()
192 CK_BYTE_PTR pSignature, CK_ULONG ulSignatureLen, int opflag) in do_soft_hmac_verify() argument
216 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.h57 CK_BYTE_PTR pSignature, CK_ULONG_PTR pulSignatureLen, int opflag);
59 CK_BYTE_PTR pSignature, CK_ULONG ulSignatureLen, int opflag);
/titanic_50/usr/src/lib/pkcs11/include/
H A Dpkcs11f.h560 CK_BYTE_PTR pSignature, /* gets the signature */
585 CK_BYTE_PTR pSignature, /* gets the signature */
611 CK_BYTE_PTR pSignature, /* gets the signature */
642 CK_BYTE_PTR pSignature, /* signature */
667 CK_BYTE_PTR pSignature, /* signature to verify */
691 CK_BYTE_PTR pSignature, /* signature to verify */
/titanic_50/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.h1441 CK_ULONG usDataLen, CK_BYTE_PTR pSignature,
1449 (ST_SESSION_T hSession, CK_BYTE_PTR pSignature,
1458 CK_ULONG usDataLen, CK_BYTE_PTR pSignature,
1467 CK_ULONG usDataLen, CK_BYTE_PTR pSignature,
1475 (ST_SESSION_T hSession, CK_BYTE_PTR pSignature,
1483 (ST_SESSION_T hSession, CK_BYTE_PTR pSignature,