Skip to content

Commit

Permalink
Rename to Crypto.Protocol.DH
Browse files Browse the repository at this point in the history
  • Loading branch information
Legrandin committed Sep 15, 2023
1 parent d1598cd commit f7696c3
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions Doc/src/protocol/dh.rst
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ First, a minimal example where only static keys are used::

from Crypto.PublicKey import ECC
from Crypto.Hash import SHAKE128
from Crypto.Protocol.dh import key_agreement
from Crypto.Protocol.DH import key_agreement

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

from Crypto.Hash import TupleHash128
from Crypto.Protocol.dh import key_agreement
from Crypto.Protocol.DH import key_agreement
from functools import partial

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

from Crypto.PublicKey import ECC
from Crypto.Hash import SHAKE128
from Crypto.Protocol.dh import key_agreement
from Crypto.Protocol.DH import key_agreement

# This KDF has been agreed in advance
def kdf(x):
Expand Down
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion lib/Crypto/Protocol/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,4 @@
# POSSIBILITY OF SUCH DAMAGE.
# ===================================================================

__all__ = ['KDF', 'SecretSharing']
__all__ = ['KDF', 'SecretSharing', 'DH']
2 changes: 1 addition & 1 deletion lib/Crypto/SelfTest/Protocol/test_ecdh.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
from Crypto.SelfTest.st_common import list_test_cases
from Crypto.SelfTest.loader import load_test_vectors, load_test_vectors_wycheproof

from Crypto.Protocol.dh import key_agreement
from Crypto.Protocol.DH import key_agreement


class FIPS_ECDH_Tests_KAT(unittest.TestCase):
Expand Down

0 comments on commit f7696c3

Please sign in to comment.