diff options
| author | tb <> | 2024-11-29 15:59:57 +0000 |
|---|---|---|
| committer | tb <> | 2024-11-29 15:59:57 +0000 |
| commit | 30b4f7f318b03413f22e3849cf9eeba83c165643 (patch) | |
| tree | 22254e07ec11cf2eb4ce6ceccc43ec3534201a43 /src/lib/libcrypto/dh/dh_local.h | |
| parent | 973783983ac7a615d6ec7580c81940464d69c809 (diff) | |
| download | openbsd-30b4f7f318b03413f22e3849cf9eeba83c165643.tar.gz openbsd-30b4f7f318b03413f22e3849cf9eeba83c165643.tar.bz2 openbsd-30b4f7f318b03413f22e3849cf9eeba83c165643.zip | |
Remove X9.42 DH rudiments
In the unlikely event that we should ever decide to implement this after
a quarter century of not needing it, we can readily put this back. Until
then this is dead weight.
prompted by a question by djm
ok jsing
Diffstat (limited to 'src/lib/libcrypto/dh/dh_local.h')
| -rw-r--r-- | src/lib/libcrypto/dh/dh_local.h | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/src/lib/libcrypto/dh/dh_local.h b/src/lib/libcrypto/dh/dh_local.h index efbc08b356..2c89f10127 100644 --- a/src/lib/libcrypto/dh/dh_local.h +++ b/src/lib/libcrypto/dh/dh_local.h | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: dh_local.h,v 1.6 2024/11/29 07:42:35 tb Exp $ */ | 1 | /* $OpenBSD: dh_local.h,v 1.7 2024/11/29 15:59:57 tb Exp $ */ |
| 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
| 3 | * All rights reserved. | 3 | * All rights reserved. |
| 4 | * | 4 | * |
| @@ -80,6 +80,7 @@ struct dh_method { | |||
| 80 | struct dh_st { | 80 | struct dh_st { |
| 81 | int version; | 81 | int version; |
| 82 | BIGNUM *p; | 82 | BIGNUM *p; |
| 83 | BIGNUM *q; | ||
| 83 | BIGNUM *g; | 84 | BIGNUM *g; |
| 84 | long length; /* optional */ | 85 | long length; /* optional */ |
| 85 | BIGNUM *pub_key; /* g^x */ | 86 | BIGNUM *pub_key; /* g^x */ |
| @@ -87,12 +88,6 @@ struct dh_st { | |||
| 87 | 88 | ||
| 88 | int flags; | 89 | int flags; |
| 89 | BN_MONT_CTX *method_mont_p; | 90 | BN_MONT_CTX *method_mont_p; |
| 90 | /* Place holders if we want to do X9.42 DH */ | ||
| 91 | BIGNUM *q; | ||
| 92 | BIGNUM *j; | ||
| 93 | unsigned char *seed; | ||
| 94 | int seedlen; | ||
| 95 | BIGNUM *counter; | ||
| 96 | 91 | ||
| 97 | int references; | 92 | int references; |
| 98 | CRYPTO_EX_DATA ex_data; | 93 | CRYPTO_EX_DATA ex_data; |
