summaryrefslogtreecommitdiff
path: root/security/py-tinyaes/pkg-descr
blob: 256259485f66849c1834b0094e7abd9634a0df2f (plain) (blame)
1
2
3
4
5
6
7
8
9
tinyaes is a few lines Cython wrapper for the tiny-AES-c library, a Small
portable AES128/192/256 in C.

The library offers a few modes, CTR mode is the only one currently wrapped.
Given the C API works modifying a buffer in-place, the wrapper offers:
- CTR_xcrypt_buffer(..) that works on all bytes convertible types, and
  encrypting a copy of the buffer,
- CTR_xcrypt_buffer_inplace(..) that works on bytearrays only, modifying the
  buffer in-place.