Skip to content

eos175/pycrypto

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PyCrypto

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.

Installation

sudo dnf install python-devel gmp-devel
python3 -m venv .venv
. .venv/bin/activate
pip install git+https://github.com/eos175/pycrypto.git

API

AES

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: ...

TODO

  • Add the rest of the API to the README
  • Create setup

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages