Lines Matching refs:ctx
1015 ENCR_DECR_CONTEXT *ctx = (ENCR_DECR_CONTEXT *)cptr;
1018 ctx->context_len + ctx->mech.ulParameterLen;
1028 ptr1 = (CK_BYTE *)ctx;
1030 ptr3 = ptr2 + ctx->context_len;
1032 if (ctx->context_len) {
1033 context = (CK_BYTE *)malloc(ctx->context_len);
1037 (void) memcpy(context, ptr2, ctx->context_len);
1040 if (ctx->mech.ulParameterLen) {
1042 ctx->mech.ulParameterLen);
1049 ctx->mech.ulParameterLen);
1058 SIGN_VERIFY_CONTEXT *ctx = (SIGN_VERIFY_CONTEXT *)cptr;
1061 ctx->context_len + ctx->mech.ulParameterLen;
1071 ptr1 = (CK_BYTE *)ctx;
1073 ptr3 = ptr2 + ctx->context_len;
1075 if (ctx->context_len) {
1076 context = (CK_BYTE *)malloc(ctx->context_len);
1080 (void) memcpy(context, ptr2, ctx->context_len);
1083 if (ctx->mech.ulParameterLen) {
1085 ctx->mech.ulParameterLen);
1092 ctx->mech.ulParameterLen);
1100 DIGEST_CONTEXT *ctx = (DIGEST_CONTEXT *)cptr;
1103 ctx->context_len + ctx->mech.ulParameterLen;
1113 ptr1 = (CK_BYTE *)ctx;
1115 ptr3 = ptr2 + ctx->context_len;
1117 if (ctx->context_len) {
1118 context = (CK_BYTE *)malloc(ctx->context_len);
1122 (void) memcpy(context, ptr2, ctx->context_len);
1125 if (ctx->mech.ulParameterLen) {
1127 ctx->mech.ulParameterLen);
1134 ctx->mech.ulParameterLen);