https://github.com/rafael-santiago/kryptos
A multiplatform easy to embed crypto library.
https://github.com/rafael-santiago/kryptos
blake3 crypto cryptography cryptography-library embedded-c freebsd freebsd-kld internal-dsl kernel-module linux linux-kernel-module minix netbsd netbsd-kernel-module netbsd-kmod openbsd solaris suckless-implementations windows windows-kernel
Last synced: 4 months ago
JSON representation
A multiplatform easy to embed crypto library.
- Host: GitHub
- URL: https://github.com/rafael-santiago/kryptos
- Owner: rafael-santiago
- License: gpl-2.0
- Created: 2017-04-06T23:41:35.000Z (about 8 years ago)
- Default Branch: main
- Last Pushed: 2025-02-04T02:03:57.000Z (4 months ago)
- Last Synced: 2025-02-04T03:18:28.897Z (4 months ago)
- Topics: blake3, crypto, cryptography, cryptography-library, embedded-c, freebsd, freebsd-kld, internal-dsl, kernel-module, linux, linux-kernel-module, minix, netbsd, netbsd-kernel-module, netbsd-kmod, openbsd, solaris, suckless-implementations, windows, windows-kernel
- Language: C
- Homepage:
- Size: 2.08 MB
- Stars: 4
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: COPYING
- Code of conduct: CODE_OF_CONDUCT-PT_BR.md
Awesome Lists containing this project
README
# Kryptos
    
I started the core of this project on about 2004 and since then it is being an attempt of building a tiny and straightforward
crypto library which can be easily integrated with user and also kernel mode code.Until now these are the supported platforms:
| **Platform** | **User mode** | **Kernel mode** |
|:------------:|:-------------:|:---------------:|
||:heavy_check_mark:|:heavy_check_mark:|
||:heavy_check_mark:|:heavy_check_mark:|
||:heavy_check_mark:|:x:|
||:heavy_check_mark:|:heavy_check_mark:|
||:heavy_check_mark:|:x:|
||:heavy_check_mark:|:x:|
||:heavy_check_mark:|:heavy_check_mark:|## Features
**Stream cipher**: ``ARC4``, ``SEAL``, ``RABBIT``, ``Salsa20``, ``ChaCha20``.
**Block cipher**: ``AES``, ``DES``, ``3DES``, ``3DES-EDE``, ``IDEA``, ``RC2``, ``RC5``, ``RC6``, ``FEAL``, ``CAST5``,
``Camellia``, ``SAFER-K64``, ``Blowfish``, ``Serpent``, ``TEA``, ``XTEA``, ``MISTY1``, ``MARS``, ``PRESENT``, ``SHACAL-1``,
``SHACAL-2``, ``NOEKEON``, ``GOST``, ``TWOFISH``.**Modes of operation**: ``ECB``, ``CBC``, ``OFB``, ``CTR``, ``GCM``.
**Cryptographic hashes**: ``SHA-1``, ``SHA-224``, ``SHA-256``, ``SHA-384``, ``SHA-512``, ``MD4``, ``MD5``, ``RIPEMD-128``,
``RIPEMD-160``, ``SHA3-224``, ``SHA3-256``, ``SHA3-384``, ``SHA3-512``, ``KECCAK-224``, ``KECCAK-256``, ``KECCAK-384``,
``KECCAK-512``, ``BLAKE2s-256``, ``BLAKE2b-512``, ``BLAKE2s-N``, ``BLAKE2b-N``, ``BLAKE3``, ``Tiger``, ``Whirlpool``.**Non-cryptographic hashes**: ``djb2`` (string hashing), ``SipHash``.
**Message authentication code**: ``HMAC``, ``Poly1305``, ``SipHash`` (recommended for short messages only),
``GCM`` (for all 128-bit block ciphers).**PK crypto**: ``RSA``, ``RSA-OAEP``, ``El Gamal``, ``RSA-EMSA/PSS``, ``DSA``, ``ECDSA``, ``DH``, ``ECDH``.
**CSPRNG**: From the system (default one), ``Fortuna``.
**Codification stuff**: ``Base64``, ``Base32``, ``Base16``, ``UUEncode``.
**Compression stuff**: ``Huffman coding``.
**Key derivation functions**: ``HKDF``, ``PBKDF2``, ``Argon2``.
**One-time passwords**: ``HOTP``, ``TOTP``.
**Extras**: Common API between user space / kernel space (``Windows``, ``FreeBSD``, ``NetBSD`` and ``Linux``), ``RAM`` swapping
cares, data wiping when freeing memory, ``PEM`` as its common input/output (for some algorithms), convenience function macros
to make it easy to use all available cryptographic functions (``C99`` required).In order to know more you should start [here](https://github.com/rafael-santiago/kryptos/blob/main/doc/README.md).
This library is licensed under ``GPLv2`` if for some reason it does not fit into your stuff you can contact me and let's
talk about.---
**Bear in mind**: Use this software at your own risk. I am not responsible for any misuse of it, including some kind of damage,
data loss etc. The software is provided with no warranty. Also watch the crypto regulations for your country and the licenses
of the current available ciphers before using this library.**Remark**: I do not provide pre-builts, if you have found any pre-built of this library somewhere, I **do not** endorse it.