Lines Matching refs:N
42 static int ffc_validate_LN(size_t L, size_t N, int type, int verify) in ffc_validate_LN() argument
46 if (L == 2048 && (N == 224 || N == 256)) in ffc_validate_LN()
54 if (verify && L == 1024 && N == 160) in ffc_validate_LN()
56 if (L == 2048 && (N == 224 || N == 256)) in ffc_validate_LN()
58 if (L == 3072 && N == 256) in ffc_validate_LN()
67 static int ffc_validate_LN(size_t L, size_t N, int type, int verify) in ffc_validate_LN() argument
71 if (L == 1024 && N == 160) in ffc_validate_LN()
74 if (L == 2048 && (N == 224 || N == 256)) in ffc_validate_LN()
80 if (L >= 3072 && N >= 256) in ffc_validate_LN()
82 if (L >= 2048 && N >= 224) in ffc_validate_LN()
84 if (L >= 1024 && N >= 160) in ffc_validate_LN()
449 static const char *default_mdname(size_t N) in default_mdname() argument
451 if (N == 160) in default_mdname()
453 else if (N == 224) in default_mdname()
455 else if (N == 256) in default_mdname()
518 size_t L, size_t N, int *res, in ossl_ffc_params_FIPS186_4_gen_verify() argument
542 if (N == 0) in ossl_ffc_params_FIPS186_4_gen_verify()
543 N = (L >= 2048 ? SHA256_DIGEST_LENGTH : SHA_DIGEST_LENGTH) * 8; in ossl_ffc_params_FIPS186_4_gen_verify()
544 def_name = default_mdname(N); in ossl_ffc_params_FIPS186_4_gen_verify()
557 if (N == 0) in ossl_ffc_params_FIPS186_4_gen_verify()
558 N = mdsize * 8; in ossl_ffc_params_FIPS186_4_gen_verify()
559 qsize = N >> 3; in ossl_ffc_params_FIPS186_4_gen_verify()
566 if (L <= N || !ffc_validate_LN(L, N, type, verify)) { in ossl_ffc_params_FIPS186_4_gen_verify()
641 if ((seedlen * 8) < N) { in ossl_ffc_params_FIPS186_4_gen_verify()
811 size_t L, size_t N, int *res, in ossl_ffc_params_FIPS186_2_gen_verify() argument
838 if (N == 0) in ossl_ffc_params_FIPS186_2_gen_verify()
839 N = (L >= 2048 ? SHA256_DIGEST_LENGTH : SHA_DIGEST_LENGTH) * 8; in ossl_ffc_params_FIPS186_2_gen_verify()
840 def_name = default_mdname(N); in ossl_ffc_params_FIPS186_2_gen_verify()
852 if (N == 0) in ossl_ffc_params_FIPS186_2_gen_verify()
853 N = md_size * 8; in ossl_ffc_params_FIPS186_2_gen_verify()
854 qsize = N >> 3; in ossl_ffc_params_FIPS186_2_gen_verify()
1044 int type, size_t L, size_t N, in ossl_ffc_params_FIPS186_4_generate() argument
1049 type, L, N, res, cb); in ossl_ffc_params_FIPS186_4_generate()
1054 int type, size_t L, size_t N, in ossl_ffc_params_FIPS186_2_generate() argument
1059 type, L, N, res, cb)) in ossl_ffc_params_FIPS186_2_generate()