Skip to content

Commit a6d5319

Browse files
committed
Rename to Crypto.Protocol.DH
1 parent 08bc46d commit a6d5319

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

Doc/src/protocol/dh.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ First, a minimal example where only static keys are used::
3434

3535
from Crypto.PublicKey import ECC
3636
from Crypto.Hash import SHAKE128
37-
from Crypto.Protocol.dh import key_agreement
37+
from Crypto.Protocol.DH import key_agreement
3838

3939
# This KDF has been agreed in advance
4040
def kdf(x):
@@ -56,7 +56,7 @@ NIST SP 800-56A recommends to bind the key agreement to some information
5656
concerning the context of the operation, for instance a description of what the keys are used for::
5757

5858
from Crypto.Hash import TupleHash128
59-
from Crypto.Protocol.dh import key_agreement
59+
from Crypto.Protocol.DH import key_agreement
6060
from functools import partial
6161

6262
# Random value (e.g., a nonce)
@@ -94,7 +94,7 @@ contributes to the key agreement with one ephemeral key
9494

9595
from Crypto.PublicKey import ECC
9696
from Crypto.Hash import SHAKE128
97-
from Crypto.Protocol.dh import key_agreement
97+
from Crypto.Protocol.DH import key_agreement
9898

9999
# This KDF has been agreed in advance
100100
def kdf(x):
File renamed without changes.
File renamed without changes.

lib/Crypto/Protocol/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,4 @@
2828
# POSSIBILITY OF SUCH DAMAGE.
2929
# ===================================================================
3030

31-
__all__ = ['KDF', 'SecretSharing']
31+
__all__ = ['KDF', 'SecretSharing', 'DH']

lib/Crypto/SelfTest/Protocol/test_ecdh.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
from Crypto.SelfTest.st_common import list_test_cases
1010
from Crypto.SelfTest.loader import load_test_vectors, load_test_vectors_wycheproof
1111

12-
from Crypto.Protocol.dh import key_agreement
12+
from Crypto.Protocol.DH import key_agreement
1313

1414

1515
class FIPS_ECDH_Tests_KAT(unittest.TestCase):

0 commit comments

Comments
 (0)