Expand description
Integration between uselesskey test fixtures and ring 0.17.
This crate provides extension traits that convert uselesskey fixtures into
ring native signing key types, making it easy to use test fixtures with
code that depends on ring directly.
§Features
Enable the key types you need:
rsa- RSA keypairs ->ring::rsa::KeyPairecdsa- ECDSA keypairs ->ring::signature::EcdsaKeyPaired25519- Ed25519 keypairs ->ring::signature::Ed25519KeyPairall- All of the above
§Examples
Convert an RSA fixture to a ring key pair (requires rsa feature):
use uselesskey_core::Factory;
use uselesskey_rsa::{RsaFactoryExt, RsaSpec};
use uselesskey_ring::RingRsaKeyPairExt;
let fx = Factory::random();
let kp = fx.rsa("test", RsaSpec::rs256());
let ring_pair = kp.rsa_key_pair_ring();
assert!(ring_pair.public().modulus_len() > 0);Traits§
- Ring
Ecdsa KeyPair Ext - Extension trait to convert uselesskey ECDSA fixtures into
ring::signature::EcdsaKeyPair. - Ring
Ed25519 KeyPair Ext - Extension trait to convert uselesskey Ed25519 fixtures into
ring::signature::Ed25519KeyPair. - Ring
RsaKey Pair Ext - Extension trait to convert uselesskey RSA fixtures into
ring::rsa::KeyPair.