A fast cryptography library by eos175
PyCrypto leverages pycryptodome for AES and fastecdsa for ECC. These packages are written in C
and benefit from hardware acceleration.
sudo dnf install python-devel gmp-devel
python3 -m venv .venv
. .venv/bin/activate
pip install git+https://github.com/eos175/pycrypto.git
def cfb128_encrypt(data: bytes, key: bytes, iv: bytes) -> bytes: ...
def cfb128_decrypt(data: bytes, key: bytes, iv: bytes) -> bytes: ...
def gcm_encrypt(data: bytes, key: bytes, nonce: bytes) -> bytes: ...
def gcm_decrypt(data: bytes, key: bytes, nonce: bytes, tag: bytes) -> bytes | None: ...
def ccm_encrypt(data: bytes, key: bytes, nonce: bytes) -> bytes: ...
def ccm_decrypt(data: bytes, key: bytes, nonce: bytes, tag: bytes) -> bytes | None: ...
- Add the rest of the API to the README
- Create setup