We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 948bec2 + ac477b8 commit af50c93Copy full SHA for af50c93
src/cryptojwt/jwe/jwe_ec.py
@@ -34,7 +34,7 @@ def ecdh_derive_key(key, epk, apu, apv, alg, dk_len):
34
shared_key = key.exchange(ec.ECDH(), epk)
35
# Derive the key
36
# AlgorithmID || PartyUInfo || PartyVInfo || SuppPubInfo
37
- otherInfo = bytes(alg) + \
+ otherInfo = struct.pack("!I", len(alg)) + bytes(alg) + \
38
struct.pack("!I", len(apu)) + apu + \
39
struct.pack("!I", len(apv)) + apv + \
40
struct.pack("!I", dk_len)
0 commit comments