@@ -93,7 +93,7 @@ func GetParams(mode byte) (*Params, error) {
93
93
curve : ecdh .Generic (elliptic .P256 ()),
94
94
// bitSize: 256,
95
95
hashFn : sha256 .New ,
96
- nk : 64 ,
96
+ nk : 32 ,
97
97
nh : 32 ,
98
98
ciphersuite : 7 ,
99
99
mode : mode_base ,
@@ -129,7 +129,7 @@ func GetParams(mode byte) (*Params, error) {
129
129
curve : ecdh .Generic (elliptic .P256 ()),
130
130
// bitSize: 256,
131
131
hashFn : sha256 .New ,
132
- nk : 64 ,
132
+ nk : 32 ,
133
133
nh : 32 ,
134
134
ciphersuite : 7 ,
135
135
mode : mode_psk ,
@@ -165,7 +165,7 @@ func GetParams(mode byte) (*Params, error) {
165
165
curve : ecdh .Generic (elliptic .P256 ()),
166
166
// bitSize: 256,
167
167
hashFn : sha256 .New ,
168
- nk : 64 ,
168
+ nk : 32 ,
169
169
nh : 32 ,
170
170
ciphersuite : 7 ,
171
171
mode : mode_auth ,
@@ -201,7 +201,7 @@ func GetParams(mode byte) (*Params, error) {
201
201
curve : ecdh .X25519 (),
202
202
// bitSize: 256,
203
203
hashFn : sha256 .New ,
204
- nk : 64 ,
204
+ nk : 32 ,
205
205
nh : 32 ,
206
206
ciphersuite : 8 ,
207
207
mode : mode_base ,
@@ -237,7 +237,7 @@ func GetParams(mode byte) (*Params, error) {
237
237
curve : ecdh .X25519 (),
238
238
// bitSize: 256,
239
239
hashFn : sha256 .New ,
240
- nk : 64 ,
240
+ nk : 32 ,
241
241
nh : 32 ,
242
242
ciphersuite : 8 ,
243
243
mode : mode_psk ,
@@ -273,7 +273,7 @@ func GetParams(mode byte) (*Params, error) {
273
273
curve : ecdh .X25519 (),
274
274
// bitSize: 256,
275
275
hashFn : sha256 .New ,
276
- nk : 64 ,
276
+ nk : 32 ,
277
277
nh : 32 ,
278
278
ciphersuite : 8 ,
279
279
mode : mode_auth ,
@@ -306,7 +306,7 @@ func GetParams(mode byte) (*Params, error) {
306
306
return & Params {
307
307
curve : ecdh .Generic (elliptic .P521 ()),
308
308
hashFn : sha256 .New ,
309
- nk : 64 ,
309
+ nk : 32 ,
310
310
nh : 32 ,
311
311
ciphersuite : 9 ,
312
312
mode : mode_base ,
@@ -339,7 +339,7 @@ func GetParams(mode byte) (*Params, error) {
339
339
return & Params {
340
340
curve : ecdh .Generic (elliptic .P521 ()),
341
341
hashFn : sha256 .New ,
342
- nk : 64 ,
342
+ nk : 32 ,
343
343
nh : 32 ,
344
344
ciphersuite : 9 ,
345
345
mode : mode_psk ,
@@ -372,7 +372,7 @@ func GetParams(mode byte) (*Params, error) {
372
372
return & Params {
373
373
curve : ecdh .Generic (elliptic .P521 ()),
374
374
hashFn : sha256 .New ,
375
- nk : 64 ,
375
+ nk : 32 ,
376
376
nh : 32 ,
377
377
ciphersuite : 9 ,
378
378
mode : mode_auth ,
0 commit comments