1 Star 5 Fork 2

DannyNiu/NJF / MySuiteA

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
Unlicense

MySuiteA

Cryptographic Code Library from DannyNiu/NJF

MySuiteA is a suite of C language source code library for cryptographic algorithms. It's written with modularity, self-sufficiency, API uniforminity in mind, and is highly portable.

Features

  • API Uniforminity.

Uniform APIs are designed for each type of primitives, allowing their instances to be created at compile, link, and run time. Higher-level algorithms may take lower-level primitives as parameters when instantiating (e.g. GCM mode plus AES blockcipher, RSA algorithm with SHA-256 hash function).

  • Layered Implementation.

All objects, functions, and data types are layered according to:

  1. Datum (datum, exec)
  2. Primitive (rijndael, fips-180, keccak, etc.)
  3. Utility (encryption, hash, xof, etc.)
  4. Functionality (KEM, signature, etc.)

Each type of concern are encapsulated within a specific layer, allowing modular code reuse at higher layer, supporting modular instantiability.

  • Only Algorithms.

All codes constituting the algorithms are written absent any function call to hosted libraries (i.e. no malloc or fwrite, etc.). Any necessary working contexts are allocated by the user/caller before performing any cryptographic computation.

MySuiteA will not, and cannot correctly adapt to all usage scenario, therefore any platform dependent concerns such as thread, async-signal, and async-cancel safety are left out of the suite and are to be handled by the user/caller.

  • International.

Apart from US algorithms, a select few important national/regional standards from elsewhere around the globe are included in the suite. At the same time, an inclusion criteria is established to prevent scope creep.

This is free and unencumbered software released into the public domain. Anyone is free to copy, modify, publish, use, compile, sell, or distribute this software, either in source code form or as a compiled binary, for any purpose, commercial or non-commercial, and by any means. In jurisdictions that recognize copyright laws, the author or authors of this software dedicate any and all copyright interest in the software to the public domain. We make this dedication for the benefit of the public at large and to the detriment of our heirs and successors. We intend this dedication to be an overt act of relinquishment in perpetuity of all present and future rights to this software under copyright law. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. For more information, please refer to <https://unlicense.org>

简介

密码学全套算法。涵盖: - 分组密码 - 变换 - 哈希函数 - 随机数生成器 - 数字签名 - 密钥交换 包含主流算法(AES、SHA、RSA、ECC) 以及新异算法(ChaCha20,BLAKE2、Curve25519、Curve448、EdDSA) 展开 收起
Unlicense
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
C
1
https://gitee.com/dannyniu/MySuiteA.git
git@gitee.com:dannyniu/MySuiteA.git
dannyniu
MySuiteA
MySuiteA
master

搜索帮助