pkcs1: split der objects into *Ref and *Owned - #2411
Conversation
I generally use |
RsaPublicKey into RsaPublicKeyRef and RsaPublicKeyOwned*Ref and *Owned
|
I had to add |
|
I'd prefer not to add additional traits in this PR, particularly ones unrelated to Any reason it can't just be If we really need to add |
|
I guess the main problem is there's a divergence between |
|
I think But I can add |
|
No, that doesn't seem like a good solution either. One thing that's annoying is So I guess we can do |
|
Edit: I misunderstood you wanted fn as_uint_ref<'a>(&'a self) -> &UintRef<'a>;
|
|
I think I don't think there should be a need to add/remove any other methods. |
adf5efa to
9279a2e
Compare
| impl<'a, Params> DecodeValue<'a> for RsaPssParams<Params> | ||
| where | ||
| AlgorithmIdentifier<Params>: DecodeValue<'a, Error = der::Error> + FixedTag, | ||
| AlgorithmIdentifier<AlgorithmIdentifier<Params>>: | ||
| DecodeValue<'a, Error = der::Error> + FixedTag, | ||
| AlgorithmIdentifier<Params>: From<AlgorithmIdentifierRef<'static>>, | ||
| Params: 'a, |
There was a problem hiding this comment.
Im not sure about Params: 'a tho
patch rsa crate with RustCrypto/RSA commit rev pkcs1: pub use RsaPublicKey use RsaPublicKey #[cfg(doc)] pkcs1: replace UintType with U pkcs1: split RsaPrivateKey info RsaPrivateKeyRef and Owned bump RSA patch git commit rev pkcs1: use `AsUintRef` instead of `OwnedToRef` fix doc RsaPrivateKey pkcs1+spki: RsaOaepParams<Params> generic `Ref` and `Owned` pkcs1: simplify trait bounds on RsaOaepParams pkcs1: workaround clippy redundant closure pkcs1: RsaPssParams generic Ref and Owned pkcs1: pub use RsaPssParamsRef, RsaPssParamsOwned fix *Owned type trait bounds spki: AlgorithmIdentifier conversion between Ref and Owned spki: cfg(feature = alloc) AlgorithmIdentifierOwned pkcs1: alloc feature forward to spki/alloc spki: fix clippy docs
d49ab23 to
94be9ba
Compare
Generic
RefandOwnedaliases ofderobjectspkcs1progress:OtherPrimeInfoRsaOaepParamsRsaPrivateKeyRsaPssParamsRsaPublicKeyRelated issue: