Skip to content

painor/pyaesni

 
 

Repository files navigation

pyaesni

a cpython bindings to libaesni which is a binding to intel aes ni.

installation

If you want to install it yourself then you’re going to need a yasm compiler. you can get it from here https://yasm.tortall.net/Download.html

You can also download it from pip if a wheel is available for your device. :

pip install pyaesni

Usage

Usage is pretty simple.

import pyaesni
encrypted = pyaesni.ige256_encrypt(data, key, iv)

everything is a buffer there. you can check the examples folder for more

available methods

ige256_encrypt
ige256_decrypt
ctr256_encrypt
ctr256_decrypt
cbc256_encrypt
cbc256_decrypt

credits

wirtos for doing most of the stuff and compilation

painor me for motivating him (and some setup.py stuff)

dan for the cpython boilerplate

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 50.0%
  • C 43.6%
  • CMake 6.4%