當前位置: 首頁>>代碼示例>>Python>>正文


Python openssl.test_aes_256_cfb方法代碼示例

本文整理匯總了Python中shadowsocks.crypto.openssl.test_aes_256_cfb方法的典型用法代碼示例。如果您正苦於以下問題:Python openssl.test_aes_256_cfb方法的具體用法?Python openssl.test_aes_256_cfb怎麽用?Python openssl.test_aes_256_cfb使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在shadowsocks.crypto.openssl的用法示例。


在下文中一共展示了openssl.test_aes_256_cfb方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。

示例1: main

# 需要導入模塊: from shadowsocks.crypto import openssl [as 別名]
# 或者: from shadowsocks.crypto.openssl import test_aes_256_cfb [as 別名]
def main():
	print("\n""rc4_md5")
	rc4_md5.test()
	print("\n""aes-256-cfb")
	openssl.test_aes_256_cfb()
	print("\n""aes-128-cfb")
	openssl.test_aes_128_cfb()
	print("\n""bf-cfb")
	run(openssl.test_bf_cfb)
	print("\n""camellia-128-cfb")
	run_n(openssl.run_method, "camellia-128-cfb")
	print("\n""cast5-cfb")
	run_n(openssl.run_method, "cast5-cfb")
	print("\n""idea-cfb")
	run_n(openssl.run_method, "idea-cfb")
	print("\n""seed-cfb")
	run_n(openssl.run_method, "seed-cfb")
	print("\n""salsa20")
	run(sodium.test_salsa20)
	print("\n""chacha20")
	run(sodium.test_chacha20) 
開發者ID:hao35954514,項目名稱:shadowsocksR-b,代碼行數:23,代碼來源:encrypt_test.py

示例2: main

# 需要導入模塊: from shadowsocks.crypto import openssl [as 別名]
# 或者: from shadowsocks.crypto.openssl import test_aes_256_cfb [as 別名]
def main():
    print("\n""rc4_md5")
    rc4_md5.test()
    print("\n""aes-256-cfb")
    openssl.test_aes_256_cfb()
    print("\n""aes-128-cfb")
    openssl.test_aes_128_cfb()
    print("\n""bf-cfb")
    run(openssl.test_bf_cfb)
    print("\n""camellia-128-cfb")
    run_n(openssl.run_method, "camellia-128-cfb")
    print("\n""cast5-cfb")
    run_n(openssl.run_method, "cast5-cfb")
    print("\n""idea-cfb")
    run_n(openssl.run_method, "idea-cfb")
    print("\n""seed-cfb")
    run_n(openssl.run_method, "seed-cfb")
    print("\n""salsa20")
    run(sodium.test_salsa20)
    print("\n""chacha20")
    run(sodium.test_chacha20) 
開發者ID:PaperDashboard,項目名稱:shadowsocks,代碼行數:23,代碼來源:encrypt_test.py


注:本文中的shadowsocks.crypto.openssl.test_aes_256_cfb方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。