rmsg.size = 1024;
rmsg.size = sizeof(tempbuf);
static int hwcrhk_rand_bytes(unsigned char *buf, int num)	{	char tempbuf[1024];	HWCryptoHook_ErrMsgBuf rmsg;	int to_return = 0; /* assume failure */	int ret;	rmsg.buf = tempbuf;	rmsg.size = 1024;	if(!hwcrhk_context)		{		HWCRHKerr(HWCRHK_F_HWCRHK_RAND_BYTES,HWCRHK_R_NOT_INITIALISED);		goto err;		}	ret = p_hwcrhk_RandomBytes(hwcrhk_context, buf, num, &rmsg);	if (ret < 0)		{		/* FIXME: When this error is returned, HWCryptoHook is		   telling us that falling back to software computation		   might be a good thing. */		if(ret == HWCRYPTOHOOK_ERROR_FALLBACK)			{			HWCRHKerr(HWCRHK_F_HWCRHK_RAND_BYTES,				HWCRHK_R_REQUEST_FALLBACK);			}		else			{			HWCRHKerr(HWCRHK_F_HWCRHK_RAND_BYTES,				HWCRHK_R_REQUEST_FAILED);			}		ERR_add_error_data(1,rmsg.buf);		goto err;		}	to_return = 1; err:	return to_return;	}