MCPcopy Create free account
hub / github.com/Snapchat/Valdi / toSpan

Function toSpan

valdi/src/valdi/runtime/Utils/DataEncryptor.cpp:17–19  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

15DataEncryptor::DataEncryptor(const snap::utils::crypto::AesEncryptor::Key& key) : _key(key) {}
16
17static bssl::Span<uint8_t> toSpan(const Byte* data, size_t length) {
18 return bssl::Span<uint8_t>(const_cast<uint8_t*>(data), length);
19}
20
21bool DataEncryptor::encrypt(const Byte* data, size_t length, ByteBuffer& out) const {
22 snap::utils::crypto::AesEncryptor::Iv iv;

Callers 2

encryptMethod · 0.85
decryptMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected