def test_encryption_context_hash(encryption_context, result):
hasher = hashes.Hash(
hashes.SHA512(),
backend=default_backend()
)
assert _encryption_context_hash(hasher, encryption_context) == b64decode(result)
评论列表
文章目录