compute signatures function added to Crypto