static int getModulusAndExponent(const char*token, long *exponentLength, char *exponent, long *modulusLength, long *modulusFieldLength, char *modulus)
static int getModulusAndExponent(const unsigned char*token, long *exponentLength, unsigned char *exponent, long *modulusLength, long *modulusFieldLength, unsigned char *modulus)
static int getModulusAndExponent(const char*token, long *exponentLength,		char *exponent, long *modulusLength, long *modulusFieldLength,		char *modulus)	{	unsigned long len;	if (*token++ != (char)0x1E) /* internal PKA token? */		return 0;	if (*token++) /* token version must be zero */		return 0;	len = *token++;	len = len << 8;	len |= (unsigned char)*token++;	token += 4; /* skip reserved bytes */	if (*token++ == (char)0x04)		{		if (*token++) /* token version must be zero */			return 0;		len = *token++;		len = len << 8;		len |= (unsigned char)*token++;		token+=2; /* skip reserved section */		len = *token++;		len = len << 8;		len |= (unsigned char)*token++;		*exponentLength = len;		len = *token++;		len = len << 8;		len |= (unsigned char)*token++;		*modulusLength = len;		len = *token++;		len = len << 8;		len |= (unsigned char)*token++;		*modulusFieldLength = len;		memcpy(exponent, token, *exponentLength);		token+= *exponentLength;		memcpy(modulus, token, *modulusFieldLength);		return 1;		}	return 0;	}