MCPcopy Create free account
hub / github.com/cuberite/cuberite / Init

Method Init

src/Crypto.cpp:330–337  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

328
329
330void cAESCFBDecryptor::Init(const Byte a_Key[16], const Byte a_IV[16])
331{
332 ASSERT(!IsValid()); // Cannot Init twice
333
334 memcpy(m_IV, a_IV, 16);
335 aes_setkey_enc(&m_Aes, a_Key, 128);
336 m_IsValid = true;
337}
338
339
340

Callers 4

StartMethod · 0.45
GetLookVectorMethod · 0.45
StartEncryptionMethod · 0.45
StartEncryptionMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected