Fast AES-256-IGE encryption with hardware acceleration (AES-NI/ARM CE)
Project description
AesIGE
Fast AES-256-IGE encryption with hardware acceleration.
- x86/x64: AES-NI instructions (Intel/AMD)
- ARM64: ARM Crypto Extensions (Apple M1/M2, AWS Graviton)
Drop-in replacement for tgcrypto - 2-3x faster.
Installation
pip install aesige
Usage
import aesige
key = b"0" * 32 # 256-bit key
iv = b"0" * 32 # 256-bit IV
data = b"x" * 32 # Must be multiple of 16
encrypted = aesige.ige256_encrypt(data, key, iv)
decrypted = aesige.ige256_decrypt(encrypted, key, iv)
Benchmarks (x86_64)
| Library | Decrypt (1KB) | Encrypt (1KB) |
|---|---|---|
| tgcrypto | 14.8 µs | 24.3 µs |
| aesige | 7.4 µs | 7.7 µs |
| Speedup | 2x | 3.2x |
Supported Platforms
| Platform | Backend |
|---|---|
| Windows/Linux/macOS x64 | AES-NI |
| macOS ARM (M1/M2) | ARM CE |
| Linux ARM64 | ARM CE |
| Other | tgcrypto fallback |
License
Apache License 2.0
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
aesige-1.0.0.tar.gz
(72.8 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file aesige-1.0.0.tar.gz.
File metadata
- Download URL: aesige-1.0.0.tar.gz
- Upload date:
- Size: 72.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ae323ab523a1832b705c0da5040170784e2d8cd70d9fec4a1be46a2bada71a0f
|
|
| MD5 |
5d7cccf643c2145afebe4a1b15f55a17
|
|
| BLAKE2b-256 |
fbfc8d167d25b512a4b5f6d8407482658d8a18e486ceb79720b348eb5ff1df74
|
File details
Details for the file aesige-1.0.0-cp312-cp312-win_amd64.whl.
File metadata
- Download URL: aesige-1.0.0-cp312-cp312-win_amd64.whl
- Upload date:
- Size: 94.5 kB
- Tags: CPython 3.12, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3279c28bf4df28fbff766f288499d391f4d15b599582edd96be135aac54dda57
|
|
| MD5 |
24257e4594ec59f0ea4f758417ea5c51
|
|
| BLAKE2b-256 |
09d5958e6df215f4c251a795e0d64b6566d02e90c8a59087133eda4f5d94682d
|