Skip to content

Commit 669f0de

Browse files
committed
Merge pull request #20 from marco-c/remove_intermediate_standard
Remove no longer needed intermediate standard
2 parents 982deab + f56cd1f commit 669f0de

2 files changed

Lines changed: 4 additions & 13 deletions

File tree

nodejs/ece.js

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -142,13 +142,8 @@ function deriveKeyAndNonce(params, mode) {
142142
var keyInfo;
143143
var nonceInfo;
144144
if (padSize === 1) {
145-
if (params.authSecret) {
146-
keyInfo = info('aesgcm128', s.context);
147-
nonceInfo = info('nonce', s.context);
148-
} else {
149-
keyInfo = 'Content-Encoding: aesgcm128';
150-
nonceInfo = 'Content-Encoding: nonce';
151-
}
145+
keyInfo = 'Content-Encoding: aesgcm128';
146+
nonceInfo = 'Content-Encoding: nonce';
152147
} else if (padSize === 2) {
153148
keyInfo = info('aesgcm', s.context);
154149
nonceInfo = info('nonce', s.context);

python/http_ece/__init__.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -67,12 +67,8 @@ def lengthPrefix(key):
6767
keyinfo = buildInfo(b"aesgcm", context)
6868
nonceinfo = buildInfo(b"nonce", context)
6969
elif padSize == 1:
70-
if authSecret is not None:
71-
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"
70+
keyinfo = b"Content-Encoding: aesgcm128"
71+
nonceinfo = b"Content-Encoding: nonce"
7672
else:
7773
raise Exception(u"unable to set context for padSize=" + str(padSize))
7874

0 commit comments

Comments
 (0)