Lines Matching defs:ckpSignature
110 CK_BYTE_PTR ckpSignature;
132 ckpSignature = (CK_BYTE_PTR) malloc(ckSignatureLength * sizeof(CK_BYTE));
133 if (ckpSignature == NULL) {
140 rv = (*ckpFunctions->C_Sign)(ckSessionHandle, ckpData, ckDataLength, ckpSignature, &ckSignatureLength);
146 ckpSignature = (CK_BYTE_PTR) malloc(256 * sizeof(CK_BYTE));
147 if (ckpSignature == NULL) {
152 rv = (*ckpFunctions->C_Sign)(ckSessionHandle, ckpData, ckDataLength, ckpSignature, &ckSignatureLength);
155 free(ckpSignature);
156 ckpSignature = (CK_BYTE_PTR) malloc(ckSignatureLength * sizeof(CK_BYTE));
157 if (ckpSignature == NULL) {
162 rv = (*ckpFunctions->C_Sign)(ckSessionHandle, ckpData, ckDataLength, ckpSignature, &ckSignatureLength);
167 jSignature = ckByteArrayToJByteArray(env, ckpSignature, ckSignatureLength);
170 free(ckpSignature);
446 CK_BYTE_PTR ckpSignature = NULL_PTR;
458 jByteArrayToCKByteArray(env, jSignature, &ckpSignature, &ckSignatureLength);
465 rv = (*ckpFunctions->C_Verify)(ckSessionHandle, ckpData, ckDataLength, ckpSignature, ckSignatureLength);
468 free(ckpSignature);
551 CK_BYTE_PTR ckpSignature = NULL_PTR;
559 jByteArrayToCKByteArray(env, jSignature, &ckpSignature, &ckSignatureLength);
563 rv = (*ckpFunctions->C_VerifyFinal)(ckSessionHandle, ckpSignature, ckSignatureLength);
565 free(ckpSignature);