示例#1
0
        private static void InitLengthList()
        {
            if (_dsa_p_q_length_list != null)
            {
                return;
            }
            _dsa_p_q_length_list = new List <DSAPQLengthValues>();

            DSAPQLengthValues _p_q_length_values = null;


            _p_q_length_values = new DSAPQLengthValues(P_LENGTH_BITS_1, Q_LENGTH_BITS_1);
            _dsa_p_q_length_list.Add(_p_q_length_values);


            _p_q_length_values = new DSAPQLengthValues(P_LENGTH_BITS_2, Q_LENGTH_BITS_2);
            _dsa_p_q_length_list.Add(_p_q_length_values);


            _p_q_length_values = new DSAPQLengthValues(P_LENGTH_BITS_3, Q_LENGTH_BITS_3);
            _dsa_p_q_length_list.Add(_p_q_length_values);


            _p_q_length_values = new DSAPQLengthValues(P_LENGTH_BITS_4, Q_LENGTH_BITS_4);
            _dsa_p_q_length_list.Add(_p_q_length_values);
        }
示例#2
0
文件: DSASigner.cs 项目: zamud/OTRLib
        private static void InitLengthList()
        {
            if (_dsa_p_q_length_list != null)
                return;
            _dsa_p_q_length_list = new List<DSAPQLengthValues>();

            DSAPQLengthValues _p_q_length_values = null;

            _p_q_length_values = new DSAPQLengthValues(P_LENGTH_BITS_1, Q_LENGTH_BITS_1);
            _dsa_p_q_length_list.Add(_p_q_length_values);

            _p_q_length_values = new DSAPQLengthValues(P_LENGTH_BITS_2, Q_LENGTH_BITS_2);
            _dsa_p_q_length_list.Add(_p_q_length_values);

            _p_q_length_values = new DSAPQLengthValues(P_LENGTH_BITS_3, Q_LENGTH_BITS_3);
            _dsa_p_q_length_list.Add(_p_q_length_values);

            _p_q_length_values = new DSAPQLengthValues(P_LENGTH_BITS_4, Q_LENGTH_BITS_4);
            _dsa_p_q_length_list.Add(_p_q_length_values);
        }