biscuit 0.8.0

A library to work with Javascript Object Signing and Encryption(JOSE), including JSON Web Tokens (JWT), JSON Web Signature (JWS) and JSON Web Encryption (JWE).
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
macro_rules! unexpected_key_type_error {
    ($expected:path, $actual:expr) => {
        Error::WrongKeyType {
            actual: $actual.to_string(),
            expected: $expected.to_string(),
        }
    };
}

macro_rules! unexpected_encryption_options_error {
    ($expected:expr, $actual:expr) => {
        Error::WrongEncryptionOptions {
            actual: $actual.to_string(),
            expected: $expected.to_string(),
        }
    };
}