mirror of
https://github.com/facebookincubator/mvfst.git
synced 2025-08-06 22:22:38 +03:00
Implement an explicit inplace encrypt in Aead.
Summary: This is useful when you want to ensure that the IOBuf you pass in is encrypted inplace, as opposed to potentially creating a new one. Reviewed By: yangchi Differential Revision: D21135253 fbshipit-source-id: 89b6e718fc8da1324685c390c721a564bb77d01d
This commit is contained in:
committed by
Facebook GitHub Bot
parent
c62d0877d1
commit
524bf84c44
@@ -186,7 +186,7 @@ class QuicTransportTest : public Test {
|
||||
// a cipher.
|
||||
auto aead = std::make_unique<NiceMock<MockAead>>();
|
||||
aead_ = aead.get();
|
||||
EXPECT_CALL(*aead_, _encrypt(_, _, _))
|
||||
EXPECT_CALL(*aead_, _inplaceEncrypt(_, _, _))
|
||||
.WillRepeatedly(
|
||||
Invoke([&](auto& buf, auto, auto) { return buf->clone(); }));
|
||||
EXPECT_CALL(*aead_, _decrypt(_, _, _))
|
||||
|
Reference in New Issue
Block a user