x509.py 文件源码

python
阅读 22 收藏 0 点赞 0 评论 0

项目:slack_scholar 作者: xLeitix 项目源码 文件源码
def signature_hash_algorithm(self):
        alg = self._backend._ffi.new("X509_ALGOR **")
        self._backend._lib.X509_get0_signature(
            self._backend._ffi.NULL, alg, self._x509
        )
        self._backend.openssl_assert(alg[0] != self._backend._ffi.NULL)
        oid = _obj2txt(self._backend, alg[0].algorithm)
        try:
            return x509._SIG_OIDS_TO_HASH[oid]
        except KeyError:
            raise UnsupportedAlgorithm(
                "Signature algorithm OID:{0} not recognized".format(oid)
            )
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号