| Index: net/quic/quic_framer.h
|
| diff --git a/net/quic/quic_framer.h b/net/quic/quic_framer.h
|
| index 5a96fb184c1b8dfacb6fc8581530d14f520e5272..a0a0db1afeb0a0d2880c2deb14ea89793b3118b0 100644
|
| --- a/net/quic/quic_framer.h
|
| +++ b/net/quic/quic_framer.h
|
| @@ -307,6 +307,17 @@ class NET_EXPORT_PRIVATE QuicFramer {
|
| // takes ownership of |encrypter|.
|
| void SetEncrypter(EncryptionLevel level, QuicEncrypter* encrypter);
|
|
|
| + // Encrypts a payload in |buffer|. |ad_len| is the length of the associated
|
| + // data. |total_len| is the length of the associated data plus plaintext.
|
| + // |buffer_len| is the full length of the allocated buffer.
|
| + size_t EncryptInPlace(EncryptionLevel level,
|
| + QuicPathId path_id,
|
| + QuicPacketNumber packet_number,
|
| + size_t ad_len,
|
| + size_t total_len,
|
| + size_t buffer_len,
|
| + char* buffer);
|
| +
|
| // Returns the length of the data encrypted into |buffer| if |buffer_len| is
|
| // long enough, and otherwise 0.
|
| size_t EncryptPayload(EncryptionLevel level,
|
|
|