diff options
author | Theo Buehler <tb@cvs.openbsd.org> | 2021-11-29 19:34:52 +0000 |
---|---|---|
committer | Theo Buehler <tb@cvs.openbsd.org> | 2021-11-29 19:34:52 +0000 |
commit | 01de5d4711d03d4895898ec53fae95b333db19eb (patch) | |
tree | 19de56b301ef006b11e0a3699021032fcd4f5a10 | |
parent | 87b46f71594d3c10bbec87c8c459dd1ede6a98f8 (diff) |
Provide a number of flags for DH_check and DH_check_pubkey
that will be used in subsequent commits.
ok inoguchi jsing
-rw-r--r-- | lib/libcrypto/dh/dh.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/libcrypto/dh/dh.h b/lib/libcrypto/dh/dh.h index 082b50254d6..f569f3f7c34 100644 --- a/lib/libcrypto/dh/dh.h +++ b/lib/libcrypto/dh/dh.h @@ -1,4 +1,4 @@ -/* $OpenBSD: dh.h,v 1.25 2018/02/22 16:41:04 jsing Exp $ */ +/* $OpenBSD: dh.h,v 1.26 2021/11/29 19:34:51 tb Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -156,10 +156,14 @@ struct dh_st #define DH_CHECK_P_NOT_SAFE_PRIME 0x02 #define DH_UNABLE_TO_CHECK_GENERATOR 0x04 #define DH_NOT_SUITABLE_GENERATOR 0x08 +#define DH_CHECK_Q_NOT_PRIME 0x10 +#define DH_CHECK_INVALID_Q_VALUE 0x20 +#define DH_CHECK_INVALID_J_VALUE 0x40 /* DH_check_pub_key error codes */ #define DH_CHECK_PUBKEY_TOO_SMALL 0x01 #define DH_CHECK_PUBKEY_TOO_LARGE 0x02 +#define DH_CHECK_PUBKEY_INVALID 0x04 /* primes p where (p-1)/2 is prime too are called "safe"; we define this for backward compatibility: */ |