firmware/2lib/2rsa.c
/**
 * Return the exponent used by an RSA algorithm
 *
 * @param sig_alg	Signature algorithm
 * @return The exponent to use (3 or 65537(F4)), or 0 if error.
 */
Return the exponent used by an RSA algorithm
@param sig_alg       Signature algorithm
@return The exponent to use (3 or 65537(F4)), or 0 if error.
Return the exponent used by an RSA algorithm @param sig_alg Signature algorithm @return The exponent to use ( 3 or 65537 ( F4 )) or 0 if error .
static uint32_t vb2_rsa_exponent(enum vb2_signature_algorithm sig_alg)
{
	switch (sig_alg) {
	case VB2_SIG_RSA1024:
	case VB2_SIG_RSA2048:
	case VB2_SIG_RSA4096:
	case VB2_SIG_RSA8192:
		return 65537;
	case VB2_SIG_RSA2048_EXP3:
	case VB2_SIG_RSA3072_EXP3:
		return 3;
	default:
		return 0;
	}
}
static uint32_t vb2_rsa_exponent ( enum vb2_signature_algorithm sig_alg ) { switch ( sig_alg ) { case VB2_SIG_RSA1024 : case VB2_SIG_RSA2048 : case VB2_SIG_RSA4096 : case VB2_SIG_RSA8192 : return 65537 ; case VB2_SIG_RSA2048_EXP3 : case VB2_SIG_RSA3072_EXP3 : return 3 ; default : return 0 ; } }
Return the exponent used by an RSA algorithm
 @param sig_alg       Signature algorithm
 @return The exponent to use (3 or 65537(F4)), or 0 if error.
Return the exponent used by an RSA algorithm @param sig_alg Signature algorithm @return The exponent to use ( 3 or 65537 ( F4 )) or 0 if error .