Exemplo n.º 1
0
 public SecurityAlgorithmConfig Decode(BitArrayInputStream input)
 {
     SecurityAlgorithmConfig config = new SecurityAlgorithmConfig();
     config.InitDefaults();
     int nBits = (input.readBit() == 0) ? 3 : 3;
     config.cipheringAlgorithm = (cipheringAlgorithm_Enum)input.readBits(nBits);
     nBits = (input.readBit() == 0) ? 3 : 3;
     config.integrityProtAlgorithm = (integrityProtAlgorithm_Enum)input.readBits(nBits);
     return config;
 }
Exemplo n.º 2
0
            public SecurityAlgorithmConfig Decode(BitArrayInputStream input)
            {
                SecurityAlgorithmConfig config = new SecurityAlgorithmConfig();

                config.InitDefaults();
                int nBits = (input.ReadBit() == 0) ? 3 : 3;

                config.cipheringAlgorithm = (cipheringAlgorithm_Enum)input.ReadBits(nBits);
                nBits = (input.ReadBit() == 0) ? 3 : 3;
                config.integrityProtAlgorithm = (integrityProtAlgorithm_Enum)input.ReadBits(nBits);
                return(config);
            }