我们从Python开源项目中,提取了以下20个代码示例,用于说明如何使用common.make_stream_tests()。
def get_tests(config={}): from Crypto.Cipher import ARC4 from common import make_stream_tests return make_stream_tests(ARC4, "ARC4", test_data)
def get_tests(config={}): global XOR from Crypto.Cipher import XOR from common import make_stream_tests return make_stream_tests(XOR, "XOR", test_data) + [TruncationSelfTest()]