| 1005 | } |
| 1006 | |
| 1007 | std::shared_ptr<I2NPMessage> ECIESX25519AEADRatchetSession::WrapSingleMessage (std::shared_ptr<const I2NPMessage> msg) |
| 1008 | { |
| 1009 | auto owner = GetOwner(); |
| 1010 | if (!owner) return nullptr; |
| 1011 | uint8_t * payload = owner->GetPayloadBuffer (); |
| 1012 | if (!payload) return nullptr; |
| 1013 | size_t len = CreatePayload (msg, m_State != eSessionStateEstablished, payload); |
| 1014 | if (!len) return nullptr; |
| 1015 | return WrapPayload (payload, len); |
| 1016 | } |
| 1017 | |
| 1018 | std::vector<std::shared_ptr<I2NPMessage> > ECIESX25519AEADRatchetSession::WrapMultipleMessages (const std::vector<std::shared_ptr<const I2NPMessage> >& msgs) |
| 1019 | { |
nothing calls this directly
no test coverage detected