Experiments with signing using PyCrypto and M2Crypto. Should be compatible with Boto's signing of CloudFront URLs.
Hardware:
- 1.7 GHz Intel Core i5
- 4 GB 1333 MHz DDR3
Python:
Python 2.7.2 (default, Dec 30 2011, 18:21:22)
[GCC 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.1.00)] on darwin
$ python sign.py
rsa1024.pem using m2crypto, crypto:
EQUAL
running 500 iterations of m2crypto
took 1.146s
running 500 iterations of crypto
took 2.682s
rsa2048.pem using m2crypto, crypto:
EQUAL
running 500 iterations of m2crypto
took 5.531s
running 500 iterations of crypto
took 10.623s
Signatures differ if non-ascii letters are included.