Diff

Differences From Artifact [c0e18b1097]:

To Artifact [64399c1a47]:


291
292
293
294
295
296
297

298
299
300
301





302
303
304
305
306
307
308
291
292
293
294
295
296
297
298




299
300
301
302
303
304
305
306
307
308
309
310







+
-
-
-
-
+
+
+
+
+







	}
	break;
    case TYPE_HMAC:
	res = HMAC_Final(statePtr->hctx, md_buf, &ulen);
	md_len = (int) ulen;
	break;
    case TYPE_CMAC:
	{
	size_t size;
	res = CMAC_Final(statePtr->cctx, md_buf, &size);
	md_len = (int) size;
	break;
	    size_t size;
	    res = CMAC_Final(statePtr->cctx, md_buf, &size);
	    md_len = (int) size;
	    break;
	}
    }

    if (!res) {
	if (resultObj == NULL) {
	    Tcl_AppendResult(interp, "Finalize failed: ", GET_ERR_REASON(), (char *) NULL);
	}
	return TCL_ERROR;