You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The first 4 bytes of the sampled ciphertext are the block counter.
Unfortunately, x/crypto/chacha20 currently doesn't provide an API to manually set the counter, and I therefore have to maintain a fork for my quic-go.
I already brought this up in #24485 (comment), and @FiloSottile suggested adding a SetCounter method, but it looks like this issue was closed without exposing this method.
The text was updated successfully, but these errors were encountered:
QUIC uses ChaCha20 for its header protection: https://tools.ietf.org/html/draft-ietf-quic-tls-25#section-5.4.4. In order to calculate the header protection mask, a QUIC implementation needs to be able to set the counter based on the ciphertext:
Unfortunately, x/crypto/chacha20 currently doesn't provide an API to manually set the counter, and I therefore have to maintain a fork for my quic-go.
I already brought this up in #24485 (comment), and @FiloSottile suggested adding a
SetCounter
method, but it looks like this issue was closed without exposing this method.The text was updated successfully, but these errors were encountered: