This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python3 | |
############################################################################# | |
# # | |
# This script was initially developed by Infoxchange for internal use # | |
# and has kindly been made available to the Open Source community for # | |
# redistribution and further development under the terms of the # | |
# GNU General Public License v2: http://www.gnu.org/licenses/gpl.html # | |
# Copyright 2015 Infoxchange # | |
# # |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from decimal import Decimal, getcontext | |
from time import clock | |
from math import pi | |
from multiprocessing import Pool, cpu_count | |
import sys | |
if len(sys.argv) < 2: | |
n = 10000 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from Crypto.Cipher import AES | |
from binascii import unhexlify | |
from math import ceil | |
const_Zero = "00000000000000000000000000000000" | |
const_Rb = 0x87 | |
const_Bsize = 16 |