This is an automated email from the ASF dual-hosted git repository.

maskit pushed a commit to branch quic-latest
in repository https://gitbox.apache.org/repos/asf/trafficserver.git

commit 609e3e7a416e0f38689363afe05b42ba3e85f29f
Author: Masakazu Kitajo <[email protected]>
AuthorDate: Thu Jun 21 11:07:36 2018 +0900

    Length of keys for PNE is not a fixed length
---
 iocore/net/quic/QUICKeyGenerator.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/iocore/net/quic/QUICKeyGenerator.cc 
b/iocore/net/quic/QUICKeyGenerator.cc
index cf2b997..908dec0 100644
--- a/iocore/net/quic/QUICKeyGenerator.cc
+++ b/iocore/net/quic/QUICKeyGenerator.cc
@@ -121,7 +121,7 @@ QUICKeyGenerator::_generate(KeyMaterial &km, QUICHKDF 
&hkdf, const uint8_t *secr
   //   pn_key = QHKDF-Expand(S, "pn", pn_key_length)
   this->_generate_key(km.key, &km.key_len, hkdf, secret, secret_len, 
this->_get_key_len(cipher));
   this->_generate_iv(km.iv, &km.iv_len, hkdf, secret, secret_len, 
this->_get_iv_len(cipher));
-  this->_generate_pn(km.pn, &km.pn_len, hkdf, secret, secret_len, 12);
+  this->_generate_pn(km.pn, &km.pn_len, hkdf, secret, secret_len, 
this->_get_key_len(cipher));
 
   return 0;
 }

Reply via email to