|
|
|
@ -307,8 +307,11 @@ namespace dvmconsole
|
|
|
|
private bool ARC4Process(byte[] imbe, P25DUID duid)
|
|
|
|
private bool ARC4Process(byte[] imbe, P25DUID duid)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
int offset = 256;
|
|
|
|
int offset = 256;
|
|
|
|
if (duid != P25DUID.LDU2)
|
|
|
|
|
|
|
|
offset += 101;
|
|
|
|
if (duid == P25DUID.LDU1)
|
|
|
|
|
|
|
|
offset = 0;
|
|
|
|
|
|
|
|
else if (duid == P25DUID.LDU2)
|
|
|
|
|
|
|
|
offset = 101;
|
|
|
|
|
|
|
|
|
|
|
|
offset += (ksPosition * IMBE_BUF_LEN) + 267 + (ksPosition < 8 ? 0 : 2);
|
|
|
|
offset += (ksPosition * IMBE_BUF_LEN) + 267 + (ksPosition < 8 ? 0 : 2);
|
|
|
|
ksPosition = (ksPosition + 1) % 9;
|
|
|
|
ksPosition = (ksPosition + 1) % 9;
|
|
|
|
|