Lines Matching defs:ckSignatureLength
112 CK_ULONG ckSignatureLength = 0;
126 rv = (*ckpFunctions->C_Sign)(ckSessionHandle, ckpData, ckDataLength, NULL_PTR, &ckSignatureLength);
132 ckpSignature = (CK_BYTE_PTR) malloc(ckSignatureLength * sizeof(CK_BYTE));
140 rv = (*ckpFunctions->C_Sign)(ckSessionHandle, ckpData, ckDataLength, ckpSignature, &ckSignatureLength);
152 rv = (*ckpFunctions->C_Sign)(ckSessionHandle, ckpData, ckDataLength, ckpSignature, &ckSignatureLength);
156 ckpSignature = (CK_BYTE_PTR) malloc(ckSignatureLength * sizeof(CK_BYTE));
162 rv = (*ckpFunctions->C_Sign)(ckSessionHandle, ckpData, ckDataLength, ckpSignature, &ckSignatureLength);
167 jSignature = ckByteArrayToJByteArray(env, ckpSignature, ckSignatureLength);
258 CK_ULONG ckSignatureLength = MAX_STACK_BUFFER_LEN;
265 if ((jExpectedLength > 0) && (jExpectedLength < ckSignatureLength)) {
266 ckSignatureLength = jExpectedLength;
269 rv = (*ckpFunctions->C_SignFinal)(ckSessionHandle, bufP, &ckSignatureLength);
271 bufP = (CK_BYTE_PTR) malloc(ckSignatureLength);
276 rv = (*ckpFunctions->C_SignFinal)(ckSessionHandle, bufP, &ckSignatureLength);
279 jSignature = ckByteArrayToJByteArray(env, bufP, ckSignatureLength);
346 CK_ULONG ckSignatureLength = MAX_STACK_BUFFER_LEN;
368 rv = (*ckpFunctions->C_SignRecover)(ckSessionHandle, inBufP, jInLen, outBufP, &ckSignatureLength);
370 if ((rv == CKR_BUFFER_TOO_SMALL) && (ckSignatureLength <= jIntToCKULong(jOutLen))) {
371 outBufP = (CK_BYTE_PTR) malloc(ckSignatureLength);
379 rv = (*ckpFunctions->C_SignRecover)(ckSessionHandle, inBufP, jInLen, outBufP, &ckSignatureLength);
382 (*env)->SetByteArrayRegion(env, jOut, jOutOfs, ckSignatureLength, (jbyte *)outBufP);
388 return ckSignatureLength;
448 CK_ULONG ckSignatureLength;
458 jByteArrayToCKByteArray(env, jSignature, &ckpSignature, &ckSignatureLength);
465 rv = (*ckpFunctions->C_Verify)(ckSessionHandle, ckpData, ckDataLength, ckpSignature, ckSignatureLength);
552 CK_ULONG ckSignatureLength;
559 jByteArrayToCKByteArray(env, jSignature, &ckpSignature, &ckSignatureLength);
563 rv = (*ckpFunctions->C_VerifyFinal)(ckSessionHandle, ckpSignature, ckSignatureLength);