| 249 | } |
| 250 | |
| 251 | void LeaseSet::Encrypt (const uint8_t * data, uint8_t * encrypted) const |
| 252 | { |
| 253 | if (!m_EncryptionKey) return; |
| 254 | auto encryptor = m_Identity->CreateEncryptor (m_EncryptionKey); |
| 255 | if (encryptor) |
| 256 | encryptor->Encrypt (data, encrypted); |
| 257 | } |
| 258 | |
| 259 | void LeaseSet::SetBuffer (const uint8_t * buf, size_t len) |
| 260 | { |
nothing calls this directly
no test coverage detected