[cosmetic] fix typos in comments

Change-Id: I549ef7002e6ebef3f13af620cad8d03c7f4d891a
This commit is contained in:
Harald Welte
2024-06-02 16:29:38 +02:00
committed by laforge
parent ddbfc043ac
commit 2755b54ded
2 changed files with 2 additions and 2 deletions

View File

@@ -444,7 +444,7 @@ class SmDppHttpServer:
ss.host_id = b'mahlzeit' ss.host_id = b'mahlzeit'
# Generate Session Keys using the CRT, opPK.eUICC.ECKA and otSK.DP.ECKA according to annex G # Generate Session Keys using the CRT, otPK.eUICC.ECKA and otSK.DP.ECKA according to annex G
euicc_public_key = ec.EllipticCurvePublicKey.from_encoded_point(ss.smdp_ot.curve, ss.euicc_otpk) euicc_public_key = ec.EllipticCurvePublicKey.from_encoded_point(ss.smdp_ot.curve, ss.euicc_otpk)
ss.shared_secret = ss.smdp_ot.exchange(ec.ECDH(), euicc_public_key) ss.shared_secret = ss.smdp_ot.exchange(ec.ECDH(), euicc_public_key)
print("shared_secret: %s" % b2h(ss.shared_secret)) print("shared_secret: %s" % b2h(ss.shared_secret))

View File

@@ -37,7 +37,7 @@ class RspSessionState:
def __init__(self, transactionId: str, serverChallenge: bytes, ci_cert_id: bytes): def __init__(self, transactionId: str, serverChallenge: bytes, ci_cert_id: bytes):
self.transactionId = transactionId self.transactionId = transactionId
self.serverChallenge = serverChallenge self.serverChallenge = serverChallenge
# used at a later point between API calsl # used at a later point between API calls
self.ci_cert_id = ci_cert_id self.ci_cert_id = ci_cert_id
self.euicc_cert: Optional[x509.Certificate] = None self.euicc_cert: Optional[x509.Certificate] = None
self.eum_cert: Optional[x509.Certificate] = None self.eum_cert: Optional[x509.Certificate] = None