示例#1
0
    def __len__(self):
        """
        Return the key length.

        @rtype:   int
        @return:  the DSA key length in bits
        """
        assert m2.dsa_type_check(self.dsa), "'dsa' type error"
        return m2.dsa_keylen(self.dsa)
示例#2
0
文件: DSA.py 项目: rodrigc/m2crypto
    def __len__(self):
        """
        Return the key length.

        @rtype:   int
        @return:  the DSA key length in bits
        """
        assert m2.dsa_type_check(self.dsa), "'dsa' type error"
        return m2.dsa_keylen(self.dsa)