Cargo Features

pasta-tokens has no features set by default.

[dependencies]
pasta-tokens = { version = "0.1.0-rc.7", features = ["v3", "v3-paseto", "v3-paserk", "v3-local", "v3-public", "v3-id", "v3-pbkw", "v3-pke", "v3-wrap", "v4", "v4-paseto", "v4-paserk", "v4-local", "v4-public", "v4-id", "v4-pbkw", "v4-pke", "v4-wrap"] }
v3 = v3-paserk, v3-paseto

V3 contains NIST approved algoritms only

v3-paseto v3? = v3-local, v3-public
v3-paserk v3? = v3-id, v3-pbkw, v3-pke, v3-wrap
v3-local v3-paseto? v3-pbkw? v3-pke? v3-wrap?

Enables aes, ctr, hkdf, hmac, and sha2

aes:

V3

v3-public v3-paseto? v3-pke?

Enables ecdsa and p384

v3-id v3-paserk?

Enables sha2

v3-pbkw v3-paserk? = v3-local

Enables pbkdf2

Affects pbkw::Pbkdf2State

v3-pke v3-paserk? = v3-local, v3-public
v3-wrap v3-paserk? = v3-local
v4 = v4-paserk, v4-paseto

V4 is recommended

v4-paseto v4? = v4-local, v4-public
v4-paserk v4? = v4-id, v4-pbkw, v4-pke, v4-wrap
v4-local v4-paseto? v4-pbkw? v4-pke? v4-wrap?

Enables blake2 and chacha20

chacha20:

V4

v4-public v4-paseto? v4-pke?

Enables ed25519-dalek

v4-id v4-paserk?

Enables blake2

v4-pbkw v4-paserk? = v4-local

Enables argon2

Affects pbkw::Argon2State

v4-pke v4-paserk? = v4-local, v4-public

Enables curve25519-dalek

v4-wrap v4-paserk? = v4-local