MCPcopy Create free account
hub / github.com/apple/foundationdb / getIV

Method getIV

fdbrpc/AsyncFileEncrypted.actor.cpp:212–219  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

210}
211
212StreamCipher::IV AsyncFileEncrypted::getIV(uint32_t block) const {
213 auto iv = firstBlockIV;
214
215 auto pBlock = reinterpret_cast<unsigned char*>(&block);
216 std::copy(pBlock, pBlock + 4, &iv[12]);
217
218 return iv;
219}
220
221Future<Void> AsyncFileEncrypted::writeLastBlockToFile() {
222 // The source buffer for the write is owned by *this so this must be kept alive by reference count until the write

Callers 2

readBlockMethod · 0.80
writeMethod · 0.80

Calls 1

copyFunction · 0.85

Tested by

no test coverage detected