We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b057976 commit 95c4049Copy full SHA for 95c4049
1 file changed
python/http_ece/__init__.py
@@ -67,8 +67,12 @@ def lengthPrefix(key):
67
keyinfo = buildInfo(b"aesgcm", context)
68
nonceinfo = buildInfo(b"nonce", context)
69
elif padSize == 1:
70
- keyinfo = b"Content-Encoding: aesgcm128"
71
- nonceinfo = b"Content-Encoding: nonce"
+ if authSecret is not None:
+ keyinfo = buildInfo(b"aesgcm128", context)
72
+ nonceinfo = buildInfo(b"nonce", context)
73
+ else:
74
+ keyinfo = b"Content-Encoding: aesgcm128"
75
+ nonceinfo = b"Content-Encoding: nonce"
76
else:
77
raise Exception(u"unable to set context for padSize=" + str(padSize))
78
0 commit comments