├── LICENSE.md ├── .github └── CODE_OF_CONDUCT.md ├── SECURITY.md ├── go.mod ├── PERFORMANCE.md ├── cmd └── edgetk │ └── README.md ├── go.sum └── README.md /LICENSE.md: -------------------------------------------------------------------------------- 1 | Copyright (c) 2025, Pedro F. Albanese pedroalbanese@hotmail.com 2 | 3 | Permission to use, copy, modify, and distribute this software for any 4 | purpose with or without fee is hereby granted, provided that the above 5 | copyright notice and this permission notice appear in all copies. 6 | 7 | THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES 8 | WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 9 | MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR 10 | ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 11 | WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 12 | ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 13 | OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 14 | -------------------------------------------------------------------------------- /.github/CODE_OF_CONDUCT.md: -------------------------------------------------------------------------------- 1 | # Code of Conduct 2 | 3 | ## Our Pledge 4 | 5 | We as contributors and maintainers pledge to make participation in our project a harassment-free experience for everyone, regardless of age, body size, visible or invisible disability, ethnicity, sex characteristics, gender identity and expression, level of experience, education, socio-economic status, nationality, personal appearance, race, religion, or sexual identity and orientation. 6 | 7 | We pledge to act and interact in ways that contribute to an open, welcoming, diverse, inclusive, and healthy community. 8 | 9 | ## Our Standards 10 | 11 | Examples of behavior that contributes to a positive environment include: 12 | 13 | - Using welcoming and inclusive language 14 | - Being respectful of differing viewpoints and experiences 15 | - Giving and gracefully accepting constructive feedback 16 | - Showing empathy toward other community members 17 | 18 | Examples of unacceptable behavior include: 19 | 20 | - The use of sexualized language or imagery 21 | - Personal attacks or insults 22 | - Trolling or insulting comments 23 | - Public or private harassment 24 | - Publishing others’ private information without explicit permission 25 | 26 | ## Enforcement Responsibilities 27 | 28 | Project maintainers are responsible for clarifying and enforcing standards of acceptable behavior and will take appropriate and fair corrective action in response to any behavior they deem inappropriate. 29 | 30 | ## Scope 31 | 32 | This Code of Conduct applies both within project spaces and in public spaces when an individual is representing the project or its community. 33 | 34 | ## Enforcement 35 | 36 | Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the maintainers at: pedroalbanese@hotmail.com. All complaints will be reviewed and investigated promptly and fairly. 37 | 38 | ## Attribution 39 | 40 | This Code of Conduct is adapted from the [Contributor Covenant](https://www.contributor-covenant.org), version 2.1. 41 | -------------------------------------------------------------------------------- /SECURITY.md: -------------------------------------------------------------------------------- 1 | # Security Policy 2 | 3 | ## Security Assurance 4 | 5 | The EDGETk toolkit was developed by a security engineer and includes over 140 widely recognized cryptographic algorithms. Despite not having undergone a formal third-party audit yet, its correctness and security posture can be reasonably assured based on several strong indicators: 6 | 7 | - **Interoperability with Standard Tools:** 8 | EDGETk is fully compatible with widely used cryptographic toolkits such as OpenSSL, LibreSSL, and GmSSL. This ensures that its key formats, ciphertexts, hashes, and digital signatures can be validated against independent implementations. 9 | 10 | - **Initialization Vector and Parameter Compatibility:** 11 | All implemented algorithms conform to the expected behavior defined in standard documentation. EDGETk consistently produces correct outputs when tested against standardized test vectors (e.g., NIST, ISO, GOST, SM series), demonstrating adherence to cryptographic specifications. 12 | 13 | - **Cross-Platform Determinism:** 14 | The toolkit has been tested on multiple architectures (x86, ARM) and operating systems (Linux, Windows, FreeBSD), consistently yielding identical outputs for the same inputs, which strongly supports implementation correctness. 15 | 16 | - **Protocol-Level Validation:** 17 | The TLS 1.3 and TLCP implementations have been tested in real-world scenarios and communicate successfully with compliant clients and servers, further reinforcing protocol-level correctness. 18 | 19 | While independent auditing remains an important future milestone, the high degree of compatibility, adherence to international standards, and deterministic behavior across platforms provide strong practical evidence of correctness and reliability in EDGETk's cryptographic implementations. 20 | 21 | ## Reporting a Vulnerability 22 | 23 | Please send a mail to pedroalbanese@hotmail.com when you found a security issue in EDGETk, even when you are not 100% certain 24 | that it is actually a security issue. Typically, you will receive an answer within a day or even within a few hours. 25 | -------------------------------------------------------------------------------- /go.mod: -------------------------------------------------------------------------------- 1 | module github.com/pedroalbanese/edgetk 2 | 3 | go 1.23.0 4 | 5 | toolchain go1.23.3 6 | 7 | require ( 8 | gitee.com/Trisia/gotlcp v1.3.17 9 | github.com/RyuaNerin/elliptic2 v1.0.0 10 | github.com/RyuaNerin/go-krypto v1.3.0 11 | github.com/deatil/go-cryptobin v1.0.4018 12 | github.com/emmansun/certinfo v0.1.0 13 | github.com/emmansun/gmsm v0.32.0 14 | github.com/emmansun/go-pkcs12 v0.3.0 15 | github.com/kasperdi/SPHINCSPLUS-golang v0.0.0-20231223193046-84468b93f7e9 16 | github.com/pedroalbanese/IGE-go v0.0.0-20140730194654-752bc7fd80fb 17 | github.com/pedroalbanese/anubis v0.0.1 18 | github.com/pedroalbanese/bash v0.0.0-20240917213542-359ea9ed86ee 19 | github.com/pedroalbanese/belt v0.0.0-20240917222837-2f97e6235d6c 20 | github.com/pedroalbanese/bign v0.0.0-20240918155826-90ccb6b122b9 21 | github.com/pedroalbanese/bip0340 v0.0.0-20250309175356-f4246d336869 22 | github.com/pedroalbanese/bls12381 v0.0.8 23 | github.com/pedroalbanese/bmw v0.0.0-20240608175405-99257887a774 24 | github.com/pedroalbanese/bn256 v0.0.0-20241211180157-f48a503b4cc5 25 | github.com/pedroalbanese/brainpool v0.0.0-20220826183126-be5c94625a31 26 | github.com/pedroalbanese/camellia v0.0.0-20220911183557-30cc05c20118 27 | github.com/pedroalbanese/cast256 v0.0.0-20240325185652-e35cf700d5fe 28 | github.com/pedroalbanese/cast5 v0.0.0-20220924202825-3e5c3c00277c 29 | github.com/pedroalbanese/ccm v0.0.0-20230716211039-49b744fc07d4 30 | github.com/pedroalbanese/cfb1 v0.0.1 31 | github.com/pedroalbanese/cfb8 v0.0.0 32 | github.com/pedroalbanese/cmac v0.0.0-20210429130952-a58975ec8f4c 33 | github.com/pedroalbanese/crypto v0.0.0-20230125215802-8b7e99ecbad3 34 | github.com/pedroalbanese/crypton v0.0.0-20240325185448-da9f3c02e89e 35 | github.com/pedroalbanese/crystals-go v0.0.0-20240315230756-81011b679705 36 | github.com/pedroalbanese/cubehash v0.0.0 37 | github.com/pedroalbanese/cubehash256 v0.0.0-20240403151932-00980243a56a 38 | github.com/pedroalbanese/curupira1 v0.0.0-gama 39 | github.com/pedroalbanese/curve448 v0.0.0-20240514173232-895b1c6c93a1 40 | github.com/pedroalbanese/e2 v0.0.0-20240325185507-eef2e0916dc5 41 | github.com/pedroalbanese/e521 v0.0.30 42 | github.com/pedroalbanese/eac v0.0.0-20250428171516-10a5a5e733cd 43 | github.com/pedroalbanese/eax v0.0.0-20240629182935-b915af1b69bb 44 | github.com/pedroalbanese/ecb v0.0.0-20220918174126-1a696b93ae2b 45 | github.com/pedroalbanese/ecgdsa v0.0.0-20250309172633-1e9ac31fec97 46 | github.com/pedroalbanese/echo v0.0.0-20240329160327-5e65f19de84b 47 | github.com/pedroalbanese/ecsdsa v0.0.0-20250309175503-d735dfab325a 48 | github.com/pedroalbanese/esch v0.0.0-20240403151441-bc287e464d49 49 | github.com/pedroalbanese/frp256v1 v0.0.3 50 | github.com/pedroalbanese/fugue v0.0.0-20240518170253-4e3af93fc75a 51 | github.com/pedroalbanese/gmac v0.0.0-20231030174635-9eb35b8b4542 52 | github.com/pedroalbanese/go-ascon v0.0.0-20240325185942-de83d7994a95 53 | github.com/pedroalbanese/go-chaskey v0.0.0-20230117155006-a9e41c18223c 54 | github.com/pedroalbanese/go-external-ip v0.0.0-20200601212049-c872357d968e 55 | github.com/pedroalbanese/go-grain v0.0.0-20240325185755-73b4f13ea6bc 56 | github.com/pedroalbanese/go-idea v0.0.0-20170306091226-d2fb45a411fb 57 | github.com/pedroalbanese/go-kcipher2 v0.0.0-20170506094415-4fcf5aa27627 58 | github.com/pedroalbanese/go-krcrypt v0.0.0-20170928183100-a0c871728ae1 59 | github.com/pedroalbanese/go-misty1 v0.0.0-20150819220543-a3984aec4fae 60 | github.com/pedroalbanese/go-nums v0.0.0-20250217142054-d8f977c4e11d 61 | github.com/pedroalbanese/go-rc5 v0.0.0-20181025211356-a14dd155920a 62 | github.com/pedroalbanese/go-ripemd v0.0.0-20200326052756-bd1759ad7d10 63 | github.com/pedroalbanese/gogost v0.0.0-20240430171730-f95129c7a5af 64 | github.com/pedroalbanese/golang-rc6 v0.0.0-20240204183933-f7014051ac04 65 | github.com/pedroalbanese/gopass v0.0.0-20210920133722-c8aef6fb66ef 66 | github.com/pedroalbanese/groestl v1.0.1 67 | github.com/pedroalbanese/hamsi v0.0.0-20240518170147-c7c58b0f2a86 68 | github.com/pedroalbanese/haraka v0.0.0-20180824194238-3cf1081eecd7 69 | github.com/pedroalbanese/jh v0.0.0-20240624180005-e6705e517191 70 | github.com/pedroalbanese/kalyna v0.0.0-20240325185136-5fa784896340 71 | github.com/pedroalbanese/kg v0.0.5 72 | github.com/pedroalbanese/khazad v0.0.0-20240325185634-12dbcf5e3eaa 73 | github.com/pedroalbanese/kupyna v0.0.0-20240326161126-ebb2f9665eeb 74 | github.com/pedroalbanese/kuznechik v0.0.0 75 | github.com/pedroalbanese/loki97 v0.0.0-20240325185530-a0580bcacc04 76 | github.com/pedroalbanese/luffa v0.0.0-20240518171333-cf7dac6a64ae 77 | github.com/pedroalbanese/lyra2re v0.0.0-20240520232624-5764a75dde63 78 | github.com/pedroalbanese/lyra2rev2 v0.0.0-20240608181906-fe968f886565 79 | github.com/pedroalbanese/magenta v0.0.0-20241208214047-a79e5e9ef277 80 | github.com/pedroalbanese/makwa-go v0.0.0-20240816162209-f803984910a2 81 | github.com/pedroalbanese/mars v0.0.0-20240325185557-fe8b863ed824 82 | github.com/pedroalbanese/matrixgl v0.0.9 83 | github.com/pedroalbanese/md6 v0.0.0-20240815222317-052c055905a4 84 | github.com/pedroalbanese/noekeon v0.0.0-20240325185408-f90c60f5190f 85 | github.com/pedroalbanese/ocb v0.0.0-20230501153203-7d2a80fe6a75 86 | github.com/pedroalbanese/ocb3 v0.0.0-20250818172449-cf949c2a64b2 87 | github.com/pedroalbanese/panama v0.0.0-20240325185906-f9d6500cb56b 88 | github.com/pedroalbanese/pmac v0.0.0-20240715205711-f4d312cbf6c5 89 | github.com/pedroalbanese/present v0.0.0-20240325185615-de3b5340e616 90 | github.com/pedroalbanese/rabbitio v0.0.0-20230209212404-cffc97bafde8 91 | github.com/pedroalbanese/radio_gatun v0.0.0-20240520204859-03d5d3af41c3 92 | github.com/pedroalbanese/randomart v0.0.0-20130402080559-540116cac932 93 | github.com/pedroalbanese/rc2 v0.0.0-20131011165748-24b9757f5521 94 | github.com/pedroalbanese/secp256k1 v0.1.3 95 | github.com/pedroalbanese/shacal2 v0.0.0-20240911175924-cbeaa118c471 96 | github.com/pedroalbanese/shavite v0.0.0-20240518173728-5c0c7c528bc7 97 | github.com/pedroalbanese/simd v0.0.0-20240518173711-b73ebc90aae8 98 | github.com/pedroalbanese/simpleini v0.0.0 99 | github.com/pedroalbanese/siphash v1.0.1 100 | github.com/pedroalbanese/siv v0.0.2 101 | github.com/pedroalbanese/skein v0.0.0-20230124182825-ffe5e4ff3827 102 | github.com/pedroalbanese/skein-1 v0.0.0-20171112102903-d7f1022db390 103 | github.com/pedroalbanese/spritz v0.0.0-20140823220804-e125bc694ec3 104 | github.com/pedroalbanese/threefish v0.0.0-20230828205611-8dc287bb1622 105 | github.com/pedroalbanese/tiger v0.0.0-20220128183340-a7e964767a9d 106 | github.com/pedroalbanese/tom v0.0.0-20250228211028-987ea6c1589b 107 | github.com/pedroalbanese/trivium v0.0.0-20170225064545-3bc0ea456f63 108 | github.com/pedroalbanese/twine v0.0.0-20240325185833-a027b56be619 109 | github.com/pedroalbanese/uuencode v1.0.4 110 | github.com/pedroalbanese/vmac v0.0.0-20231111194716-1a03aacdcb4c 111 | github.com/pedroalbanese/whirlpool v0.0.0-20220911221330-8ad94dd14447 112 | github.com/pedroalbanese/xoodoo v0.0.0-20230124190939-64aa038b97c6 113 | github.com/pedroalbanese/xxencode v0.0.15 114 | github.com/trailofbits/lms-go v0.0.0-20250218220503-d2f2806cebf9 115 | github.com/zeebo/blake3 v0.2.3 116 | golang.org/x/crypto v0.45.0 117 | golang.org/x/term v0.32.0 118 | ) 119 | 120 | require ( 121 | github.com/codahale/makwa v0.0.0-20141227225204-3dbfaeed5fdb // indirect 122 | github.com/klauspost/cpuid/v2 v2.0.12 // indirect 123 | github.com/pedroalbanese/blake256 v0.0.0-20170713140427-6aca07c5447e // indirect 124 | github.com/pedroalbanese/bmw256 v0.0.0-20240403151626-135f0d278f9f // indirect 125 | github.com/pedroalbanese/groestl-1 v0.0.0-20230125170437-46d496027e3d // indirect 126 | github.com/pkg/errors v0.9.1 // indirect 127 | golang.org/x/sys v0.38.0 // indirect 128 | ) 129 | 130 | replace golang.org/x/crypto => golang.org/x/crypto v0.38.0 131 | 132 | replace golang.org/x/sys => golang.org/x/sys v0.25.0 133 | -------------------------------------------------------------------------------- /PERFORMANCE.md: -------------------------------------------------------------------------------- 1 | # Performance 2 | 3 | goos: windows 4 | goarch: x86 5 | AMD64 Athlon X2 (Dual-Core) 3GB RAM 6 | 7 | ## Asymmetric 8 | 9 | - **Keypair Generation:** 10 | 11 | | Command | Mean [s] | Min [s] | Max [s] | Relative | 12 | |:---|---:|---:|---:|---:| 13 | | `Dilithium` | 0.095 ± 0.070 | 0.066 | 0.294 | 1.42 ± 1.08 | 14 | | `EC-ElGamal` | 0.067 ± 0.005 | 0.061 | 0.077 | 1.00 ± 0.15 | 15 | | `ECDSA 224-bit` | 0.077 ± 0.006 | 0.071 | 0.086 | 1.16 ± 0.18 | 16 | | `ECDSA 256-bit` | 0.099 ± 0.067 | 0.073 | 0.289 | 1.49 ± 1.03 | 17 | | `ECDSA 384-bit` | 0.159 ± 0.008 | 0.151 | 0.174 | 2.39 ± 0.34 | 18 | | `ECDSA 521-bit` | 0.354 ± 0.009 | 0.345 | 0.376 | 5.32 ± 0.73 | 19 | | `Ed25519` | 0.099 ± 0.006 | 0.095 | 0.113 | 1.50 ± 0.22 | 20 | | `Ed448` | 0.091 ± 0.011 | 0.082 | 0.120 | 1.37 ± 0.25 | 21 | | `ElGamal` | 0.471 ± 0.006 | 0.458 | 0.480 | 7.08 ± 0.96 | 22 | | `GOST 256-bit` | 0.081 ± 0.011 | 0.073 | 0.104 | 1.22 ± 0.24 | 23 | | `GOST 512-bit` | 0.127 ± 0.006 | 0.121 | 0.138 | 1.92 ± 0.27 | 24 | | `Kyber` | 0.067 ± 0.004 | 0.063 | 0.077 | 1.01 ± 0.15 | 25 | | `RSA 3072-bit` | 6.962 ± 3.262 | 2.968 | 12.902 | 104.73 ± 51.05 | 26 | | `SM2` | 0.101 ± 0.068 | 0.074 | 0.293 | 1.53 ± 1.05 | 27 | | `SPHINCS+` | 0.416 ± 0.018 | 0.403 | 0.462 | 6.25 ± 0.88 | 28 | | `X25519` | 0.066 ± 0.009 | 0.059 | 0.086 | 1.00 | 29 | | `X448` | 0.072 ± 0.013 | 0.064 | 0.107 | 1.09 ± 0.25 | 30 | 31 | - **Digital Signature:** 32 | 33 | | Command | Mean [s] | Min [s] | Max [s] | Relative | 34 | |:---|---:|---:|---:|---:| 35 | | `Dilithium` | 0.104 ± 0.009 | 0.093 | 0.123 | 1.67 ± 0.16 | 36 | | `ECDSA 224-bit` | 0.069 ± 0.011 | 0.062 | 0.099 | 1.11 ± 0.19 | 37 | | `ECDSA 256-bit` | 0.065 ± 0.004 | 0.063 | 0.076 | 1.05 ± 0.07 | 38 | | `ECDSA 384-bit` | 0.151 ± 0.009 | 0.146 | 0.178 | 2.44 ± 0.18 | 39 | | `ECDSA 521-bit` | 0.360 ± 0.010 | 0.353 | 0.383 | 5.81 ± 0.27 | 40 | | `Ed25519` | 0.171 ± 0.003 | 0.168 | 0.179 | 2.77 ± 0.11 | 41 | | `Ed448` | 0.160 ± 0.008 | 0.154 | 0.181 | 2.59 ± 0.16 | 42 | | `ElGamal` | 0.265 ± 0.008 | 0.259 | 0.285 | 4.28 ± 0.20 | 43 | | `GOST2012 256-bit` | 0.062 ± 0.002 | 0.060 | 0.068 | 1.00 | 44 | | `GOST2012 512-bit` | 0.111 ± 0.003 | 0.107 | 0.119 | 1.79 ± 0.08 | 45 | | `RSA 3072-bit` | 0.201 ± 0.005 | 0.197 | 0.212 | 3.25 ± 0.14 | 46 | | `SM2` | 0.077 ± 0.003 | 0.074 | 0.082 | 1.24 ± 0.07 | 47 | | `SPHINCS+` | 7.023 ± 0.233 | 6.902 | 7.636 | 113.33 ± 5.50 | 48 | 49 | - **Shared Key Agreement:** 50 | 51 | | Command | Mean [s] | Min [s] | Max [s] | Relative | 52 | |:---|---:|---:|---:|---:| 53 | | `ECDSA 224-bit` | 0.064 ± 0.008 | 0.058 | 0.080 | 1.19 ± 0.55 | 54 | | `ECDSA 256-bit` | 0.062 ± 0.007 | 0.058 | 0.080 | 1.17 ± 0.53 | 55 | | `ECDSA 384-bit` | 0.159 ± 0.003 | 0.157 | 0.168 | 3.00 ± 1.33 | 56 | | `ECDSA 521-bit` | 0.407 ± 0.011 | 0.400 | 0.434 | 7.65 ± 3.40 | 57 | | `GOST2012 256-bit` | 0.062 ± 0.009 | 0.053 | 0.082 | 1.16 ± 0.54 | 58 | | `GOST2012 512-bit` | 0.104 ± 0.006 | 0.101 | 0.122 | 1.96 ± 0.88 | 59 | | `SM2` | 0.066 ± 0.008 | 0.061 | 0.088 | 1.24 ± 0.57 | 60 | | `X25519` | 0.053 ± 0.024 | 0.042 | 0.120 | 1.00 | 61 | | `X448` | 0.055 ± 0.001 | 0.054 | 0.057 | 1.04 ± 0.46 | 62 | 63 | ## Symmetric 64 | 65 | - **Stream Ciphers:** 66 | 67 | | Command | Mean [s] | Min [s] | Max [s] | Relative | 68 | |:---|---:|---:|---:|---:| 69 | | `Chacha20Poly1305` | 0.076 ± 0.012 | 0.070 | 0.110 | 1.93 ± 0.33 | 70 | | `Chacha20` | 0.049 ± 0.002 | 0.047 | 0.055 | 1.24 ± 0.09 | 71 | | `HC-128` | 0.039 ± 0.002 | 0.037 | 0.044 | 1.00 | 72 | | `HC-256` | 0.045 ± 0.008 | 0.040 | 0.065 | 1.15 ± 0.20 | 73 | | `KCipher-2` | 0.082 ± 0.002 | 0.080 | 0.088 | 2.09 ± 0.13 | 74 | | `RC4` | 0.050 ± 0.005 | 0.046 | 0.059 | 1.28 ± 0.14 | 75 | | `Rabbit` | 0.050 ± 0.003 | 0.047 | 0.056 | 1.27 ± 0.11 | 76 | | `Salsa20` | 0.044 ± 0.006 | 0.041 | 0.060 | 1.13 ± 0.16 | 77 | | `Skein512` | 0.061 ± 0.003 | 0.060 | 0.068 | 1.56 ± 0.11 | 78 | | `Spritz` | 0.107 ± 0.004 | 0.104 | 0.117 | 2.73 ± 0.18 | 79 | | `Trivium` | 0.252 ± 0.006 | 0.245 | 0.266 | 6.44 ± 0.40 | 80 | | `ZUC-128` | 0.071 ± 0.003 | 0.068 | 0.078 | 1.82 ± 0.13 | 81 | | `ZUC-256` | 0.072 ± 0.006 | 0.067 | 0.084 | 1.84 ± 0.18 | 82 | 83 | - **128-bit> Block Ciphers:** 84 | 85 | | Command | Mean [s] | Min [s] | Max [s] | Relative | 86 | |:---|---:|---:|---:|---:| 87 | | `AES` | 0.084 ± 0.006 | 0.078 | 0.098 | 1.49 ± 0.19 | 88 | | `ARIA` | 0.302 ± 0.003 | 0.298 | 0.309 | 5.38 ± 0.57 | 89 | | `Anubis` | 0.093 ± 0.007 | 0.086 | 0.116 | 1.65 ± 0.21 | 90 | | `CAST256` | 0.248 ± 0.008 | 0.241 | 0.264 | 4.43 ± 0.49 | 91 | | `CLEFIA` | 1.652 ± 0.006 | 1.644 | 1.662 | 29.49 ± 3.12 | 92 | | `CRYPTON` | 0.170 ± 0.006 | 0.164 | 0.185 | 3.04 ± 0.34 | 93 | | `Camellia` | 0.086 ± 0.006 | 0.078 | 0.110 | 1.54 ± 0.20 | 94 | | `E2` | 0.175 ± 0.004 | 0.171 | 0.187 | 3.12 ± 0.34 | 95 | | `Grasshopper` | 0.419 ± 0.002 | 0.417 | 0.422 | 7.48 ± 0.79 | 96 | | `Kalyna128_128` | 0.115 ± 0.006 | 0.110 | 0.134 | 2.06 ± 0.24 | 97 | | `Kalyna128_256` | 0.136 ± 0.006 | 0.131 | 0.150 | 2.42 ± 0.28 | 98 | | `Kalyna256_256` | 0.133 ± 0.009 | 0.125 | 0.152 | 2.37 ± 0.29 | 99 | | `Kalyna256_512` | 0.151 ± 0.010 | 0.144 | 0.184 | 2.69 ± 0.33 | 100 | | `Kalyna512_512` | 0.147 ± 0.006 | 0.140 | 0.157 | 2.62 ± 0.30 | 101 | | `LEA` | 0.056 ± 0.006 | 0.052 | 0.092 | 1.00 | 102 | | `LOKI97` | 0.163 ± 0.005 | 0.158 | 0.175 | 2.91 ± 0.32 | 103 | | `MARS2` | 0.129 ± 0.004 | 0.125 | 0.143 | 2.30 ± 0.25 | 104 | | `MARS` | 0.089 ± 0.005 | 0.084 | 0.101 | 1.58 ± 0.19 | 105 | | `NOEKEON` | 0.160 ± 0.005 | 0.151 | 0.169 | 2.85 ± 0.31 | 106 | | `RC6` | 0.066 ± 0.006 | 0.061 | 0.086 | 1.17 ± 0.16 | 107 | | `SEED` | 0.081 ± 0.006 | 0.078 | 0.108 | 1.45 ± 0.18 | 108 | | `SM4` | 0.076 ± 0.004 | 0.072 | 0.094 | 1.36 ± 0.16 | 109 | | `Serpent` | 0.156 ± 0.006 | 0.152 | 0.175 | 2.79 ± 0.31 | 110 | | `Threefish256` | 0.081 ± 0.010 | 0.075 | 0.124 | 1.44 ± 0.24 | 111 | | `Threefish512` | 0.091 ± 0.006 | 0.087 | 0.108 | 1.63 ± 0.20 | 112 | | `Threefish1024` | 0.100 ± 0.006 | 0.095 | 0.114 | 1.79 ± 0.21 | 113 | | `Twofish` | 0.112 ± 0.009 | 0.101 | 0.140 | 2.01 ± 0.27 | 114 | 115 | - **64-bit Block Ciphers:** 116 | 117 | | Command | Mean [s] | Min [s] | Max [s] | Relative | 118 | |:---|---:|---:|---:|---:| 119 | | `3DES` | 0.194 ± 0.008 | 0.189 | 0.220 | 3.25 ± 0.38 | 120 | | `Blowfish` | 0.070 ± 0.005 | 0.066 | 0.083 | 1.18 ± 0.15 | 121 | | `CAST5` | 0.096 ± 0.005 | 0.090 | 0.107 | 1.60 ± 0.20 | 122 | | `DES` [obsolete] | 0.109 ± 0.010 | 0.101 | 0.152 | 1.83 ± 0.26 | 123 | | `GOST89` | 0.149 ± 0.004 | 0.146 | 0.164 | 2.51 ± 0.29 | 124 | | `HIGHT` | 0.174 ± 0.005 | 0.169 | 0.185 | 2.91 ± 0.33 | 125 | | `IDEA` [obsolete] | 0.127 ± 0.016 | 0.115 | 0.190 | 2.13 ± 0.36 | 126 | | `Khazad` | 0.091 ± 0.007 | 0.086 | 0.118 | 1.52 ± 0.20 | 127 | | `MISTY1` | 0.132 ± 0.006 | 0.128 | 0.151 | 2.22 ± 0.26 | 128 | | `Magma` | 0.150 ± 0.004 | 0.145 | 0.158 | 2.52 ± 0.29 | 129 | | `PRESENT` | 0.205 ± 0.004 | 0.201 | 0.218 | 3.45 ± 0.39 | 130 | | `RC2` [obsolete] | 0.126 ± 0.006 | 0.120 | 0.144 | 2.11 ± 0.26 | 131 | | `RC5` | 0.060 ± 0.007 | 0.054 | 0.088 | 1.00 | 132 | | `TWINE` | 0.726 ± 0.003 | 0.723 | 0.731 | 12.19 ± 1.35 | 133 | 134 | - **Modes of Operation:** 135 | 136 | | Command | Mean [s] | Min [s] | Max [s] | Relative | 137 | |:---|---:|---:|---:|---:| 138 | | `EAX` | 0.126 ± 0.006 | 0.122 | 0.143 | 1.81 ± 0.12 | 139 | | `GCM` | 0.113 ± 0.004 | 0.110 | 0.125 | 1.63 ± 0.10 | 140 | | `OCB1` | 0.106 ± 0.004 | 0.101 | 0.118 | 1.52 ± 0.10 | 141 | | `OCB3` | 0.086 ± 0.005 | 0.081 | 0.104 | 1.24 ± 0.09 | 142 | | `MGM` | 0.332 ± 0.005 | 0.329 | 0.342 | 4.78 ± 0.26 | 143 | | `CCM` | 0.127 ± 0.016 | 0.117 | 0.178 | 1.82 ± 0.24 | 144 | | `CBC` | 0.085 ± 0.008 | 0.079 | 0.108 | 1.22 ± 0.12 | 145 | | `CFB` | 0.094 ± 0.017 | 0.071 | 0.137 | 1.35 ± 0.25 | 146 | | `CFB-8` | 0.657 ± 0.009 | 0.648 | 0.678 | 9.43 ± 0.51 | 147 | | `CTR` | 0.070 ± 0.004 | 0.067 | 0.084 | 1.00 | 148 | | `ECB` [obsolete] | 0.080 ± 0.005 | 0.076 | 0.096 | 1.15 ± 0.09 | 149 | | `IGE` | 0.093 ± 0.003 | 0.090 | 0.106 | 1.34 ± 0.08 | 150 | | `OFB` | 0.070 ± 0.004 | 0.067 | 0.083 | 1.01 ± 0.08 | 151 | 152 | - **Key Length:** 153 | 154 | | Command | Mean [s] | Min [s] | Max [s] | Relative | 155 | |:---|---:|---:|---:|---:| 156 | | `AES128` | 0.072 ± 0.003 | 0.069 | 0.078 | 1.00 | 157 | | `AES192` | 0.077 ± 0.006 | 0.073 | 0.092 | 1.07 ± 0.09 | 158 | | `AES256` | 0.085 ± 0.007 | 0.079 | 0.103 | 1.18 ± 0.11 | 159 | 160 | - **Message Digest:** 161 | 162 | | Command | Mean [s] | Min [s] | Max [s] | Relative | 163 | |:---|---:|---:|---:|---:| 164 | | `BLAKE2B256` | 0.054 ± 0.005 | 0.051 | 0.072 | 1.40 ± 0.22 | 165 | | `BLAKE2B512` | 0.055 ± 0.006 | 0.050 | 0.071 | 1.43 ± 0.24 | 166 | | `BLAKE2S128` | 0.040 ± 0.005 | 0.036 | 0.055 | 1.05 ± 0.19 | 167 | | `BLAKE2S256` | 0.042 ± 0.006 | 0.036 | 0.065 | 1.08 ± 0.21 | 168 | | `BLAKE3` | 0.050 ± 0.005 | 0.047 | 0.075 | 1.31 ± 0.22 | 169 | | `BMW` | 0.073 ± 0.004 | 0.070 | 0.091 | 1.89 ± 0.26 | 170 | | `CubeHash256` | 0.121 ± 0.005 | 0.117 | 0.135 | 3.13 ± 0.43 | 171 | | `CubeHash512` | 0.153 ± 0.006 | 0.149 | 0.174 | 3.96 ± 0.54 | 172 | | `ECHO224` | 0.158 ± 0.003 | 0.156 | 0.169 | 4.10 ± 0.54 | 173 | | `ECHO256` | 0.160 ± 0.006 | 0.157 | 0.179 | 4.14 ± 0.56 | 174 | | `ECHO384` | 0.266 ± 0.004 | 0.263 | 0.278 | 6.90 ± 0.91 | 175 | | `ECHO512` | 0.266 ± 0.003 | 0.264 | 0.273 | 6.89 ± 0.90 | 176 | | `ESCH256` | 0.107 ± 0.003 | 0.105 | 0.116 | 2.77 ± 0.37 | 177 | | `ESCH384` | 0.148 ± 0.003 | 0.145 | 0.155 | 3.83 ± 0.51 | 178 | | `Fugue224` | 0.080 ± 0.008 | 0.077 | 0.122 | 2.07 ± 0.34 | 179 | | `Fugue256` | 0.080 ± 0.003 | 0.077 | 0.091 | 2.06 ± 0.28 | 180 | | `Fugue384` | 0.104 ± 0.007 | 0.101 | 0.133 | 2.70 ± 0.40 | 181 | | `Fugue512` | 0.126 ± 0.002 | 0.124 | 0.132 | 3.27 ± 0.43 | 182 | | `GOST94` | 0.690 ± 0.056 | 0.658 | 0.817 | 17.86 ± 2.75 | 183 | | `Groestl` | 0.151 ± 0.030 | 0.140 | 0.274 | 3.91 ± 0.94 | 184 | | `Hamsi224` | 0.086 ± 0.003 | 0.084 | 0.099 | 2.24 ± 0.31 | 185 | | `Hamsi256` | 0.087 ± 0.004 | 0.084 | 0.100 | 2.25 ± 0.31 | 186 | | `Hamsi384` | 0.164 ± 0.005 | 0.160 | 0.182 | 4.24 ± 0.57 | 187 | | `Hamsi512` | 0.163 ± 0.002 | 0.160 | 0.165 | 4.22 ± 0.55 | 188 | | `JH` | 0.366 ± 0.007 | 0.361 | 0.385 | 9.48 ± 1.25 | 189 | | `Keccak256` | 0.072 ± 0.005 | 0.069 | 0.094 | 1.87 ± 0.28 | 190 | | `Keccak512` | 0.109 ± 0.007 | 0.105 | 0.129 | 2.83 ± 0.41 | 191 | | `Kupyna256` | 0.887 ± 0.012 | 0.873 | 0.914 | 22.98 ± 3.02 | 192 | | `Kupyna384` | 0.569 ± 0.022 | 0.556 | 0.614 | 14.75 ± 2.01 | 193 | | `Kupyna512` | 0.566 ± 0.008 | 0.556 | 0.581 | 14.65 ± 1.93 | 194 | | `LSH224` | 0.055 ± 0.005 | 0.052 | 0.075 | 1.43 ± 0.22 | 195 | | `LSH256` | 0.057 ± 0.005 | 0.052 | 0.071 | 1.47 ± 0.23 | 196 | | `LSH384` | 0.058 ± 0.007 | 0.052 | 0.084 | 1.50 ± 0.27 | 197 | | `LSH512` | 0.123 ± 0.010 | 0.112 | 0.148 | 3.18 ± 0.49 | 198 | | `Luffa224` | 0.057 ± 0.004 | 0.054 | 0.078 | 1.47 ± 0.22 | 199 | | `Luffa256` | 0.056 ± 0.004 | 0.054 | 0.075 | 1.46 ± 0.22 | 200 | | `Luffa384` | 0.069 ± 0.010 | 0.062 | 0.109 | 1.78 ± 0.34 | 201 | | `Luffa512` | 0.075 ± 0.005 | 0.072 | 0.099 | 1.94 ± 0.28 | 202 | | `MD4` | 0.043 ± 0.007 | 0.037 | 0.065 | 1.13 ± 0.23 | 203 | | `MD5` | 0.041 ± 0.007 | 0.032 | 0.065 | 1.06 ± 0.23 | 204 | | `RMD128` | 0.051 ± 0.007 | 0.046 | 0.070 | 1.32 ± 0.24 | 205 | | `RMD160` | 0.054 ± 0.006 | 0.051 | 0.083 | 1.41 ± 0.25 | 206 | | `RMD256` | 0.050 ± 0.005 | 0.046 | 0.063 | 1.29 ± 0.21 | 207 | | `SHA1` | 0.041 ± 0.007 | 0.032 | 0.067 | 1.06 ± 0.24 | 208 | | `SHA224` | 0.047 ± 0.007 | 0.039 | 0.078 | 1.21 ± 0.25 | 209 | | `SHA256` | 0.055 ± 0.017 | 0.039 | 0.095 | 1.43 ± 0.47 | 210 | | `SHA3-224` | 0.070 ± 0.004 | 0.067 | 0.083 | 1.81 ± 0.26 | 211 | | `SHA3-256` | 0.075 ± 0.009 | 0.069 | 0.108 | 1.94 ± 0.35 | 212 | | `SHA3-384` | 0.095 ± 0.024 | 0.082 | 0.176 | 2.45 ± 0.71 | 213 | | `SHA3-512` | 0.108 ± 0.004 | 0.105 | 0.119 | 2.81 ± 0.38 | 214 | | `SHA384` | 0.109 ± 0.027 | 0.073 | 0.198 | 2.83 ± 0.80 | 215 | | `SHA512-256` | 0.076 ± 0.005 | 0.072 | 0.090 | 1.96 ± 0.28 | 216 | | `SHA512` | 0.075 ± 0.004 | 0.072 | 0.088 | 1.94 ± 0.27 | 217 | | `SIMD224` | 0.114 ± 0.007 | 0.111 | 0.146 | 2.95 ± 0.43 | 218 | | `SIMD256` | 0.115 ± 0.006 | 0.112 | 0.138 | 2.98 ± 0.42 | 219 | | `SIMD384` | 0.138 ± 0.004 | 0.135 | 0.147 | 3.57 ± 0.48 | 220 | | `SIMD512` | 0.137 ± 0.003 | 0.135 | 0.146 | 3.55 ± 0.47 | 221 | | `SM3` | 0.045 ± 0.005 | 0.040 | 0.060 | 1.17 ± 0.21 | 222 | | `Shavite224` | 0.072 ± 0.002 | 0.070 | 0.082 | 1.88 ± 0.25 | 223 | | `Shavite256` | 0.073 ± 0.003 | 0.070 | 0.083 | 1.88 ± 0.25 | 224 | | `Shavite384` | 0.099 ± 0.006 | 0.096 | 0.124 | 2.56 ± 0.36 | 225 | | `Shavite512` | 0.099 ± 0.004 | 0.096 | 0.114 | 2.56 ± 0.35 | 226 | | `SipHash128` | 0.039 ± 0.005 | 0.032 | 0.054 | 1.00 | 227 | | `SipHash64` | 0.040 ± 0.006 | 0.032 | 0.072 | 1.02 ± 0.21 | 228 | | `Skein256` | 0.068 ± 0.005 | 0.065 | 0.091 | 1.76 ± 0.27 | 229 | | `Skein512` | 0.069 ± 0.007 | 0.065 | 0.101 | 1.78 ± 0.30 | 230 | | `Streebog256` | 0.575 ± 0.004 | 0.570 | 0.581 | 14.88 ± 1.95 | 231 | | `Streebog512` | 0.573 ± 0.004 | 0.569 | 0.582 | 14.83 ± 1.94 | 232 | | `Tiger2` | 0.052 ± 0.005 | 0.049 | 0.075 | 1.35 ± 0.23 | 233 | | `Tiger` | 0.052 ± 0.005 | 0.048 | 0.067 | 1.35 ± 0.22 | 234 | | `Whirlpool` | 0.297 ± 0.006 | 0.292 | 0.311 | 7.68 ± 1.02 | 235 | | `Xoodyak` | 0.079 ± 0.008 | 0.075 | 0.115 | 2.04 ± 0.33 | 236 | 237 | - **Message Authentication Code:** 238 | 239 | | Command | Mean [s] | Min [s] | Max [s] | Relative | 240 | |:---|---:|---:|---:|---:| 241 | | `CMAC (AES)` | 0.066 ± 0.004 | 0.063 | 0.079 | 1.70 ± 0.28 | 242 | | `Chaskey` | 0.046 ± 0.006 | 0.040 | 0.058 | 1.18 ± 0.23 | 243 | | `GMAC (AES)` | 0.072 ± 0.007 | 0.067 | 0.095 | 1.85 ± 0.33 | 244 | | `GOST` | 0.089 ± 0.005 | 0.085 | 0.107 | 2.27 ± 0.37 | 245 | | `HMAC (SHA256)` | 0.045 ± 0.007 | 0.040 | 0.078 | 1.16 ± 0.26 | 246 | | `MGMAC (AES)` | 0.236 ± 0.003 | 0.234 | 0.245 | 6.06 ± 0.92 | 247 | | `PMAC (AES)` | 0.073 ± 0.004 | 0.070 | 0.086 | 1.87 ± 0.30 | 248 | | `Poly1305` | 0.046 ± 0.004 | 0.042 | 0.059 | 1.19 ± 0.21 | 249 | | `SipHash128` | 0.040 ± 0.007 | 0.032 | 0.070 | 1.03 ± 0.24 | 250 | | `SipHash64` | 0.039 ± 0.006 | 0.033 | 0.065 | 1.00 | 251 | | `Skein` | 0.055 ± 0.005 | 0.051 | 0.066 | 1.41 ± 0.25 | 252 | | `VMAC (AES)` | 0.328 ± 0.009 | 0.323 | 0.353 | 8.42 ± 1.29 | 253 | | `Xoodyak` | 0.077 ± 0.004 | 0.075 | 0.090 | 1.98 ± 0.31 | 254 | | `ZUC-128` | 0.108 ± 0.005 | 0.104 | 0.120 | 2.79 ± 0.44 | 255 | | `ZUC-256` | 0.369 ± 0.005 | 0.364 | 0.381 | 9.47 ± 1.44 | 256 | 257 | - **Experimental:** 258 | 259 | | Command | Mean [s] | Min [s] | Max [s] | Relative | 260 | |:---|---:|---:|---:|---:| 261 | | `Ascon v1.2` | 0.457 ± 0.021 | 0.426 | 0.483 | 1.04 ± 0.05 | 262 | | `Grain128AEAD` | 1.202 ± 0.015 | 1.182 | 1.228 | 2.73 ± 0.04 | 263 | | `Grain128a` | 0.441 ± 0.002 | 0.438 | 0.445 | 1.00 | 264 | | `Xoodyak v2` | 0.742 ± 0.023 | 0.705 | 0.766 | 1.68 ± 0.05 | 265 | 266 | -------------------------------------------------------------------------------- /cmd/edgetk/README.md: -------------------------------------------------------------------------------- 1 | ## Abstract 2 | 3 | ### Proposed Title: 4 | *EDGETk: A Comprehensive Toolkit for Cryptographic Primitives and Protocols* 5 | 6 | This paper introduces the EDGE Toolkit (EDGETk), a hybrid, cross-platform environment for symmetric and asymmetric cryptography and related protocols, designed for secure use in small-scale or embedded systems. EDGETk implements over 140 cryptographic algorithms, including symmetric ciphers, message authentication, password-based key derivation, recursive hashing, digital signatures, X.509 certificate chains, and secure communication layers (TLS 1.3, TLCP). It also supports elliptic curves in Weierstrass, Twisted Edwards, and Montgomery forms, along with both classical and modern cryptographic schemes (RSA, ECDSA, EdDSA, GOST, BLS12‑381 curves, etc.). 7 | 8 | The toolkit has been evaluated across various platforms (Windows, Linux, FreeBSD, ARM, x86), with a focus on performance requirements, formal security (e.g., zero-knowledge proofs, verified cryptographic relations), and compliance with international standards. 9 | 10 | ### Key Contributions: 11 | 12 | - Development of a non-interactive Schnorr-like zero-knowledge proof of private key knowledge, integrated into the toolkit and usable with bilinear pairings as a building block for IBE/IBS schemes and authentication mechanisms. 13 | 14 | - Full implementation of over 140 cryptographic primitives—ranging from basic to advanced—including symmetric and asymmetric encryption, hashing, authentication, key derivation, and digital signatures, providing flexibility for a wide range of security scenarios. 15 | 16 | - Support for multiple families of elliptic curves (Weierstrass, Twisted Edwards, Montgomery), including parameter sets aligned with international standards (BLS12‑381, GOST R 34.10, SM2), enabling global adoption and interoperability. 17 | 18 | - Cross-platform design optimized for constrained environments (embedded/IoT), with integrated secure communication layers (TLS 1.3, TLCP) and support for standard certificate formats (X.509, CSRs, CRLs). 19 | 20 | - Open licensing and accessible documentation, with a public repository, allowing for third-party audits, community contributions, and future certification under ISO/IEC, NIST, or other standards. 21 | 22 | --- 23 | 24 | ## 1. Introduction 25 | 26 | With the growing demand for secure communication in connected devices—especially in embedded systems—comes the need for lightweight, auditable cryptographic toolkits that align with modern security standards. EDGETk emerges in this context as a practical and robust solution, consolidating a wide range of cryptographic primitives and protocols into a single, cross-platform suite focused on interoperability, performance, and formal security. 27 | 28 | --- 29 | 30 | ## 2. Methodology 31 | 32 | EDGETk has been analyzed and validated through: 33 | 34 | - Testing across multiple platforms (Windows, Linux, FreeBSD, ARM); 35 | - Cross-verification for interoperability with OpenSSL, LibreSSL, GmSSL, etc.; 36 | - Manual and automated formal verification of cryptographic correctness; 37 | - Performance benchmarking on 32- and 64-bit architectures; 38 | - Compliance verification with cryptographic standards (RFCs, ISO, NIST). 39 | 40 | --- 41 | 42 | ## 3. Toolkit Architecture 43 | 44 | EDGETk is structured as a single command-line executable with minimal external dependencies. It provides: 45 | 46 | - Multiple I/O formats (raw, hex, PEM, DER); 47 | - Granular algorithm and mode selection; 48 | - Shell scripting and automation support; 49 | - Offline or real-time operation (via embedded server); 50 | - POSIX-compatible APIs suitable for embedded systems. 51 | 52 | --- 53 | 54 | ## 4. Implemented Cryptographic Primitives 55 | 56 | ### 4.1 Symmetric Cryptography 57 | 58 | #### Stream Ciphers 59 | - **AEAD:** Ascon, ChaCha20Poly1305, ZUC-128/256, Grain128a. 60 | - **Classic:** Salsa20, HC-128/256, RC4, Rabbit, Spritz, Trivium. 61 | 62 | #### Block Ciphers 63 | - **64-bit:** Blowfish, CAST5, Misty1, HIGHT, PRESENT, etc. 64 | - **128-bit:** AES, Camellia, ARIA, LEA, Twofish, Serpent, SM4, etc. 65 | - **256-bit and above:** Kalyna256/512, SHACAL-2, Threefish (256, 512, 1024). 66 | - **Modes:** GCM, OCB, CCM, MGM, EAX, CBC, CFB, CTR, IGE, SIV. 67 | 68 | --- 69 | 70 | ### 4.2 Asymmetric Cryptography 71 | 72 | - **Digital Signatures:** ECDSA, EdDSA, BIP0340, GOST R 34.10, SM2, RSA, SLH-DSA, ML-DSA, etc. 73 | - **Key Exchange:** X25519, Curve448, ECDH, SM2, NUMS, BLS12-381, ML-KEM. 74 | - **Public-key Encryption:** RSA, SM2, ElGamal, EC-ElGamal, IBE schemes. 75 | 76 | --- 77 | 78 | ### 4.3 Elliptic Curves 79 | 80 | - **Weierstrass:** secp256r1, secp384r1, brainpool, SM2, GOST, etc. 81 | - **Twisted Edwards:** Ed25519, GOST-A, NUMS-TE. 82 | - **Montgomery:** Curve25519/X25519, Curve448. 83 | - **Pairing-Friendly:** BLS12-381, BN256. 84 | - **Others:** NUMS, Tom256/384, Koblitz (secp256k1), ANSSI. 85 | 86 | --- 87 | 88 | ### 4.4 Hash Functions 89 | 90 | - **SHA Family:** SHA-1, SHA-2, SHA-3, SHAKE. 91 | - **Modern Hashes:** BLAKE2b/s, BLAKE3, Streebog, Skein, Kupyna, Whirlpool, BMW, MD6, etc. 92 | - **Legacy (compatibility only):** MD5, RIPEMD, GOST94, HAS-160. 93 | 94 | --- 95 | 96 | ### 4.5 Key Derivation and Storage 97 | 98 | - **Key Derivation:** PBKDF2, HKDF, Argon2, scrypt, Lyra2, GOST, BLAKE3. 99 | - **MACs and Authenticated Hashes:** CMAC, VMAC, PMAC, HMAC, Poly1305, SipHash, Xoodyak, etc. 100 | 101 | --- 102 | 103 | ## 5. Supported Cryptographic Protocols 104 | 105 | ### 5.1 TLS 1.3 and TLCP 106 | 107 | - Built-in support for full handshake clients and servers. 108 | - TLS/TLCP available via command-line interface. 109 | - Compatible with SM2/SM3/SM4 and standard NIST curves. 110 | 111 | ### 5.2 Public Key Infrastructure (PKI) 112 | 113 | - Generation and parsing of: 114 | - X.509 certificates (PEM/DER); 115 | - Certificate Revocation Lists (CRLs); 116 | - Certificate Signing Requests (CSRs). 117 | - Compatible with OpenSSL and other PKI tools. 118 | 119 | ### 5.3 Identity- and Signature-Based on Bilinear Pairings 120 | 121 | EDGETk implements several IBE/IBS schemes: 122 | 123 | | Scheme | Type | Private Group | Public Group | 124 | |--------------------|:----:|:-------------:|:------------:| 125 | | Boneh-Franklin | IBE | G1 | G2 | 126 | | Boneh-Boyen | IBE | G2 | G1 | 127 | | Sakai-Kasahara | IBE | G2 | G1 | 128 | | Barreto et al. | IBS | G1 | G2 | 129 | | Cha-Cheon | IBS | G1 | G2 | 130 | | Galindo-Garcia | IBS | G1 | G1 | 131 | | Hess (default) | IBS | G1 | G2 | 132 | 133 | Additionally, EDGETk features: 134 | 135 | - **Non-interactive Schnorr-like Zero-Knowledge Proofs** of private key knowledge over pairing groups; 136 | - Reusable components for authentication systems and decentralized identity (DID). 137 | 138 | --- 139 | 140 | ## 6. Experimental Evaluation 141 | 142 | EDGETk’s performance was benchmarked across: 143 | 144 | - **Platforms:** Windows, Linux, FreeBSD, ARMv7, ARM Cortex-M, x86_64; 145 | - **Metrics:** execution time, memory usage, cryptographic throughput; 146 | - **Results:** excellent performance on embedded devices (e.g., Raspberry Pi Zero), with a binary footprint under 1MB on ARM systems. 147 | 148 | --- 149 | 150 | ## 7. Use Cases 151 | 152 | - **End-to-end encryption in embedded systems** (e.g., IoT sensors using TLS 1.3); 153 | - **Decentralized infrastructures** using identity-based signatures; 154 | - **Cryptographic audits** of curves, hashes, and certificates; 155 | - **Compliance with national and international standards** (Chinese SMx, Russian GOST, NIST, etc.). 156 | 157 | --- 158 | 159 | ## 8. Conclusion 160 | 161 | EDGETk stands out as a powerful and flexible toolkit for developers, researchers, and security engineers who require a reliable environment to test, integrate, or validate cryptographic primitives. Its cross-platform architecture, extensive algorithmic support, and emphasis on formal correctness make it well-suited for modern applications demanding high assurance, performance, and compliance. 162 | 163 | --- 164 | 165 | ## References 166 | 167 | - Africacrypt 2009: Galindo-Garcia Identity-Based Signature (IBS) 168 | - Anubis Involutional SPN 128-bit block cipher (Barreto, ESAT/COSIC) 169 | - Asiacrypt 2001: Short Signatures from the Weil Pairing (BLS) 170 | - Asiacrypt 2005: Barreto Identity-Based Signature (IBS) 171 | - BSI TR-03111 Elliptic Curve Cryptography (ECC) Technical Guideline 172 | - CHASKEY Message Authentication Code (Nicky Mouha, ESAT/COSIC) 173 | - CubeHash and SipHash64/128 (Daniel J. Bernstein & JP Aumasson) 174 | - CRYPTO 1999: IND-CCA2 Fujisaki-Okamoto Transformation (IBE) 175 | - CRYPTO 2001: Boneh-Franklin Identity-Based Encryption (IBE) 176 | - DSTU 7564:2014 A New Standard of Ukraine: The Kupyna Hash Function 177 | - DSTU 7624:2014 A Encryption Standard of Ukraine: Kalyna Block Cipher 178 | - Eurocrypt 1996: Security Proofs for Signature Schemes (EUF-CMA ElGamal) 179 | - Eurocrypt 2004: Boneh-Boyen Identity-Based Encryption (IBE) 180 | - GB/T 32907-2016 - SM4 128-bit Block Cipher 181 | - GB/T 32918.4-2016 SM2 Elliptic Curve Asymmetric Encryption 182 | - GB/T 38636-2020 - Transport Layer Cryptography Protocol (TLCP) 183 | - GM/T 0001-2012 ZUC Zu Chongzhi Stream cipher 128/256-bit key 184 | - GM/T 0002-2012 SM4 Block cipher with 128-bit key 185 | - GM/T 0003-2012 SM2 Public key algorithm 256-bit 186 | - GM/T 0004-2012 SM3 Message digest algorithm 256-bit hash value 187 | - GM/T 0044-2016 SM9 Public key algorithm 256-bit 188 | - GM/T 0086-2020 Specification of key management system based on SM9 189 | - GOST 28147-89 64-bit block cipher (RFC 5830) 190 | - GOST R 34.10-2012 VKO key agreement function (RFC 7836) 191 | - GOST R 34.10-2012 public key signature function (RFC 7091) 192 | - GOST R 34.11-2012 Streebog hash function (RFC 6986) 193 | - GOST R 34.11-94 CryptoPro hash function (RFC 5831) 194 | - GOST R 34.12-2015 128-bit block cipher Kuznechik (RFC 7801) 195 | - GOST R 34.12-2015 64-bit block cipher Magma (RFC 8891) 196 | - GOST R 50.1.114-2016 GOST R 34.10-2012 and GOST R 34.11-2012 197 | - HC-128 Stream Cipher simplified version of HC-256 (Wu, ESAT/COSIC) 198 | - IGE (Infinite Garble Extension) Mode of Operation for Block ciphers 199 | - ISO/IEC 10118-3:2003 RIPEMD128/160/256 and Whirlpool (ESAT/COSIC) 200 | - ISO/IEC 18033-3:2010 HIGHT, SEED, Camellia and MISTY1 Block ciphers 201 | - ISO/IEC 18033-4:2011 KCipher-2 stream cipher (RFC 7008) 202 | - ISO/IEC 29192-3:2012 Trivium Stream cipher with 80-bit key 203 | - ISO/IEC 18033-5:2015 IBE - Identity-based Encryption Mechanisms 204 | - ISO/IEC 18033-5:2015/Amd.1:2021(E) SM9 Mechanism 205 | - ISO/IEC 14888-3:2018 EC-SDSA Schnorr-based Signature Scheme 206 | - ISO/IEC 29192-2:2019 PRESENT, CLEFIA and LEA block ciphers 207 | - ISO/IEC 15946-5:2022 Barreto-Naehrig and Barreto-Lynn-Scott Curves 208 | - KS X 1213-1 ARIA 128-bit block cipher with 128/192/256-bit keys 209 | - KS X 3246 LEA - Lightweight Encryption Algorithm (TTAK.KO-12.0223) 210 | - KS X 3262 LSH - A New Fast Secure Hash Function Family (in Korean) 211 | - LNCS 1838 - A One Round Protocol for Tripartite Diffie-Hellman 212 | - NIST SP800-186 X25519 Diffie-Hellman (OpenSSL compliant) 213 | - NIST SP800-38D GCM AEAD mode for 128-bit block ciphers (RFC 5288) 214 | - NIST SP800-232 Ascon-Based Lightweight Cryptography Standard 215 | - PKC 2003: Cha-Cheon Identity-Based Signature (IBS) 216 | - RFC 1423: Privacy Enhancement for Internet Electronic Mail 217 | - RFC 2104: HMAC - Keyed-Hashing for Message Authentication 218 | - RFC 2144: CAST-128 64-bit Block cipher with 128-bit key 219 | - RFC 2612: The CAST-256 Encryption Algorithm 220 | - RFC 3610: Counter with CBC-MAC Mode of Operation (CCM Mode) 221 | - RFC 4009: The SEED Encryption Algorithm (KISA) 222 | - RFC 4253: Serpent 128-bit Block cipher with 128/192/256-bit keys 223 | - RFC 4493: Cipher-based Message Authentication Code (CMAC) 224 | - RFC 4503: Rabbit Stream Cipher Algorithm with 128-bit key 225 | - RFC 4543: Galois Message Authentication Code (GMAC) 226 | - RFC 4764: EAX Authenticated-Encryption Mode of Operation 227 | - RFC 4648: Base16, Base32, and Base64 Data Encodings 228 | - RFC 5246: Transport Layer Security (TLS) Protocol Version 1.2 229 | - RFC 5280: Internet X.509 PKI Certificate Revocation List (CRL) 230 | - RFC 5297: Synthetic Initialization Vector (SIV Mode) 231 | - RFC 5639: Elliptic Curve Cryptography (ECC) Brainpool Standard Curves 232 | - RFC 5869: HMAC-based Key Derivation Function (HKDF) 233 | - RFC 6114: The 128-Bit Blockcipher CLEFIA (Sony) 234 | - RFC 7008: KCipher-2 Encryption Algorithm (KDDI R&D Laboratories) 235 | - RFC 7253: OCB3 Offset Codebook Authenticated-Encryption Algorithm 236 | - RFC 7292: PKCS #12 Personal Information Exchange Syntax v1.1 237 | - RFC 7539: ChaCha20-Poly1305 AEAD Stream cipher 238 | - RFC 7693: The BLAKE2 Cryptographic Hash and MAC (JP Aumasson) 239 | - RFC 7748: Curve25519 and Curve448: Elliptic Curves for Security 240 | - RFC 7914: The Scrypt Password-Based Key Derivation Function 241 | - RFC 8032: Ed25519 Signature a.k.a. EdDSA (Daniel J. Bernstein) 242 | - RFC 8446: Transport Layer Security (TLS) Protocol Version 1.3 243 | - RFC 9058: MGM AEAD mode for 64 and 128 bit ciphers (E. Griboedova) 244 | - RFC 9367: GOST Cipher Suites for Transport Layer Security (TLS 1.3) 245 | - SAC 2002: Hess Efficient Identity Based Signature (IBS) 246 | - SBRC 2007: Curupira 96-bit block cipher with 96/144/192-bit keys 247 | - STB 34.101.31-2011 Belarusian standard (Bel-T) block cipher 248 | - STB 34.101.45-2013 Belarusian BignV1 public key algorithhm 249 | - STB 34.101.77-2020 Belarusian standard BASH hash function 250 | - TTAS.KO-12.0004/R1 128-bit Block Cipher SEED (ISO/IEC 18033-3:2010) 251 | - TTAS.KO-12.0040/R1 64-bit Block Cipher HIGHT (ISO/IEC 18033-3:2010) 252 | - TTAS.KO-12.0011/R2 HAS-160 Korean-standardized hash algorithm 253 | - TTAK.KO-12.0015/R3 EC-KCDSA Korean Digital Signature Algorithm 254 | - TTAK.KO-12.0223 LEA 128-bit block cipher (ISO/IEC 29192-2:2019) 255 | - TTAK.KO-12.0276 LSH Message digest algorithm (KS X 3262) 256 | - US FIPS 197 Advanced Encryption Standard (AES) 257 | - US FIPS 180-2 Secure Hash Standard (SHS) SHA1 and SHA2 Algorithms 258 | - US FIPS 202 SHA-3 Permutation-Based Hash (instance of the Keccak) 259 | - US FIPS 203 Module-Lattice-Based Key-Encapsulation Mechanism (ML-KEM) 260 | - US FIPS 204 Module-Lattice-Based Digital Signature Standard (ML-DSA) 261 | - US FIPS 205 Stateless Hash-Based Digital Signature Standard (SLH-DSA) 262 | 263 |
266 | The EDGETk toolkit was developed by a security engineer and includes over 140 widely recognized cryptographic algorithms. Despite not having undergone a formal third-party audit yet, its correctness and security posture can be reasonably assured based on several strong indicators: 267 |
268 | 269 |289 | While independent auditing remains an important future milestone, the high degree of compatibility, adherence to international standards, and deterministic behavior across platforms provide strong practical evidence of correctness and reliability in EDGETk's cryptographic implementations. 290 |
291 | -------------------------------------------------------------------------------- /go.sum: -------------------------------------------------------------------------------- 1 | gitee.com/Trisia/gotlcp v1.3.17 h1:t51XKujH5kXmCXwj13FswtlTDTk1PX5mg6ttx978j8o= 2 | gitee.com/Trisia/gotlcp v1.3.17/go.mod h1:qHAmzaW5L1B4YidGzCgGx8k8ai3+djcZ0kGrOmGVXpU= 3 | github.com/RyuaNerin/elliptic2 v1.0.0 h1:xuqrsvIXvT35maN5uiQV56TPZ/RQ+UhDF+fRFToDeJg= 4 | github.com/RyuaNerin/elliptic2 v1.0.0/go.mod h1:wWB8fWrJI/6EPJkyV/r1Rj0hxUgrusmqSj8JN6yNf/A= 5 | github.com/RyuaNerin/go-krypto v1.3.0 h1:smavTzSMAx8iuVlGb4pEwl9MD2qicqMzuXR2QWp2/Pg= 6 | github.com/RyuaNerin/go-krypto v1.3.0/go.mod h1:9R9TU936laAIqAmjcHo/LsaXYOZlymudOAxjaBf62UM= 7 | github.com/RyuaNerin/testingutil v0.1.0 h1:IYT6JL57RV3U2ml3dLHZsVtPOP6yNK7WUVdzzlpNrss= 8 | github.com/RyuaNerin/testingutil v0.1.0/go.mod h1:yTqj6Ta/ycHMPJHRyO12Mz3VrvTloWOsy23WOZH19AA= 9 | github.com/codahale/makwa v0.0.0-20141227225204-3dbfaeed5fdb h1:8p7p0keqd2EGoESuU78k+Cxm4X/3awlzMl7nsPoDvnw= 10 | github.com/codahale/makwa v0.0.0-20141227225204-3dbfaeed5fdb/go.mod h1:4B/sRpOorAPzUAhh6hjHBmsImbVGoM6+GnZDs1qmZ3k= 11 | github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= 12 | github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= 13 | github.com/deatil/go-cryptobin v1.0.4018 h1:nEnp6OctddN68zbWmq6faJ082JDzxwfemxzrffGEegY= 14 | github.com/deatil/go-cryptobin v1.0.4018/go.mod h1:N039cMpRk2+cxODj6Y1TfEPw2Q/AZoItzU2LT7VRbbg= 15 | github.com/emmansun/certinfo v0.1.0 h1:f3xgzFHjGkeEKUysCuofc8UOyYqRNP9LIWZa5o1Dz1U= 16 | github.com/emmansun/certinfo v0.1.0/go.mod h1:nS7ylLEXORr7PEZRhAl/qbxI3YKHuc2ZRKKpK2BV72Q= 17 | github.com/emmansun/gmsm v0.32.0 h1:MWgIRM/EKR4heOr7nXA5ylpfWfObgQkhb8qCamkQAd0= 18 | github.com/emmansun/gmsm v0.32.0/go.mod h1:NtH8X3s0ywBIICiOHD6Jj6P4brHHN6qUOI/nSK/x1jQ= 19 | github.com/emmansun/go-pkcs12 v0.3.0 h1:Z6aEkN2cOFIBptkWaItZiBkpFTwAdMIVQ+rTska3eT4= 20 | github.com/emmansun/go-pkcs12 v0.3.0/go.mod h1:YzC1HYqbo4fKiK4REz/2roIIAQ7iL1ZrdCZJ3XBjD94= 21 | github.com/google/go-cmp v0.6.0/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= 22 | github.com/kasperdi/SPHINCSPLUS-golang v0.0.0-20231223193046-84468b93f7e9 h1:G8fshCtNb60L5IM2tuYD81uh6YQFqJ78MAGUCMks7Bg= 23 | github.com/kasperdi/SPHINCSPLUS-golang v0.0.0-20231223193046-84468b93f7e9/go.mod h1:XWeSWo+UqzMi1uh/Td/gKlVHaPQjUj92s3omn7eccUM= 24 | github.com/klauspost/cpuid/v2 v2.0.12 h1:p9dKCg8i4gmOxtv35DvrYoWqYzQrvEVdjQ762Y0OqZE= 25 | github.com/klauspost/cpuid/v2 v2.0.12/go.mod h1:g2LTdtYhdyuGPqyWyv7qRAmj1WBqxuObKfj5c0PQa7c= 26 | github.com/pedroalbanese/IGE-go v0.0.0-20140730194654-752bc7fd80fb h1:2GTkI6b/GaOzjZSB161w491QrxsHWpxV1FNr7ds+7Jc= 27 | github.com/pedroalbanese/IGE-go v0.0.0-20140730194654-752bc7fd80fb/go.mod h1:EnRxQQGUSvWsqNFSAtGSuyjJKl91Csy57sQ1atRV01k= 28 | github.com/pedroalbanese/anubis v0.0.1 h1:FRHSMyRuqoGqWnFj0ZOJ3cQmPZ5elkxRecHptbILX3w= 29 | github.com/pedroalbanese/anubis v0.0.1/go.mod h1:MMJog7ga594ydzm17Qzj8wIynFJmrp/gFzZIjdX/2fQ= 30 | github.com/pedroalbanese/bash v0.0.0-20240917213542-359ea9ed86ee h1:fEtvbAuD3pS89760fakRF1TMILzzUNP3hwXP1iRvWOM= 31 | github.com/pedroalbanese/bash v0.0.0-20240917213542-359ea9ed86ee/go.mod h1:NLb79U8xurLknGY14SmHMc6T5Zm+FrKXxQQP/ljmbno= 32 | github.com/pedroalbanese/belt v0.0.0-20240917222837-2f97e6235d6c h1:pYWtGpNSk0Dm0TuLaAoyW9BWr01jA/vBETn1ktUnjQQ= 33 | github.com/pedroalbanese/belt v0.0.0-20240917222837-2f97e6235d6c/go.mod h1:ujpAT/1mRF+xuzRCE3e6vqaNORb5bUsooxfOb74G66c= 34 | github.com/pedroalbanese/bign v0.0.0-20240918155826-90ccb6b122b9 h1:ZgsVqQ9slkgsbOUZ81wHkb0+WGJu1bcVIEQS62HX7GM= 35 | github.com/pedroalbanese/bign v0.0.0-20240918155826-90ccb6b122b9/go.mod h1:UJPuisyOGkYoVfs8ta0O7kMngLwkntg2En55cISTTsA= 36 | github.com/pedroalbanese/bip0340 v0.0.0-20250309175356-f4246d336869 h1:s8etgogfhrjDbqE1Ts/hrh2UFdoZ0EGq/4kCdkz9O0U= 37 | github.com/pedroalbanese/bip0340 v0.0.0-20250309175356-f4246d336869/go.mod h1:E96V3xC9SIYZtG5bBe26XNrD/Qr0ltit22OQt4qCfis= 38 | github.com/pedroalbanese/blake256 v0.0.0-20170713140427-6aca07c5447e h1:fQBIZ8P27Y4TAXoY3Y/+TDZhGJLDoRTyh1ctP/XgHZI= 39 | github.com/pedroalbanese/blake256 v0.0.0-20170713140427-6aca07c5447e/go.mod h1:5gQQeeXADClOkGWSusDk866hYd5wRPDwhMTFnD/dzG4= 40 | github.com/pedroalbanese/bls12381 v0.0.8 h1:zosxFxpH4EGlcq92ZlZ0MfHpBcPorb7l+87CyHpbic4= 41 | github.com/pedroalbanese/bls12381 v0.0.8/go.mod h1:el224rja+5DSTUGRp/u8dMT5S+JDPbvFVjPEi5QONTQ= 42 | github.com/pedroalbanese/bmw v0.0.0-20240608175405-99257887a774 h1:vULfXcjdqnehx2oeCXv26rKhUWhGwiBCNzYhYt0J9W0= 43 | github.com/pedroalbanese/bmw v0.0.0-20240608175405-99257887a774/go.mod h1:Rw6vKDOkrW6pl9uoO8ggkouF5UyP5DEBZrq+ee6L0V8= 44 | github.com/pedroalbanese/bmw256 v0.0.0-20240403151626-135f0d278f9f h1:YZBM8ykr/8ZfXTwjs9HoUwvLBuraOQWnCjtzKRnHpkE= 45 | github.com/pedroalbanese/bmw256 v0.0.0-20240403151626-135f0d278f9f/go.mod h1:Rc/1QLBTMe/hEi5B3whj43ET/GJeOZQSq+1Z6AOEPNA= 46 | github.com/pedroalbanese/bn256 v0.0.0-20241211180157-f48a503b4cc5 h1:LVOPzn3PduvLJAjXXUwrzIgD9VhAQ+NGNFIoW3rAcMA= 47 | github.com/pedroalbanese/bn256 v0.0.0-20241211180157-f48a503b4cc5/go.mod h1:Em2M+vuPGTmX2DDgxCWWokMC3cbzz3K8SO4bhZ4VbMs= 48 | github.com/pedroalbanese/brainpool v0.0.0-20220826183126-be5c94625a31 h1:/bvB70wSZaqS4L6TPKvKWCfw2WvFRhPzDGChLqnWsXM= 49 | github.com/pedroalbanese/brainpool v0.0.0-20220826183126-be5c94625a31/go.mod h1:mVfIsJq9zs0tLKHNxL3rzd7+jFP0B9/060JBx8PdMnM= 50 | github.com/pedroalbanese/camellia v0.0.0-20220911183557-30cc05c20118 h1:GJQwwzoQDXGcYO35ViGcG/A994BGB35/7dNoVW4Je8s= 51 | github.com/pedroalbanese/camellia v0.0.0-20220911183557-30cc05c20118/go.mod h1:V3wL7j9ikGCLRV2DMTQZnUqZQnGcQGEqpvTLE0ZcGY8= 52 | github.com/pedroalbanese/cast256 v0.0.0-20240325185652-e35cf700d5fe h1:1UuaurNAznpY2aqRKE90HzZ2crOVzCXsBUogXTO8D4s= 53 | github.com/pedroalbanese/cast256 v0.0.0-20240325185652-e35cf700d5fe/go.mod h1:YtTQJCJmrmPEW8OTlxD3zLFHzwJzw8XeVfO7LvgVwdE= 54 | github.com/pedroalbanese/cast5 v0.0.0-20220924202825-3e5c3c00277c h1:fKLoo18L3mIH1rIKyTqUmmDT8a0xRYN932G7fqVeZ1k= 55 | github.com/pedroalbanese/cast5 v0.0.0-20220924202825-3e5c3c00277c/go.mod h1:ta7SFMOyQjU4OMM+J+npSOLu6VT4J4ZiQ/a7Chfw8is= 56 | github.com/pedroalbanese/ccm v0.0.0-20230716211039-49b744fc07d4 h1:tCd+bQzK/S5XLD9BCugZiaPG0wgqYKKkDXdu9hAVty8= 57 | github.com/pedroalbanese/ccm v0.0.0-20230716211039-49b744fc07d4/go.mod h1:btc5wbjPbKknQqm4PX7KXV4Z2LDM8ykDUwLNO+MNPRc= 58 | github.com/pedroalbanese/cfb1 v0.0.1 h1:qwDH1SeUwfu/5J80rS9mtwynJBhxMBIOJ6z/0Zkr4/0= 59 | github.com/pedroalbanese/cfb1 v0.0.1/go.mod h1:uk0dfHN9DnVbA8n5orzVtOaUHyHiaWeJkbHgCaUqUso= 60 | github.com/pedroalbanese/cfb8 v0.0.0 h1:+jfeldix8MoUNIGRqE2aGS05kjOYWsBjphu/OdiZ0bU= 61 | github.com/pedroalbanese/cfb8 v0.0.0/go.mod h1:RQTDlvBNZIE7xaQuoiYIXYTxBR//B+HhEZpidQHFivY= 62 | github.com/pedroalbanese/cmac v0.0.0-20210429130952-a58975ec8f4c h1:mX7NRMOVOwh5IVth4a/wsF5ZSO8uAZ6/NNepa07u9jg= 63 | github.com/pedroalbanese/cmac v0.0.0-20210429130952-a58975ec8f4c/go.mod h1:5AAl1CY49A0PRTLlbGIOkmWLRyDY3c9WfBjdOWDGWww= 64 | github.com/pedroalbanese/crypto v0.0.0-20230125215802-8b7e99ecbad3 h1:4NrgC9fL8DwmiwNA1+I6Cs4LopxRoWEji0dB67sctBs= 65 | github.com/pedroalbanese/crypto v0.0.0-20230125215802-8b7e99ecbad3/go.mod h1:5cDdJVhbinbOlgaYbV5VCTcU+3BxpeGfWAGwyjoAcbg= 66 | github.com/pedroalbanese/crypton v0.0.0-20240325185448-da9f3c02e89e h1:OeHXNwyvz+hYHeHOAmU8T7XBMXGLhSCKOYC+ZldtqT8= 67 | github.com/pedroalbanese/crypton v0.0.0-20240325185448-da9f3c02e89e/go.mod h1:/yQQxddGTbb/ym/4TtEUT1cIu+qq/6mUIvNoY3QuQ8o= 68 | github.com/pedroalbanese/crystals-go v0.0.0-20240315230756-81011b679705 h1:4CLNJaE5LWdprM1sJ+8cCAU8NX83qA7jtJWSTtrcX4Y= 69 | github.com/pedroalbanese/crystals-go v0.0.0-20240315230756-81011b679705/go.mod h1:eQaDBF+TSsUrQDIzKrhRPR0tiS2wYsAiWzIP9W0GIRs= 70 | github.com/pedroalbanese/cubehash v0.0.0 h1:y9AhRV9uJx6tnGeoWg2eC91TkTsjRqsdxSQOpbubSlE= 71 | github.com/pedroalbanese/cubehash v0.0.0/go.mod h1:QqD7USkRZMUwdDsx0SR2EqgIpN8MZhtQuYMG8R9IqeI= 72 | github.com/pedroalbanese/cubehash256 v0.0.0-20240403151932-00980243a56a h1:asiodxOIQwslajkbCNdp9YXNgnu/gs8JrtSZqVfhF9w= 73 | github.com/pedroalbanese/cubehash256 v0.0.0-20240403151932-00980243a56a/go.mod h1:Z2BgPpFmhJNjGbN+Mn+w958d5AmribgkmBjUx8E1p1g= 74 | github.com/pedroalbanese/curupira1 v0.0.0-gama h1:PHGQGjgVn2ftBEJ07Az2a59X4a2hV+zgdvnXKXisdcE= 75 | github.com/pedroalbanese/curupira1 v0.0.0-gama/go.mod h1:gVwAY6kuZ75rbc23q1p9JEhJCW3ChiE/R58OMXFOCrw= 76 | github.com/pedroalbanese/curve448 v0.0.0-20240514173232-895b1c6c93a1 h1:BuZSs4ADd9EQniS4TgiTvKbGODpVauR08A4Dl2PHsV8= 77 | github.com/pedroalbanese/curve448 v0.0.0-20240514173232-895b1c6c93a1/go.mod h1:MjPWywlG0DzX9aN6H+axPhx/sVbkRrL1zPdUx+WM3K0= 78 | github.com/pedroalbanese/e2 v0.0.0-20240325185507-eef2e0916dc5 h1:FnMVMHfgzLncnoEynabLtFjcs/qyjWIk/Tfv73i71Wo= 79 | github.com/pedroalbanese/e2 v0.0.0-20240325185507-eef2e0916dc5/go.mod h1:Tr9cxhKAXoMqBPy3IJfkyKNNDpj7sBW1eShP7B5KsrQ= 80 | github.com/pedroalbanese/e521 v0.0.28 h1:iQQpTimx3YVvoFKy/DPukfSqj0V0dHD6YTJNiGuS8XM= 81 | github.com/pedroalbanese/e521 v0.0.28/go.mod h1:yVgnpFuuMFc86MqpZq3jGz+P45buIpDbL43/x4ux61Q= 82 | github.com/pedroalbanese/e521 v0.0.30 h1:LGnadPxE3L0F4nf3EH/NsxhSIz0QLTXTT3Z7CMcfxdc= 83 | github.com/pedroalbanese/e521 v0.0.30/go.mod h1:yVgnpFuuMFc86MqpZq3jGz+P45buIpDbL43/x4ux61Q= 84 | github.com/pedroalbanese/eac v0.0.0-20250428171516-10a5a5e733cd h1:TLkF+8dJM3wr/xiObfFFoSEaMJKmKK19+a+8ZQEjODU= 85 | github.com/pedroalbanese/eac v0.0.0-20250428171516-10a5a5e733cd/go.mod h1:HXHtHfhpogbbSC9Ne9RnLzLLcvuuaOlBbmqEZVcI80c= 86 | github.com/pedroalbanese/eax v0.0.0-20240629182935-b915af1b69bb h1:p34KMk32ZwGYzkwEHOl6wysS3ZujV5Pz0iE4QrWRoS0= 87 | github.com/pedroalbanese/eax v0.0.0-20240629182935-b915af1b69bb/go.mod h1:0CjgupJmGspryEr9zLAn0FpbD9AHy6m1L97mDkDQZ/Y= 88 | github.com/pedroalbanese/ecb v0.0.0-20220918174126-1a696b93ae2b h1:b+T06WpwxEPv4rTxVK64JxnEs0oLlJ0nifFdUDysVjw= 89 | github.com/pedroalbanese/ecb v0.0.0-20220918174126-1a696b93ae2b/go.mod h1:g/+SLuBiyj6xkBXvOu8P1LODdpuuxKHT20mrPXoWIec= 90 | github.com/pedroalbanese/ecgdsa v0.0.0-20250309172633-1e9ac31fec97 h1:ygVariisNu4LeGk6ZdrUoEcZUY35wqS3tmOBPBEzz0M= 91 | github.com/pedroalbanese/ecgdsa v0.0.0-20250309172633-1e9ac31fec97/go.mod h1:oOoAwgkrjZQg23DBcxZ8Xdmsp7cQmXT6vxZ6m+btDiI= 92 | github.com/pedroalbanese/echo v0.0.0-20240329160327-5e65f19de84b h1:Vu+SqFOWpvOTUapuxOAX1e0lU0FPQDSc37HrPYGd3cc= 93 | github.com/pedroalbanese/echo v0.0.0-20240329160327-5e65f19de84b/go.mod h1:U6NRfMc+286M97zvSQeCdj4M0neYRMvG8F1vTBeBzl8= 94 | github.com/pedroalbanese/ecsdsa v0.0.0-20250309175503-d735dfab325a h1:Sv9USdCBsEpNH5vtCtrFq4iIWorctwEhcHRhv7b1uqo= 95 | github.com/pedroalbanese/ecsdsa v0.0.0-20250309175503-d735dfab325a/go.mod h1:CpY75GPFxZm2YlF1m6JHL6Dj/ayE7HvEf8L3dvevlS4= 96 | github.com/pedroalbanese/esch v0.0.0-20240403151441-bc287e464d49 h1:BsvB9nLKqo0Qda65ifrLUi7kCFvDYOhZLPMFLuc74/8= 97 | github.com/pedroalbanese/esch v0.0.0-20240403151441-bc287e464d49/go.mod h1:9hCtNsTTKNYGLz1UEkcHjgjNaEDSm8TPV2raKU5n39U= 98 | github.com/pedroalbanese/frp256v1 v0.0.3 h1:z1SFNSEnwFPpzLcWi3uDEBW4L5FuV5ZBy4TUtnEJhiQ= 99 | github.com/pedroalbanese/frp256v1 v0.0.3/go.mod h1:SR4Hs4jO6qwp6ETOZfL5C1msUCU//1vkM+482MiBTRU= 100 | github.com/pedroalbanese/fugue v0.0.0-20240518170253-4e3af93fc75a h1:EYdKheliAveGcxZ90vZG7UO8iTU+aD0CJhuKA1gIN9s= 101 | github.com/pedroalbanese/fugue v0.0.0-20240518170253-4e3af93fc75a/go.mod h1:DpPiVXahBQyOpZv7OOS8sdr8QVevW54TgYZ91T1do94= 102 | github.com/pedroalbanese/gmac v0.0.0-20231030174635-9eb35b8b4542 h1:0tnk5HZQn7Fh/+9eapnUoRug1oYGEmnxnSMN18CfF/k= 103 | github.com/pedroalbanese/gmac v0.0.0-20231030174635-9eb35b8b4542/go.mod h1:BZB52OIvxtWiPNuWf4nYIDU+2zFAisdwdWNtYOn1Xqc= 104 | github.com/pedroalbanese/go-ascon v0.0.0-20240325185942-de83d7994a95 h1:neZv2pO//gMHXQ+22JpQMXpgRQRk25D/Upnt8tIY3yk= 105 | github.com/pedroalbanese/go-ascon v0.0.0-20240325185942-de83d7994a95/go.mod h1:EjAmbU3fA9mdAT8BGnLVNTR5rUYEpIG/VK056gJqv6E= 106 | github.com/pedroalbanese/go-chaskey v0.0.0-20230117155006-a9e41c18223c h1:Ji9KhJxym1GjLQ9eCRY9usH8wOXtJ/ZP+lIeA94YBQc= 107 | github.com/pedroalbanese/go-chaskey v0.0.0-20230117155006-a9e41c18223c/go.mod h1:5F8Scq4sW8D+yL/o8yrNT6R5PeamiYpW9DAu3i7kE6c= 108 | github.com/pedroalbanese/go-external-ip v0.0.0-20200601212049-c872357d968e h1:VUR1tH5e1MXJgiJNq+8kh8ztihi5/wrkuIEG4bmYpBU= 109 | github.com/pedroalbanese/go-external-ip v0.0.0-20200601212049-c872357d968e/go.mod h1:SvmxrS/2giIWAuUE60MY8tf9mgI0gBLc1Q1W4juTans= 110 | github.com/pedroalbanese/go-grain v0.0.0-20240325185755-73b4f13ea6bc h1:0i9CwHS0m0ryTTv7LYOsg17ylUHy208mD+ibBo+RCFc= 111 | github.com/pedroalbanese/go-grain v0.0.0-20240325185755-73b4f13ea6bc/go.mod h1:+ogFra2K6u0dQalD5NLSqArrqUgcayJYehhivn2+Pso= 112 | github.com/pedroalbanese/go-idea v0.0.0-20170306091226-d2fb45a411fb h1:DbXfqQlMrVOoCnlaUvadwU9wlmuEcTHD1AJjDzls5KI= 113 | github.com/pedroalbanese/go-idea v0.0.0-20170306091226-d2fb45a411fb/go.mod h1:MCFBIvwimQFbM99CHdVwTKr7PhaYgQpsK8zRRECmACk= 114 | github.com/pedroalbanese/go-kcipher2 v0.0.0-20170506094415-4fcf5aa27627 h1:UTBcC74OvxjaX6OjvhznvP8ZR3JOVOBr7bOMBp4ELgk= 115 | github.com/pedroalbanese/go-kcipher2 v0.0.0-20170506094415-4fcf5aa27627/go.mod h1:K9++QOhv26m2sWb/B7RLfKxvL2Buc3UZVq4cL5WJ6lY= 116 | github.com/pedroalbanese/go-krcrypt v0.0.0-20170928183100-a0c871728ae1 h1:u0NdzhCdSPnuRA2nKIg7CAW0F8Pl8dRooy/g0i+4tGw= 117 | github.com/pedroalbanese/go-krcrypt v0.0.0-20170928183100-a0c871728ae1/go.mod h1:7LOlyYV2C5+0UD7eoPYN9fuGds6A3Y73tWihNKFQHO8= 118 | github.com/pedroalbanese/go-misty1 v0.0.0-20150819220543-a3984aec4fae h1:PVfyVgFdoXAjRuwM4dqEUlIXNrY0gwKeyJ9z/9AbTZ0= 119 | github.com/pedroalbanese/go-misty1 v0.0.0-20150819220543-a3984aec4fae/go.mod h1:nc3lEnA3uS8fyzDdV4TJ0LPv1gpFy/0pxiz6CFb1vbI= 120 | github.com/pedroalbanese/go-nums v0.0.0-20250217142054-d8f977c4e11d h1:92vFXCQuSDv3JR4aeZMWmMtiXP2DZ+TboQDeScoF7j8= 121 | github.com/pedroalbanese/go-nums v0.0.0-20250217142054-d8f977c4e11d/go.mod h1:+GKpx+TkdZebYybxqYtMZSyZPp5w3SHaZJCzAuc3g74= 122 | github.com/pedroalbanese/go-rc5 v0.0.0-20181025211356-a14dd155920a h1:A44dEfQF9P/nft5Oi/lteB6Tk3krO+xe3r65D2FiMZc= 123 | github.com/pedroalbanese/go-rc5 v0.0.0-20181025211356-a14dd155920a/go.mod h1:nVuhsla4svgWTrzUbeg75dMmFkaqmnTabTVE2OmK3bA= 124 | github.com/pedroalbanese/go-ripemd v0.0.0-20200326052756-bd1759ad7d10 h1:iu0q912gVo1C2uZBdh875c/Ht1gstFAjMYjrgm9AL9Y= 125 | github.com/pedroalbanese/go-ripemd v0.0.0-20200326052756-bd1759ad7d10/go.mod h1:njkESwAoSiroc25e1pcoqQVlecnhnW62Bf7VTQal2SY= 126 | github.com/pedroalbanese/gogost v0.0.0-20240430171730-f95129c7a5af h1:8jbTN9e84FOzAJtCPdy/NEz8983YdD7nqTBMQlTRP4w= 127 | github.com/pedroalbanese/gogost v0.0.0-20240430171730-f95129c7a5af/go.mod h1:A4x4C7B6z2POO1x5CZzKXZVCOFPfjzxxVUbWl2Thhp0= 128 | github.com/pedroalbanese/golang-rc6 v0.0.0-20240204183933-f7014051ac04 h1:q9GTq1BJe0tl+zH/8/2wxCz7upf4LlHxit1Rd5w8svU= 129 | github.com/pedroalbanese/golang-rc6 v0.0.0-20240204183933-f7014051ac04/go.mod h1:dM7Tk4qnsWH8/wcC2j33Krm02foYUCX3vn95jAPMr4E= 130 | github.com/pedroalbanese/gopass v0.0.0-20210920133722-c8aef6fb66ef h1:WS+9fDuTDnvWYKS7W/xyY3GiNRJvLMcYBUk4koW89/8= 131 | github.com/pedroalbanese/gopass v0.0.0-20210920133722-c8aef6fb66ef/go.mod h1:o3gfYg4p7EKXxkukiCDR4akrR2HGKSdoQqCgUE8pga0= 132 | github.com/pedroalbanese/groestl v1.0.1 h1:Bpm/ppHc4ttlVwlv7urAYp5p++4AJLYSyNlbsrWVH4s= 133 | github.com/pedroalbanese/groestl v1.0.1/go.mod h1:nYspmiUzgmuD8WKz0y6LJGPSvaRog/kieJ4ntdz69ak= 134 | github.com/pedroalbanese/groestl-1 v0.0.0-20230125170437-46d496027e3d h1:fWeBGfRwCRwwwwvYG3vdjwCk97yHBDsbKY2YiQ8AUjA= 135 | github.com/pedroalbanese/groestl-1 v0.0.0-20230125170437-46d496027e3d/go.mod h1:DnN7TxrHs0W6np4fXq8hIMNskNsMrzWE2pE6cfCuoK8= 136 | github.com/pedroalbanese/hamsi v0.0.0-20240518170147-c7c58b0f2a86 h1:ehH1xPL2bfy18rF8YoaPKMZpuozc8MMXcxeriUb9Oac= 137 | github.com/pedroalbanese/hamsi v0.0.0-20240518170147-c7c58b0f2a86/go.mod h1:/hgbJETGKOev52fhFzCUcxR8o13oSPcQgCk0p40Bkto= 138 | github.com/pedroalbanese/haraka v0.0.0-20180824194238-3cf1081eecd7 h1:ZlrjMhDWGMNArNgUHyoBB8i3lSAEAu2QlMaP97Go73U= 139 | github.com/pedroalbanese/haraka v0.0.0-20180824194238-3cf1081eecd7/go.mod h1:cCbAP1i+ZYSWsGVvukP8j1dujpeYSmqWBLgjO7aMUi4= 140 | github.com/pedroalbanese/jh v0.0.0-20240624180005-e6705e517191 h1:FBt+nyfKF8Mk0WAIhPTtUUI695Z1+DaS19axxDVKwwM= 141 | github.com/pedroalbanese/jh v0.0.0-20240624180005-e6705e517191/go.mod h1:lRQmOrzaIkLGMHlQjPwc6+tsnPn3bzYKZQ2I2wM9A4k= 142 | github.com/pedroalbanese/kalyna v0.0.0-20240325185136-5fa784896340 h1:cRHxGJXJf1qVDHgvfTzqdsc3WxdOkIEIBjnm8ZkOwwo= 143 | github.com/pedroalbanese/kalyna v0.0.0-20240325185136-5fa784896340/go.mod h1:D5fTMnrNb4sgSn6khyjDIMa1tw+FxC2l68nvlMRpoyY= 144 | github.com/pedroalbanese/kg v0.0.5 h1:pIpvi8ntjolg2JoIezYKo/EtEwQSbE9CQdx77WUd82U= 145 | github.com/pedroalbanese/kg v0.0.5/go.mod h1:JMka4mTJ/Hy6JomD/tTLX1uOthQNZaw76ZoxvMt9kdw= 146 | github.com/pedroalbanese/khazad v0.0.0-20240325185634-12dbcf5e3eaa h1:cZdc/KtPwhHgYsMU+hRdcZcW9GBieYwR9ps3PmDifkY= 147 | github.com/pedroalbanese/khazad v0.0.0-20240325185634-12dbcf5e3eaa/go.mod h1:DBvaJ2IyCyFyXiXOvO5Alu+Gqz9qwztaHE83ncrbpw0= 148 | github.com/pedroalbanese/kupyna v0.0.0-20240326161126-ebb2f9665eeb h1:1Rr4D6zpGzszMOAzSB4ZEiB7nrCVjDGDwS+lmZegPbQ= 149 | github.com/pedroalbanese/kupyna v0.0.0-20240326161126-ebb2f9665eeb/go.mod h1:10vp0zcBnFeyTRQqw/3k5YnvZXTQkuJC/n/FzGPsK5w= 150 | github.com/pedroalbanese/kuznechik v0.0.0 h1:JiVREgKdbKnvof57hL1sCkatIy97JBymQwUUDrorSEo= 151 | github.com/pedroalbanese/kuznechik v0.0.0/go.mod h1:mRbUXtz1RYBvxIjCRPSM4fw6/KPfBRVh3jiX3BMhHO8= 152 | github.com/pedroalbanese/loki97 v0.0.0-20240325185530-a0580bcacc04 h1:n8deRIWCc5W4OOvmtgkrA45nzJ0YFkQhJX3isZTdv68= 153 | github.com/pedroalbanese/loki97 v0.0.0-20240325185530-a0580bcacc04/go.mod h1:IyAG96OpzT6cPTt2MaoOHfDaKC8dqrVJQEE6AK7Vu90= 154 | github.com/pedroalbanese/luffa v0.0.0-20240518171333-cf7dac6a64ae h1:TfoKdzyc0HimH3iMGEp7bS+XfJfYT2qxX1KyJkKIaKc= 155 | github.com/pedroalbanese/luffa v0.0.0-20240518171333-cf7dac6a64ae/go.mod h1:9bd3I8VuODfmo7r2Qhn7r80eTKw1T2xADn+/1UVwwAM= 156 | github.com/pedroalbanese/lyra2re v0.0.0-20240520232624-5764a75dde63 h1:+XEkoqqSwTSlFnXSCBQ24mDIeCJV7yt4x+Der5a4PHs= 157 | github.com/pedroalbanese/lyra2re v0.0.0-20240520232624-5764a75dde63/go.mod h1:bEuOFddm39XiU3VS0N/TBoh2xf87TTpfTyFdF2bsyqk= 158 | github.com/pedroalbanese/lyra2rev2 v0.0.0-20240608181906-fe968f886565 h1:KQMsPhBYq2xc6c7vt66FZKyhLn+kMDdb0RUOinCZPLE= 159 | github.com/pedroalbanese/lyra2rev2 v0.0.0-20240608181906-fe968f886565/go.mod h1:WzQCkJ6PKTEVXLB2crTSC5vlTzT8oWiokrv2ktSScGI= 160 | github.com/pedroalbanese/magenta v0.0.0-20241208214047-a79e5e9ef277 h1:aFEpvTY/438+a6hvI1yk3l+VamidGgKJ6BUENwbsM9Y= 161 | github.com/pedroalbanese/magenta v0.0.0-20241208214047-a79e5e9ef277/go.mod h1:ebf40cDfhkGdDrbzvYGLjAND6H4Z53TfVeRxSENbWrg= 162 | github.com/pedroalbanese/makwa-go v0.0.0-20240816162209-f803984910a2 h1:AyAUVVlkouW2SuTEb41FYda0fedppRFIzrH82s/o9n8= 163 | github.com/pedroalbanese/makwa-go v0.0.0-20240816162209-f803984910a2/go.mod h1:MkIf6Ek6B/wwQX73mATiQsUUcLew60Nt8cRKCDdhi1M= 164 | github.com/pedroalbanese/mars v0.0.0-20240325185557-fe8b863ed824 h1:6FsfSBNeRnNuLIV4/cswytVkOaPa6Pq7ND+hf6yMNnM= 165 | github.com/pedroalbanese/mars v0.0.0-20240325185557-fe8b863ed824/go.mod h1:HFit7W/qku47mv/XXJPDb3gW+/JNc9/CJucToyf51FQ= 166 | github.com/pedroalbanese/matrixgl v0.0.9 h1:GcGj+0ecG1oIjoes6IpfUIKNfaRG9KVYrBImtCauSKw= 167 | github.com/pedroalbanese/matrixgl v0.0.9/go.mod h1:d5oRAzvom47N5OZwHGpDBdwS+VV4oyndVqPmGzkdi+0= 168 | github.com/pedroalbanese/md6 v0.0.0-20240815222317-052c055905a4 h1:T10NNFGRLmLuOKm+d0Xrb4mZWxjHRCLLXqUrB8bdT5A= 169 | github.com/pedroalbanese/md6 v0.0.0-20240815222317-052c055905a4/go.mod h1:SnCwEQNkRaJCqW/jmXTc+lS/yeUtoT+fJh/uczEj4MU= 170 | github.com/pedroalbanese/noekeon v0.0.0-20240325185408-f90c60f5190f h1:caqvKxlrANDDoyw5kaJI/jTwi6mQ6Kf9TfyvPya3eWI= 171 | github.com/pedroalbanese/noekeon v0.0.0-20240325185408-f90c60f5190f/go.mod h1:EU9JfJfUL1/CHNbBTZQ53twTUaXVhYivkJKQNmZ4NI4= 172 | github.com/pedroalbanese/ocb v0.0.0-20230501153203-7d2a80fe6a75 h1:HebmTqQwgn/gCSlkx/knOOm9hdChtzGVA5aBykymRjU= 173 | github.com/pedroalbanese/ocb v0.0.0-20230501153203-7d2a80fe6a75/go.mod h1:dlllB0nX79F4Pfwaf5HOgrZ97nQE6ISo4lK2DHPZOlw= 174 | github.com/pedroalbanese/ocb3 v0.0.0-20250818172449-cf949c2a64b2 h1:7a6Pd91lxufXKJioCLW2tr9ZQqppKbVE0gXBYipUqw8= 175 | github.com/pedroalbanese/ocb3 v0.0.0-20250818172449-cf949c2a64b2/go.mod h1:IWXK6lfpkAL1e5YtIku4d+6cZNlxu7+NpABckKwaVC0= 176 | github.com/pedroalbanese/panama v0.0.0-20240325185906-f9d6500cb56b h1:vYTR/DxOdzoaaT0SLkgAl8W07caWIauTY7DboGn036A= 177 | github.com/pedroalbanese/panama v0.0.0-20240325185906-f9d6500cb56b/go.mod h1:yBu1efo/Rh/R8T/BEouh3QtLqXXioeI5MT8UZTUY5Uo= 178 | github.com/pedroalbanese/pmac v0.0.0-20240715205711-f4d312cbf6c5 h1:aAP1McSRlLhwZLw/fq8yVlXQdYJFTD+ZYZa5x1Ef2cE= 179 | github.com/pedroalbanese/pmac v0.0.0-20240715205711-f4d312cbf6c5/go.mod h1:gcomSeqoCX+TqezdqwWmawVM3fMYfkQzPQGvdD05oa0= 180 | github.com/pedroalbanese/present v0.0.0-20240325185615-de3b5340e616 h1:VW2Fk3abLMKk3OSgi7mwiOE1cOM3f0WIJZVqAQUBndQ= 181 | github.com/pedroalbanese/present v0.0.0-20240325185615-de3b5340e616/go.mod h1:icukKC0YVdziTf84j3RMM/gsgkOevawx6RK5ryq9rCA= 182 | github.com/pedroalbanese/rabbitio v0.0.0-20230209212404-cffc97bafde8 h1:hX/DUv+poyEhCCShks90WRD9JiOw2Am73w4+ynIBO8g= 183 | github.com/pedroalbanese/rabbitio v0.0.0-20230209212404-cffc97bafde8/go.mod h1:MmrAYZpoio8QcKfgalZGmVW+i2MJnnTqE99jDfBIgyE= 184 | github.com/pedroalbanese/radio_gatun v0.0.0-20240520204859-03d5d3af41c3 h1:sw4oVrJN8X7HpbgJfiiNFucfjtAVrB/fbuWMl+xCFmU= 185 | github.com/pedroalbanese/radio_gatun v0.0.0-20240520204859-03d5d3af41c3/go.mod h1:06qiijoMNRnYSUPmbaCA9ZytQpzz+FOzhFk9LksDYDI= 186 | github.com/pedroalbanese/randomart v0.0.0-20130402080559-540116cac932 h1:lhyWm5kEilIJI800qc210GWsjJmln9o3vEr71nur//U= 187 | github.com/pedroalbanese/randomart v0.0.0-20130402080559-540116cac932/go.mod h1:VkPk1ppMWhMMgMxu4kLy8vGEvxY3Q+hp/SN9za0GKxc= 188 | github.com/pedroalbanese/rc2 v0.0.0-20131011165748-24b9757f5521 h1:ObGXSrJQ6vQQrCU+A0ywvQVtFv5g0RnMZIhMhQ8e7O0= 189 | github.com/pedroalbanese/rc2 v0.0.0-20131011165748-24b9757f5521/go.mod h1:BOC4I1JujHVVw3USD93sIGqc7jJhuWuIM5ktBhoKuco= 190 | github.com/pedroalbanese/secp256k1 v0.1.3 h1:XmLIaFhMnHwDfvDV4bmZCEqnaBJ6aYdip782PHB6KcA= 191 | github.com/pedroalbanese/secp256k1 v0.1.3/go.mod h1:EojpbgO+hzxqvWd/PHHU80GBFo1H3f0TLsg8uvwBOFM= 192 | github.com/pedroalbanese/shacal2 v0.0.0-20240911175924-cbeaa118c471 h1:Vowj5S2FIh0GIg1imAuhCPjd1ASYLKkFLao8ue111tE= 193 | github.com/pedroalbanese/shacal2 v0.0.0-20240911175924-cbeaa118c471/go.mod h1:bWZcx0Co4UdLZ5Bq3O6TeMdoVKZF83gfBS4IRd+diPo= 194 | github.com/pedroalbanese/shavite v0.0.0-20240518173728-5c0c7c528bc7 h1:tL7V7WlvJgewJcqVefTYyhFFy6q7drdU0KwOoAhkjbw= 195 | github.com/pedroalbanese/shavite v0.0.0-20240518173728-5c0c7c528bc7/go.mod h1:HYtZ0CPl+LnTvzExrbEYH6cwBM3LRzt13c7Jxwb4l98= 196 | github.com/pedroalbanese/simd v0.0.0-20240518173711-b73ebc90aae8 h1:mlApyl+IEN75Q/LyZUFfBSpx68evoOtSurL1WVkDrRo= 197 | github.com/pedroalbanese/simd v0.0.0-20240518173711-b73ebc90aae8/go.mod h1:LxkGKUarcIlPsj46P3n2yKAaFXjiyIOvZ2UGlE3lSOQ= 198 | github.com/pedroalbanese/simpleini v0.0.0 h1:G7TnIpt+JP5EIEppT+W2kRgMLk//ueJsdYnu2qcayYk= 199 | github.com/pedroalbanese/simpleini v0.0.0/go.mod h1:E9r51Vg+EBJgL2u7y9mjOWAaRIaioZortsfgEnoQDVw= 200 | github.com/pedroalbanese/siphash v1.0.1 h1:T+TonhTNw2HlCrsEBuaNb7lDOx4Kw6V4RpjDVRaNKHc= 201 | github.com/pedroalbanese/siphash v1.0.1/go.mod h1:jrEGQdGbMiXT88+cH4rWlcyCMUTjPbL5nAA44uYurV8= 202 | github.com/pedroalbanese/siv v0.0.2 h1:7a4k9CD8EVcVYBWKReqo7JLpLcIRs9CNIA166wKGOH8= 203 | github.com/pedroalbanese/siv v0.0.2/go.mod h1:SFmowN5wWV+l4Ng3SYMfTn5L3XG+1l/neGYsP9Kxs74= 204 | github.com/pedroalbanese/skein v0.0.0-20230124182825-ffe5e4ff3827 h1:G/kNAvy3w24SMiLmgYTSw0UnM5BQXhE/LMvReBMSUL0= 205 | github.com/pedroalbanese/skein v0.0.0-20230124182825-ffe5e4ff3827/go.mod h1:J5wSYblFVORXYLHPm3JoIZfB8yd3VI7C2TIfLLddO/Y= 206 | github.com/pedroalbanese/skein-1 v0.0.0-20171112102903-d7f1022db390 h1:OTTGLPoKatDyEYGK0xzhoTdCdNK51yXB9dTwKobeV44= 207 | github.com/pedroalbanese/skein-1 v0.0.0-20171112102903-d7f1022db390/go.mod h1:xQQEatlQb9wuT6Wkhjheo7jz6ToP55zd8PB2pm+2mT0= 208 | github.com/pedroalbanese/spritz v0.0.0-20140823220804-e125bc694ec3 h1:5W1zZxV+ngctweXfDxZSKlL7QsXxu14BpQ5qkrtjgx8= 209 | github.com/pedroalbanese/spritz v0.0.0-20140823220804-e125bc694ec3/go.mod h1:JCWryqsBv4ENKm0gjitOXlt7kS++zEeMdNkMpvSvwXM= 210 | github.com/pedroalbanese/threefish v0.0.0-20230828205611-8dc287bb1622 h1:OCUTDZV5e4MBOem1u3do6HuIQj0dyJZhIGCR83d/2Fc= 211 | github.com/pedroalbanese/threefish v0.0.0-20230828205611-8dc287bb1622/go.mod h1:mWV6KwRTB01M/RYDgp6EqqmmtaMv3qP3vltn6UiPY6Q= 212 | github.com/pedroalbanese/tiger v0.0.0-20220128183340-a7e964767a9d h1:L0+QApMpJpdoNfEa/jziiTLNz3a+huk0B2kmTKmOx20= 213 | github.com/pedroalbanese/tiger v0.0.0-20220128183340-a7e964767a9d/go.mod h1:iPwiPHMetkupe2zwZyiBaTx0r4V3J5aVS/75uLCASfI= 214 | github.com/pedroalbanese/tom v0.0.0-20250228211028-987ea6c1589b h1:ueZyvX6UJ7/ZH/K9Ms2FDQ6VCNA/IqTVM7S+T8JebjE= 215 | github.com/pedroalbanese/tom v0.0.0-20250228211028-987ea6c1589b/go.mod h1:cHujc5QKz6gmkgki3Bh5a1zZY/VYtbCT6K8KBgk5FSI= 216 | github.com/pedroalbanese/trivium v0.0.0-20170225064545-3bc0ea456f63 h1:yCEZ0ctjjiIr8EAUqqfcLc+wO51WkMpuNd/j/bZ94KU= 217 | github.com/pedroalbanese/trivium v0.0.0-20170225064545-3bc0ea456f63/go.mod h1:vwudD8Hl3PTug52vZyuCk56sZkJho/UOPrZ0mNLAliw= 218 | github.com/pedroalbanese/twine v0.0.0-20240325185833-a027b56be619 h1:4ivVe/VS0Ww4hf5q7EvG/Xdqw2z4+NIa31AYp6bSQPo= 219 | github.com/pedroalbanese/twine v0.0.0-20240325185833-a027b56be619/go.mod h1:uFICSVTc3c9NHS6CRBLDxHEtuRn6bPisfYAHVyQfDy8= 220 | github.com/pedroalbanese/uuencode v1.0.4 h1:ypejSaQxg/rf4pEDoOzZvBW/CFuP/UtRhcCNMRUCVS4= 221 | github.com/pedroalbanese/uuencode v1.0.4/go.mod h1:jzNnKcFiqbjRxgyZwmWW7CNGCS9w7t/+gDAT9IXZJdI= 222 | github.com/pedroalbanese/vmac v0.0.0-20231111194716-1a03aacdcb4c h1:69jHAdR8JFnFbgEXZn54qfwvlA8LQl1QUcZXYe2gJPk= 223 | github.com/pedroalbanese/vmac v0.0.0-20231111194716-1a03aacdcb4c/go.mod h1:ecUHK2kTeoKq+YJuQAZHV9WiZcpC5P8VXMBduJaMLmw= 224 | github.com/pedroalbanese/whirlpool v0.0.0-20220911221330-8ad94dd14447 h1:ouut+zeswugb4asBoOejuy+hFWvXXnVPFnKJmDFtoko= 225 | github.com/pedroalbanese/whirlpool v0.0.0-20220911221330-8ad94dd14447/go.mod h1:hmEg12nLjNeVJaroqA6z3wubkSxGRVohaAD4cNuysRg= 226 | github.com/pedroalbanese/xoodoo v0.0.0-20230124190939-64aa038b97c6 h1:DCyHQIq9uE4RrPSobh7WCybTxSdXlNF/AwmKRkDE/AQ= 227 | github.com/pedroalbanese/xoodoo v0.0.0-20230124190939-64aa038b97c6/go.mod h1:ziHgtQ/DwLq+fL0BC55to81BEzKBeVjyOeDIU8pOB8k= 228 | github.com/pedroalbanese/xxencode v0.0.15 h1:2FKeq1qcwA6kx5mV6jACksHtJcccTy8Z54CdTiza9Po= 229 | github.com/pedroalbanese/xxencode v0.0.15/go.mod h1:2XWJgW0YNQOTdqSBBQFX1DN8OqLXRvAj/FtzkfIhpVA= 230 | github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4= 231 | github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= 232 | github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= 233 | github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= 234 | github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsTg= 235 | github.com/stretchr/testify v1.9.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY= 236 | github.com/trailofbits/lms-go v0.0.0-20250218220503-d2f2806cebf9 h1:QGRBcofdAgNxsW8K/K87hOAdRoAXcWfEKNy91qROu38= 237 | github.com/trailofbits/lms-go v0.0.0-20250218220503-d2f2806cebf9/go.mod h1:PXVmG2ySLpH5FGcYr1/XXKlOOaX+QUw5SYghecP9G5A= 238 | github.com/yuin/goldmark v1.4.13/go.mod h1:6yULJ656Px+3vBD8DxQVa3kxgyrAnzto9xy5taEt/CY= 239 | github.com/zeebo/assert v1.1.0 h1:hU1L1vLTHsnO8x8c9KAR5GmM5QscxHg5RNU5z5qbUWY= 240 | github.com/zeebo/assert v1.1.0/go.mod h1:Pq9JiuJQpG8JLJdtkwrJESF0Foym2/D9XMU5ciN/wJ0= 241 | github.com/zeebo/blake3 v0.2.3 h1:TFoLXsjeXqRNFxSbk35Dk4YtszE/MQQGK10BH4ptoTg= 242 | github.com/zeebo/blake3 v0.2.3/go.mod h1:mjJjZpnsyIVtVgTOSpJ9vmRE4wgDeyt2HU3qXvvKCaQ= 243 | github.com/zeebo/pcg v1.0.1 h1:lyqfGeWiv4ahac6ttHs+I5hwtH/+1mrhlCtVNQM2kHo= 244 | github.com/zeebo/pcg v1.0.1/go.mod h1:09F0S9iiKrwn9rlI5yjLkmrug154/YRW6KnnXVDM/l4= 245 | golang.org/x/crypto v0.38.0 h1:jt+WWG8IZlBnVbomuhg2Mdq0+BBQaHbtqHEFEigjUV8= 246 | golang.org/x/crypto v0.38.0/go.mod h1:MvrbAqul58NNYPKnOra203SB9vpuZW0e+RRZV+Ggqjw= 247 | golang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4/go.mod h1:jJ57K6gSWd91VN4djpZkiMVwK6gcyfeH4XE8wZrZaV4= 248 | golang.org/x/mod v0.8.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs= 249 | golang.org/x/mod v0.12.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs= 250 | golang.org/x/mod v0.15.0/go.mod h1:hTbmBsO62+eylJbnUtE2MGJUyE7QWk4xUqPFrRgJ+7c= 251 | golang.org/x/mod v0.17.0/go.mod h1:hTbmBsO62+eylJbnUtE2MGJUyE7QWk4xUqPFrRgJ+7c= 252 | golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= 253 | golang.org/x/net v0.0.0-20220722155237-a158d28d115b/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= 254 | golang.org/x/net v0.0.0-20220826154423-83b083e8dc8b/go.mod h1:YDH+HFinaLZZlnHAfSS6ZXJJ9M9t4Dl22yv3iI2vPwk= 255 | golang.org/x/net v0.0.0-20220909164309-bea034e7d591/go.mod h1:YDH+HFinaLZZlnHAfSS6ZXJJ9M9t4Dl22yv3iI2vPwk= 256 | golang.org/x/net v0.6.0/go.mod h1:2Tu9+aMcznHK/AK1HMvgo6xiTLG5rD5rZLDS+rp2Bjs= 257 | golang.org/x/net v0.15.0/go.mod h1:idbUs1IY1+zTqbi8yxTbhexhEEk5ur9LInksu6HrEpk= 258 | golang.org/x/net v0.21.0/go.mod h1:bIjVDfnllIU7BJ2DNgfnXvpSvtn8VRwhlsaeUTyUS44= 259 | golang.org/x/net v0.25.0/go.mod h1:JkAGAh7GEvH74S6FOH42FLoXpXbE/aqXSrIQjXgsiwM= 260 | golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= 261 | golang.org/x/sync v0.0.0-20220722155255-886fb9371eb4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= 262 | golang.org/x/sync v0.1.0/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= 263 | golang.org/x/sync v0.3.0/go.mod h1:FU7BRWz2tNW+3quACPkgCx/L+uEAv1htQ0V83Z9Rj+Y= 264 | golang.org/x/sync v0.6.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk= 265 | golang.org/x/sync v0.7.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk= 266 | golang.org/x/sync v0.14.0/go.mod h1:1dzgHSNfp02xaA81J2MS99Qcpr2w7fw1gpm99rleRqA= 267 | golang.org/x/sys v0.25.0 h1:r+8e+loiHxRqhXVl6ML1nO3l1+oFoWbnlu2Ehimmi34= 268 | golang.org/x/sys v0.25.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= 269 | golang.org/x/telemetry v0.0.0-20240228155512-f48c80bd79b2/go.mod h1:TeRTkGYfJXctD9OcfyVLyj2J3IxLnKwHJR8f4D8a3YE= 270 | golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= 271 | golang.org/x/term v0.5.0/go.mod h1:jMB1sMXY+tzblOD4FWmEbocvup2/aLOaQEp7JmGp78k= 272 | golang.org/x/term v0.12.0/go.mod h1:owVbMEjm3cBLCHdkQu9b1opXd4ETQWc3BhuQGKgXgvU= 273 | golang.org/x/term v0.17.0/go.mod h1:lLRBjIVuehSbZlaOtGMbcMncT+aqLLLmKrsjNrUguwk= 274 | golang.org/x/term v0.20.0/go.mod h1:8UkIAJTvZgivsXaD6/pH6U9ecQzZ45awqEOzuCvwpFY= 275 | golang.org/x/term v0.32.0 h1:DR4lr0TjUs3epypdhTOkMmuF5CDFJ/8pOnbzMZPQ7bg= 276 | golang.org/x/term v0.32.0/go.mod h1:uZG1FhGx848Sqfsq4/DlJr3xGGsYMu/L5GW4abiaEPQ= 277 | golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= 278 | golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ= 279 | golang.org/x/text v0.7.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= 280 | golang.org/x/text v0.13.0/go.mod h1:TvPlkZtksWOMsz7fbANvkp4WM8x/WCo/om8BMLbz+aE= 281 | golang.org/x/text v0.14.0/go.mod h1:18ZOQIKpY8NJVqYksKHtTdi31H5itFRjB5/qKTNYzSU= 282 | golang.org/x/text v0.15.0/go.mod h1:18ZOQIKpY8NJVqYksKHtTdi31H5itFRjB5/qKTNYzSU= 283 | golang.org/x/text v0.25.0/go.mod h1:WEdwpYrmk1qmdHvhkSTNPm3app7v4rsT8F2UD6+VHIA= 284 | golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= 285 | golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= 286 | golang.org/x/tools v0.1.12/go.mod h1:hNGJHUnrk76NpqgfD5Aqm5Crs+Hm0VOH/i9J2+nxYbc= 287 | golang.org/x/tools v0.6.0/go.mod h1:Xwgl3UAJ/d3gWutnCtw505GrjyAbvKui8lOU390QaIU= 288 | golang.org/x/tools v0.13.0/go.mod h1:HvlwmtVNQAhOuCjW7xxvovg8wbNq7LwfXh/k7wXUl58= 289 | golang.org/x/tools v0.21.1-0.20240508182429-e35e4ccd0d2d/go.mod h1:aiJjzUbINMkxbQROHiO6hDPo2LHcIPhhQsa9DLh0yGk= 290 | golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= 291 | gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA= 292 | gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= 293 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # EDGE Toolkit 2 | [](https://github.com/pedroalbanese/edgetk/blob/master/LICENSE.md) 3 | [](http://godoc.org/github.com/pedroalbanese/edgetk) 4 | [](https://github.com/pedroalbanese/edgetk/releases) 5 | [](https://goreportcard.com/report/github.com/pedroalbanese/edgetk) 6 | [](https://golang.org) 7 | [](https://github.com/pedroalbanese/edgetk/releases) 8 | [](https://doi.org/10.5281/zenodo.17155950) 9 | 10 | Multi-purpose cross-platform hybrid cryptography tool for symmetric and asymmetric encryption, cipher-based message authentication code (CMAC|PMAC|GMAC|VMAC), recursive hash digest, hash-based message authentication code (HMAC), HMAC-based key derivation function (HKDF), password-based key derivation function (PBKDF2|Argon2|Lyra2|Scrypt), password-hashing scheme (Bcrypt|Argon2|Lyra2|Makwa), shared key agreement (ECDH|VKO|X25519|X448|ML-KEM), digital signature (RSA|ECDSA|EdDSA|GOST|SLH-DSA|ML-DSA), X.509 CSRs, CRLs and Certificates, and TCP instant server with TLS 1.3 and TLCP encryption layers for small or embedded systems. 11 | 12 | ***Fully OpenSSL/LibreSSL/GmSSL/Botan/libsodium/RHash/Mcrypt compliant*** 13 | 14 |Usage of edgetk:
1055 | -algorithm string
1056 | Public key algorithm: EC, Ed25519, GOST2012, SM2. (default "RSA")
1057 | -base32 string
1058 | Encode binary string to Base32 format and vice-versa. [enc|dec]
1059 | -base64 string
1060 | Encode binary string to Base64 format and vice-versa. [enc|dec]
1061 | -base85 string
1062 | Encode binary string to Base85 format and vice-versa. [enc|dec]
1063 | -bits int
1064 | Key length. (for keypair generation and symmetric encryption)
1065 | -cacert string
1066 | CA Certificate path. (for TLCP Protocol)
1067 | -cakey string
1068 | CA Private key. (for TLCP Protocol)
1069 | -cert string
1070 | Certificate path.
1071 | -challenge string
1072 | Challenge for the proof. (for Zero-Knowledge Proof ZKP)
1073 | -change
1074 | Change Passphrase of a Private Key.
1075 | -check
1076 | Check hashsum file. ('-' for STDIN)
1077 | -cipher string
1078 | Symmetric algorithm: aes, blowfish, magma or sm4. (default "aes")
1079 | -commitment string
1080 | Commitment for the proof. (for Zero-Knowledge Proof ZKP)
1081 | -crl string
1082 | Certificate Revocation List path.
1083 | -crypt string
1084 | Bulk Encryption with Stream and Block ciphers. [enc|dec|help]
1085 | -curve string
1086 | Subjacent curve. (secp256r1, secp256k1, numsp256t1)
1087 | -days int
1088 | Defines the validity of the certificate from the date of creation.
1089 | -digest
1090 | Target file/wildcard to generate hashsum list. ('-' for STDIN)
1091 | -factorp string
1092 | Makwa private Factor P. (for Makwa Password-hashing Scheme)
1093 | -factorq string
1094 | Makwa private Factor Q. (for Makwa Password-hashing Scheme)
1095 | -hex string
1096 | Encode binary string to hex format and vice-versa. [enc|dump|dec]
1097 | -hid uint
1098 | Hierarchy Identifier. (for IBE/IBS User Private Key) (default 1)
1099 | -id string
1100 | User Identifier. (for IBE/IBS User Private Key operations)
1101 | -info string
1102 | Additional info. (for HKDF command and AEAD bulk encryption)
1103 | -ipport string
1104 | Local Port/remote's side Public IP:Port.
1105 | -isca
1106 | The requested CSR is for a Certificate Authority (CA).
1107 | -iter int
1108 | Iter. (for Password-based key derivation function) (default 1)
1109 | -iv string
1110 | Initialization Vector. (for symmetric encryption)
1111 | -kdf string
1112 | Key derivation function. [pbkdf2|hkdf|scrypt|argon2|lyra2re2]
1113 | -key string
1114 | Asymmetric key, symmetric key or HMAC key, depending on operation.
1115 | -keys value
1116 | Key to be combined. (can be passed multiple times)
1117 | -mac string
1118 | Compute Hash/Cipher-based message authentication code.
1119 | -master string
1120 | Master key path. (for sm9 setup) (default "Master.pem")
1121 | -md string
1122 | Hash algorithm: sha256, sha3-256 or whirlpool. (default "sha256")
1123 | -mode string
1124 | Mode of operation: GCM, MGM, CBC, CFB8, OCB, OFB. (default "CTR")
1125 | -modulus string
1126 | Makwa modulus. (Makwa hash Public Parameter)
1127 | -msgs value
1128 | Messages to be verified. (can be passed multiple times)
1129 | -nopad
1130 | No padding. (for Base64 and Base32 encoding)
1131 | -params string
1132 | ElGamal Public Parameters path.
1133 | -paramset string
1134 | Elliptic curve ParamSet: A, B, C, D. (for GOST2012) (default "A")
1135 | -pass string
1136 | Password/Passphrase. (for Private key PEM encryption)
1137 | -passout string
1138 | User Password. (for SM9 User Private Key PEM encryption)
1139 | -peerid string
1140 | Remote's side User Identifier. (for SM9 Key Exchange)
1141 | -pkey string
1142 | Subcommands: keygen|certgen, sign|verify|derive, text|modulus.
1143 | -prv string
1144 | Private key path. (for keypair generation) (default "Private.pem")
1145 | -pub string
1146 | Public key path. (for keypair generation) (default "Public.pem")
1147 | -pub2 string
1148 | Public key 2 path. (for keypair generation)
1149 | -pubs value
1150 | Paths to the public keys. (can be passed multiple times)
1151 | -rand int
1152 | Generate random cryptographic key with given bit length.
1153 | -recover
1154 | Recover Passphrase from Makwa hash with Private Parameters.
1155 | -recursive
1156 | Process directories recursively. (for DIGEST command only)
1157 | -response string
1158 | Response for the proof. (for Zero-Knowledge Proof ZKP)
1159 | -root string
1160 | Root CA Certificate path.
1161 | -salt string
1162 | Salt. (for HKDF and PBKDF2 commands)
1163 | -scheme string
1164 | Subjacent Scheme. (for Identity-Based Cryptography IBE/IBS)
1165 | -seed string
1166 | Seed. (for ML-KEM and ML-DSA key generation)
1167 | -signature string
1168 | Input signature. (for VERIFY command and MAC verification)
1169 | -subj string
1170 | Subject: Identity. (Example: "/CN=/OU=/O=/ST=/L=/C=/emailAddress=")
1171 | -tcp string
1172 | Encrypted TCP/IP Transfer Protocol. [server|ip|client]
1173 | -token string
1174 | Token containing an encrypted symmetric key.
1175 | -tweak string
1176 | Additional 128-bit parameter input. (for THREEFISH encryption)
1177 | -uu string
1178 | Encode binary files with uuencoding and vice-versa. [enc|dec]
1179 | -version
1180 | Print version info.
1181 | -wrap int
1182 | Wrap lines after N columns. (for Base64/32 encoding) (default 64)
1183 | -xx string
1184 | Encode binary files with xxencoding and vice-versa. [enc|dec]
1185 | -zlib string
1186 | Compress string with zlib algorithm and vice-versa. [enc|dec]
1187 |
1188 | ## Examples
1189 |
1190 | #### Post-Quantum Digital Signature with ML-DSA or SLH-DSA:
1191 | ```sh
1192 | edgetk -pkey keygen -algorithm [ml-dsa|slh-dsa] -prv Private.pem -pub Public.pem
1193 | edgetk -pkey sign -key Private.pem -pass "pass" -signature sign.txt FILE
1194 | edgetk -pkey verify -key Public.pem -signature sign.txt FILE
1195 | ```
1196 | #### Post-Quantum Key Encapsulation Mechanism (ML-KEM):
1197 | ```sh
1198 | edgetk -pkey keygen -algorithm ml-kem -prv Private.pem -pub Public.pem
1199 | edgetk -pkey wrapkey -key Public.pem -cipher cipher.txt
1200 | edgetk -pkey unwrapkey -key Private.pem -pass "pass" -cipher cipher.txt
1201 | ```
1202 |
1203 |