add BSD license header to crypto.py