Skip to content
Permalink
Browse files

Merge pull request #128 from Gampyg28/d_KeyAlgorithm-001

Integrated Array Indexed Algorithm Key Generator.
  • Loading branch information
LegacyNsfw committed Jan 13, 2020
2 parents 1d914d1 + 1fc135e commit e9ac8035062527838afe45561f69bfbe27642f65
Showing with 400 additions and 49 deletions.
  1. +2 −2 Apps/PcmLibrary/Messages/Protocol.Security.cs
  2. +386 −37 Apps/PcmLibrary/Misc/KeyAlgorithm.cs
  3. +12 −10 Apps/PcmLibrary/Misc/PcmInfo.cs
@@ -48,8 +48,8 @@ public Response<UInt16> ParseSeed(byte[] response)
return Response.Create(ResponseStatus.Error, result);
}

// Converting to Unsigned Int 16 bits reverses the endianess
result = BitConverter.ToUInt16(response, 5);
// Let's not reverse endianess
result = (UInt16)((response[5] << 8) | response[6]);

return Response.Create(ResponseStatus.Success, result);
}

0 comments on commit e9ac803

Please sign in to comment.
You can’t perform that action at this time.