src/api/include/protect/misc.h
static unsigned int KeyLength(unsigned int n)
	{
		assert(KEYLENGTH_MULTIPLE > 0 && MIN_KEYLENGTH % KEYLENGTH_MULTIPLE == 0 && MAX_KEYLENGTH % KEYLENGTH_MULTIPLE == 0);
		if (n < MIN_KEYLENGTH)
			return MIN_KEYLENGTH;
		else if (n > MAX_KEYLENGTH)
			return MAX_KEYLENGTH;
		else
			return RoundUpToMultipleOf(n, KEYLENGTH_MULTIPLE);
	}
/// returns the smallest valid key length in bytes that is >= min(n, MAX_KEYLENGTH)
returns the smallest valid key length in bytes that is >= min(n, MAX_KEYLENGTH)
returns the smallest valid key length in bytes that is > = min ( n MAX_KEYLENGTH )
static unsigned int KeyLength(unsigned int n)
	{
		assert(KEYLENGTH_MULTIPLE > 0 && MIN_KEYLENGTH % KEYLENGTH_MULTIPLE == 0 && MAX_KEYLENGTH % KEYLENGTH_MULTIPLE == 0);
		if (n < MIN_KEYLENGTH)
			return MIN_KEYLENGTH;
		else if (n > MAX_KEYLENGTH)
			return MAX_KEYLENGTH;
		else
			return RoundUpToMultipleOf(n, KEYLENGTH_MULTIPLE);
	}
static unsigned int KeyLength ( unsigned int n ) { assert ( KEYLENGTH_MULTIPLE > 0 && MIN_KEYLENGTH % KEYLENGTH_MULTIPLE == 0 && MAX_KEYLENGTH % KEYLENGTH_MULTIPLE == 0 ) ; if ( n < MIN_KEYLENGTH ) return MIN_KEYLENGTH ; else if ( n > MAX_KEYLENGTH ) return MAX_KEYLENGTH ; else return RoundUpToMultipleOf ( n , KEYLENGTH_MULTIPLE ) ; }
returns the smallest valid key length in bytes that is >= min(n, MAX_KEYLENGTH)
returns the smallest valid key length in bytes that is > = min ( n MAX_KEYLENGTH )