MCPcopy Create free account
hub / github.com/Scobalula/Greyhound / CascFindEncryptionKey

Function CascFindEncryptionKey

src/External/CascLib/src/CascDecrypt.cpp:801–815  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

799}
800
801LPBYTE WINAPI CascFindEncryptionKey(HANDLE hStorage, ULONGLONG KeyName)
802{
803 TCascStorage * hs;
804
805 // Validate the storage handle
806 hs = TCascStorage::IsValid(hStorage);
807 if(hs == NULL)
808 {
809 SetCascError(ERROR_INVALID_HANDLE);
810 return NULL;
811 }
812
813 // Return the result from the map's search function
814 return hs->KeyMap.FindKey(KeyName);
815}
816
817bool WINAPI CascGetNotFoundEncryptionKey(HANDLE hStorage, ULONGLONG * KeyName)
818{

Callers

nothing calls this directly

Calls 2

SetCascErrorFunction · 0.85
FindKeyMethod · 0.80

Tested by

no test coverage detected