crypto.py 文件源码

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

项目:endosome 作者: teor2345 项目源码 文件源码
def hash_create(algorithm=hashes.SHA1()):
    '''
    Create and return a new hash context for algorithm.
    Tor cells use SHA1 as a hash algorithm, except for v3 onion services,
    which use SHA3-256 for client to service cells.
    '''
    # cryptography doesn't have a SHA3 implementation (as of July 2017)
    return hashes.Hash(algorithm, backend=backends.default_backend())
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号