UNPKG

mima-kit

Version:

mima-kit is a cryptographic suite implemented in TypeScript. The goal is to provide an easy-to-use cryptographic library. mima-kit 是一个使用 TypeScript 实现的密码学套件。目标是提供一个简单易用的密码学库。

91 lines (90 loc) 5.58 kB
/** biome-ignore-all assist/source/organizeImports: <> */ export { genPrime, isProbablePrime } from './core/prime'; export { joinBuffer, U8 } from './core/utils'; export { B32, B64, B64URL, CSV, HEX, UTF8 } from './core/codec'; export { createHash, createTupleHash } from './core/hash'; /* ========================================================================== */ /* Hash */ /* ========================================================================== */ export { sm3 } from './hash/sm3'; export { md5 } from './hash/md5'; export { sha1 } from './hash/sha1'; export { sha224, sha256 } from './hash/sha256'; export { sha384, sha512, sha512t } from './hash/sha512'; export { sha3_224, sha3_256 } from './hash/sha3'; export { sha3_384, sha3_512 } from './hash/sha3'; export { shake128, shake256 } from './hash/sha3'; export { cshake128, cshake256 } from './hash/sha3Derived'; export { tuplehash128, tuplehash128XOF } from './hash/sha3Derived'; export { tuplehash256, tuplehash256XOF } from './hash/sha3Derived'; export { parallelhash128, parallelhash128XOF } from './hash/sha3Derived'; export { parallelhash256, parallelhash256XOF } from './hash/sha3Derived'; export { keccak_p_1600, sponge_1600 } from './hash/keccak1600'; export { turboshake128, turboshake256 } from './hash/turboSHAKE'; export { kt128, kt256 } from './hash/kangaroo12'; /* ========================================================================== */ /* MAC */ /* ========================================================================== */ export { hmac } from './hash/hmac'; export { kmac128, kmac128XOF } from './hash/sha3Derived'; export { kmac256, kmac256XOF } from './hash/sha3Derived'; /* ========================================================================== */ /* TOTP */ /* ========================================================================== */ export { totp } from './hash/totp'; export { createCipher } from './core/cipher'; /* ========================================================================== */ /* Stream Cipher */ /* ========================================================================== */ export { arc4 } from './cipher/streamCipher/arc4'; export { rabbit } from './cipher/streamCipher/rabbit'; export { salsa20 } from './cipher/streamCipher/salsa20'; export { eea3, eia3, zuc } from './cipher/streamCipher/zuc'; /* ========================================================================== */ /* Block Cipher Components */ /* ========================================================================== */ export { cbc, cfb, ctr, ecb, gcm, ofb, pcbc } from './core/cipher'; export { ISO7816_PAD, NO_PAD, PKCS7_PAD, X923_PAD, ZERO_PAD, } from './core/cipher'; /* ========================================================================== */ /* Block Cipher */ /* ========================================================================== */ export { aes } from './cipher/blockCipher/aes'; export { arc5 } from './cipher/blockCipher/arc5'; export { aria } from './cipher/blockCipher/aria'; export { blowfish } from './cipher/blockCipher/blowfish'; export { camellia } from './cipher/blockCipher/camellia'; export { des, t_des } from './cipher/blockCipher/des'; export { sm4 } from './cipher/blockCipher/sm4'; export { tea, xtea, xxtea } from './cipher/blockCipher/tea'; export { twofish } from './cipher/blockCipher/twofish'; export { mgf1 } from './cipher/pkcs/pkcs1'; export { hkdf, pbkdf2, scrypt, x963kdf } from './core/kdf'; export { rsa } from './cipher/pkcs/rsa'; export { pkcs1_es_1_5, pkcs1_es_oaep } from './cipher/pkcs/pkcs1'; export { pkcs1_ssa_1_5, pkcs1_ssa_pss } from './cipher/pkcs/pkcs1'; export { GF, GF2 } from './core/galois_field'; export { defineECIES, ECC } from './cipher/ecc/ecc'; export { x448, x25519 } from './cipher/ecc/x25519_448'; export { sm2 } from './cipher/ecc/sm2'; /* ========================================================================== */ /* Elliptic Curve Parameters */ /* ========================================================================== */ export { sm2p256v1 } from './core/ec_params'; // export { secp112r1, secp112r2 } from './core/ec_params' // export { secp128r1, secp128r2 } from './core/ec_params' export { secp160k1, secp160r1, secp160r2 } from './core/ec_params'; export { secp192k1, secp192r1 } from './core/ec_params'; export { secp224k1, secp224r1 } from './core/ec_params'; export { secp256k1, secp256r1 } from './core/ec_params'; export { secp384r1, secp521r1 } from './core/ec_params'; export { prime192v1, prime256v1 } from './core/ec_params'; export { p192, p224, p256, p384, p521 } from './core/ec_params'; export { w448, w25519 } from './core/ec_params'; export { curve448, curve25519 } from './core/ec_params'; export { bp192r1, bp224r1, bp256r1, bp320r1, bp384r1, bp512r1, } from './core/ec_params'; export { sect163k1, sect163r1, sect163r2 } from './core/ec_params'; export { sect233k1, sect233r1, sect239k1 } from './core/ec_params'; export { sect283k1, sect283r1 } from './core/ec_params'; export { sect409k1, sect409r1 } from './core/ec_params'; export { sect571k1, sect571r1 } from './core/ec_params'; // export { ed25519, ed448 } from './core/ec_params'