Lines Matching +full:0 +full:xdc

27 	memset(ctx, 0, sizeof(*ctx));  in dh_clear_ctx()
50 return (p_len < 2048) ? -EINVAL : 0; in dh_check_params_length()
52 return (p_len < 1536) ? -EINVAL : 0; in dh_check_params_length()
68 return 0; in dh_set_params()
80 if (crypto_dh_decode_key(buf, len, &params) < 0) in dh_set_secret()
83 if (dh_set_params(ctx, &params) < 0) in dh_set_secret()
90 return 0; in dh_set_secret()
113 return 0; in dh_is_pubkey_valid()
126 if (mpi_cmp_ui(y, 1) < 1 || mpi_cmp(y, ctx->p) >= 0) in dh_is_pubkey_valid()
134 val = mpi_alloc(0); in dh_is_pubkey_valid()
161 if (ret != 0) in dh_is_pubkey_valid()
164 return 0; in dh_is_pubkey_valid()
171 MPI base, val = mpi_alloc(0); in dh_compute_value()
172 int ret = 0; in dh_compute_value()
212 pone = mpi_alloc(0); in dh_compute_value()
241 if (sign < 0) in dh_compute_value()
325 return 0; in dh_safe_prime_init_tfm()
339 for (i = n; val && i > 0; --i) { in __add_u64_to_be()
343 val = tmp >= val ? 0 : 1; in __add_u64_to_be()
412 * may be written as key[] = h * 2^N + l, with h = key[0] in dh_safe_prime_gen_privkey()
429 h = be64_to_cpu(key[0]); in dh_safe_prime_gen_privkey()
577 dh_name, 0, mask); in __dh_safe_prime_create()
609 return 0; in __dh_safe_prime_create()
624 "\xaf\xdc\x56\x20\x27\x3d\x3c\xf1\xd8\xb9\xc5\x83\xce\x2d\x36\x95"
646 "\xaf\xdc\x56\x20\x27\x3d\x3c\xf1\xd8\xb9\xc5\x83\xce\x2d\x36\x95"
660 "\x88\x6b\x42\x38\x61\x1f\xcf\xdc\xde\x35\x5b\x3b\x65\x19\x03\x5b"
676 "\xaf\xdc\x56\x20\x27\x3d\x3c\xf1\xd8\xb9\xc5\x83\xce\x2d\x36\x95"
690 "\x88\x6b\x42\x38\x61\x1f\xcf\xdc\xde\x35\x5b\x3b\x65\x19\x03\x5b"
714 "\xaf\xdc\x56\x20\x27\x3d\x3c\xf1\xd8\xb9\xc5\x83\xce\x2d\x36\x95"
728 "\x88\x6b\x42\x38\x61\x1f\xcf\xdc\xde\x35\x5b\x3b\x65\x19\x03\x5b"
758 "\x5b\x3b\x71\xf9\xdc\x6b\x80\xd6\x3f\xdd\x4a\x8e\x9a\xdb\x1e\x69"
768 "\xaf\xdc\x56\x20\x27\x3d\x3c\xf1\xd8\xb9\xc5\x83\xce\x2d\x36\x95"
782 "\x88\x6b\x42\x38\x61\x1f\xcf\xdc\xde\x35\x5b\x3b\x65\x19\x03\x5b"
812 "\x5b\x3b\x71\xf9\xdc\x6b\x80\xd6\x3f\xdd\x4a\x8e\x9a\xdb\x1e\x69"
913 return 0; in dh_init()