Skip to content

Instantly share code, notes, and snippets.

View Varbin's full-sized avatar
🦊
Arctic Fox

Simon Biewald Varbin

🦊
Arctic Fox
View GitHub Profile
#!/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 #
# #
@Varbin
Varbin / mpi.py
Last active October 24, 2018 13:51
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
from Crypto.Cipher import AES
from binascii import unhexlify
from math import ceil
const_Zero = "00000000000000000000000000000000"
const_Rb = 0x87
const_Bsize = 16