mirror of
https://github.com/DSheirer/sdrtrunk.git
synced 2026-11-12 16:47:31 -05:00
Initial commit of redesigned internal processing and audio management.
Note: Several of the decoders are currently non-functioning in this commit. If you want the latest functioning codebase, please checkout the commit prior to this one. All decoders will eventually be updated with this new architecture. Currently broken: - Logging and recording - Aux decoders (Fleetsync/MDC/LoJack/Tait) - LTR/Passport decoders Changes in this commit: - Module architecture for decoders and components with central provisioning by the DecoderFactory - Transition from Complex sample stream processing to float buffer processing for improved memory management - Redesigned filter structures - to support buffers and streams - Resolved several memory leak issues - Universal sharing of the thread pool manager - Added centralized audio management with call/user prioritization and new gui with mute/volume controls - Embedded audio metadata for eventual streaming support - Redesigned ProcessingChain to support independent re-use - Added new TrafficChannelManager to handle traffic channel allocations - Traffic Channel pool size and Call timeout available in P25 and MPT1327 configs - Redesigned channel and decoder gui components
This commit is contained in:
65
src/module/decode/p25/reference/Encryption.java
Normal file
65
src/module/decode/p25/reference/Encryption.java
Normal file
@@ -0,0 +1,65 @@
|
||||
package module.decode.p25.reference;
|
||||
|
||||
public enum Encryption
|
||||
{
|
||||
ACCORDION_1_3( 0x00 ),
|
||||
BATON_AUTO_EVEN( 0x01 ),
|
||||
FIREFLY_TYPE1( 0x02 ),
|
||||
MAYFLY_TYPE1( 0x03 ),
|
||||
SAVILLE( 0x04 ),
|
||||
BATON_AUTO_ODD( 0x41 ),
|
||||
UNENCRYPTED( 0x80 ),
|
||||
DES_OFB( 0x81 ),
|
||||
TRIPLE_DES_2_KEY( 0x82 ),
|
||||
TRIPLE_DES_3_KEY( 0x83 ),
|
||||
AES_256( 0x84 ),
|
||||
AES_CBC( 0x85 ),
|
||||
DES_XL( 0x9F ), /* Motorola Proprietary */
|
||||
DVI_XL( 0xA0 ), /* Motorola Proprietary */
|
||||
DVP_XL( 0xA1 ), /* Motorola Proprietary */
|
||||
ADP( 0xAA ),
|
||||
UNKNOWN( -1 );
|
||||
|
||||
private int mValue;
|
||||
|
||||
private Encryption( int value )
|
||||
{
|
||||
mValue = value;
|
||||
}
|
||||
|
||||
public static Encryption fromValue( int value )
|
||||
{
|
||||
switch( value )
|
||||
{
|
||||
case 0x00:
|
||||
return ACCORDION_1_3;
|
||||
case 0x01:
|
||||
return BATON_AUTO_EVEN;
|
||||
case 0x02:
|
||||
return FIREFLY_TYPE1;
|
||||
case 0x03:
|
||||
return MAYFLY_TYPE1;
|
||||
case 0x04:
|
||||
return SAVILLE;
|
||||
case 0x41:
|
||||
return BATON_AUTO_ODD;
|
||||
case 0x80:
|
||||
return UNENCRYPTED;
|
||||
case 0x82:
|
||||
return TRIPLE_DES_2_KEY;
|
||||
case 0x83:
|
||||
return TRIPLE_DES_3_KEY;
|
||||
case 0x84:
|
||||
return AES_256;
|
||||
case 0x9F:
|
||||
return DES_OFB;
|
||||
case 0xA0:
|
||||
return DVI_XL;
|
||||
case 0xA1:
|
||||
return DVP_XL;
|
||||
default:
|
||||
return UNKNOWN;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user