The implementation provided here is incomplete at best. The `jose` crate uses @RustCrypto cryptography and provides a more complete implementation: https://github.com/minkan-chat/jose