Cargo Features

neuedu-cryptos-wasm has no features set by default.

[dependencies]
neuedu-cryptos-wasm = { version = "0.6.2", features = ["hash", "sm3", "insecure_md5", "insecure_sha1", "sha2", "sha224", "sha256", "sha384", "sha512", "sha512_224", "sha512_256", "block", "ecb", "cbc", "cfb", "ofb", "sm4", "mac", "hmac", "block_mode", "stream_mode"] }
hash insecure_md5? insecure_sha1? sha2? sm3?

Affects neuedu-cryptos-wasm::hashs

sm3 = hash

Enables sm3 of neuedu-cryptos

Affects hashs::SM3, hashs::sm3, macs::hmac_sm3

insecure_md5 = hash

Enables insecure_md5 of neuedu-cryptos

Affects hashs::MD5, hashs::md5, macs::hmac_md5

insecure_sha1 = hash

Enables insecure_sha1 of neuedu-cryptos

Affects hashs::SHA1, hashs::sha1, macs::hmac_sha1

sha2 sha224? sha256? sha384? sha512? sha512_224? sha512_256? = hash

Enables sha2 of neuedu-cryptos

Affects hashs::SHA2

sha224 = sha2

Affects hashs::sha224, macs::hmac_sha224

sha256 = sha2

Affects hashs::sha256, macs::hmac_sha256

sha384 = sha2

Affects hashs::sha384, macs::hmac_sha384

sha512 = sha2

Affects hashs::sha512, macs::hmac_sha512

sha512_224 = sha2

Affects hashs::sha512_224, macs::hmac_sha512_224

sha512_256 = sha2

Affects hashs::sha512_256, macs::hmac_sha512_256

block sm4?

Affects neuedu-cryptos-wasm::block_ciphers

ecb

Enables ecb of neuedu-cryptos

Affects block_ciphers::sm4_ecb_encrypt, block_ciphers::sm4_ecb_decrypt

cbc

Enables cbc of neuedu-cryptos

Affects block_ciphers::sm4_cbc_encrypt, block_ciphers::sm4_cbc_decrypt

cfb

Enables cfb of neuedu-cryptos

Affects block_ciphers::sm4_cfb_encrypt, block_ciphers::sm4_cfb_decrypt

ofb

Enables ofb of neuedu-cryptos

Affects block_ciphers::sm4_ofb_encrypt, block_ciphers::sm4_ofb_decrypt

sm4 = block

Enables sm4 of neuedu-cryptos

Affects block_ciphers::SM4, block_ciphers::sm4_ecb_encrypt, block_ciphers::sm4_ecb_decrypt, block_ciphers::sm4_cbc_encrypt, block_ciphers::sm4_cbc_decrypt, block_ciphers::sm4_cfb_encrypt, block_ciphers::sm4_cfb_decrypt, block_ciphers::sm4_ofb_encrypt, block_ciphers::sm4_ofb_decrypt

mac hmac?

Affects neuedu-cryptos-wasm::macs

hmac = mac

Enables hmac of neuedu-cryptos

Affects macs::HMAC, macs::hmac_sm3, macs::hmac_md5, macs::hmac_sha1, macs::hmac_sha224, macs::hmac_sha256, macs::hmac_sha384, macs::hmac_sha512, macs::hmac_sha512_224, macs::hmac_sha512_256

block_mode

Affects hashs::sm3, hashs::md5, hashs::sha1, hashs::sha224, hashs::sha256, hashs::sha384, hashs::sha512, hashs::sha512_224, hashs::sha512_256, block_ciphers::sm4_ecb_encrypt, block_ciphers::sm4_ecb_decrypt, block_ciphers::sm4_cbc_encrypt, block_ciphers::sm4_cbc_decrypt, block_ciphers::sm4_cfb_encrypt, block_ciphers::sm4_cfb_decrypt, block_ciphers::sm4_ofb_encrypt, block_ciphers::sm4_ofb_decrypt, macs::hmac_sm3, macs::hmac_md5, macs::hmac_sha1

stream_mode

Affects block_ciphers::SM4, hashs::SM3, hashs::MD5, hashs::SHA1, hashs::SHA2, macs::HMAC