Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/davxy/cry
CRY crypto library
https://github.com/davxy/cry
arithmetic bignumber cryptography mpi number-theory
Last synced: 10 days ago
JSON representation
CRY crypto library
- Host: GitHub
- URL: https://github.com/davxy/cry
- Owner: davxy
- License: mit
- Created: 2023-01-01T15:36:01.000Z (about 2 years ago)
- Default Branch: master
- Last Pushed: 2023-09-02T13:13:01.000Z (over 1 year ago)
- Last Synced: 2024-12-20T21:59:58.353Z (13 days ago)
- Topics: arithmetic, bignumber, cryptography, mpi, number-theory
- Language: C
- Homepage:
- Size: 3.73 MB
- Stars: 1
- Watchers: 2
- Forks: 2
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
- Authors: AUTHORS.md
Awesome Lists containing this project
README
[![Build Status](https://gitlab.com/davxy/cry/badges/master/pipeline.svg)](https://gitlab.com/davxy/cry/-/pipelines)
[![Coverage Status](https://coveralls.io/repos/github/crylib/cry/badge.svg?branch=master)](https://coveralls.io/github/crylib/cry?branch=master)CRY
===CRY is a small, comprehensive and portable cryptographic library prividing
a good collection of ciphers, hash functions, pseudo-random number generators
and multi-precision integers algorithms.### ⚠️ WARNING ⚠️
The code has never been audited by any third party nor has been developed
with the intent to be used for any serious application.Main focus was personal research and fun.
The implementations are not constant time nor efficient.
**USE IT AT YOUR OWN RISK!!!**
Symmetric ciphers
-----------------### Block ciphers
- AES (Rijndael)
- DES and Triple DES### Block ciphers mode of operation
- ECB (electronic codebook)
- CBC (cipher block chaining)
- CFB (cipher feedback)
- CTR (counter)
- GCM (Galois counter mode)### Stream ciphers
- ARC4
- TriviumPublic key algorithms
---------------------### Ciphers
- RSA (PKCS1 v1.5 padding)
### Secret exchange
- Diffie-Hellman (DH)
- ECDH### Digital signature
- RSA (PKCS1 v2.1 PSS padding)
- DSA
- ECDSA
- ElgamalElliptic Curve
--------------- EC group arithmetic.
- NIST recommended elliptic curve domain parameters over Fp.
- Brainpool standard curve domain parameters over Fp (RFC 5639).Pseudo random numbers generators
--------------------------------- AES-CTR CSPRNG
- LFSR-113 fast PRNGMessage authentication code
---------------------------- HMAC
- CMACHash
----### Secure hash
- MD5
- SHA-1
- SHA-256
- SHA-512### CRC
- CRC16-CCITT
- CRC16-IBM
- CRC16-DNP
- CRC32-EthernetClassical ciphers
-----------------### Substitution ciphers
- Hill cipher
- Polyalphabetic Affine cipherMultiple precision integers
---------------------------- Basic arithmentic (add,sub,mul,div,mod,abs,exp,sqr)
- Modular exponentiation
- Modular inverse (Euclidean)
- GCD and LCM
- Probabilistic prime numbers generator (Miller-Rabin)
- Random mpi generator
- Comba, Karatsuba and Toom-Cook-3 multipliersUtilities
---------- AES Key Wrap (RFC-3394)
- Base64 encoder/decoder
- Memxor