예제 #1
0
int eb_param_set_any_plain() {
	int r = STS_OK;
#if defined(EB_PLAIN)
#if FB_POLYN == 163
	eb_param_set(NIST_B163);
#elif FB_POLYN == 233
	eb_param_set(NIST_B233);
#elif FB_POLYN == 251
	eb_param_set(EBACS_B251);
#elif FB_POLYN == 257
	eb_param_set(HALVE_B257);
#elif FB_POLYN == 283
	eb_param_set(NIST_B283);
#elif FB_POLYN == 409
	eb_param_set(NIST_B409);
#elif FB_POLYN == 571
	eb_param_set(NIST_B571);
#else
	r = STS_ERR;
#endif
#else
	r = STS_ERR;
#endif
	return r;
}
예제 #2
0
int eb_param_set_any_super() {
    int r = STS_OK;
#if defined(EB_SUPER)
#if FB_POLYN == 271
#ifdef FB_TRINO
    eb_param_set(ETAT_T271);
#else
    eb_param_set(ETAT_P271);
#endif
#elif FB_POLYN == 353
    eb_param_set(ETAT_S353);
#elif FB_POLYN == 1223
    eb_param_set(ETAT_S1223);
#else
    r = STS_ERR;
#endif
#else
    r = STS_ERR;
#endif
    return r;
}
예제 #3
0
int eb_param_set_any_kbltz() {
	int r = STS_OK;
#if defined(EB_KBLTZ)
#if FB_POLYN == 163
	eb_param_set(NIST_K163);
#elif FB_POLYN == 233
	eb_param_set(NIST_K233);
#elif FB_POLYN == 239
	eb_param_set(SECG_K239);
#elif FB_POLYN == 283
	eb_param_set(NIST_K283);
#elif FB_POLYN == 409
	eb_param_set(NIST_K409);
#elif FB_POLYN == 571
	eb_param_set(NIST_K571);
#else
	r = STS_ERR;
#endif
#else
	r = STS_ERR;
#endif
	return r;
}