-
Notifications
You must be signed in to change notification settings - Fork 132
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pkcs8: provide PrivateKeyInfoRef
/PrivateKeyInfoOwned
#1183
Conversation
Why are you exposing Why not Really |
7ae4fa6
to
1cf577e
Compare
I was actually looking for a I don't think I'm too comfortable with |
4dd6f4a
to
bf211c8
Compare
8d29e28
to
25bed9e
Compare
Removes lifetimes from all types in the `pkcs5` crate, making them own their data.
Signed-off-by: Arthur Gautier <[email protected]>
Signed-off-by: Arthur Gautier <[email protected]>
Signed-off-by: Arthur Gautier <[email protected]>
Signed-off-by: Arthur Gautier <[email protected]>
Signed-off-by: Arthur Gautier <[email protected]>
Signed-off-by: Arthur Gautier <[email protected]>
Signed-off-by: Arthur Gautier <[email protected]>
Signed-off-by: Arthur Gautier <[email protected]>
Signed-off-by: Arthur Gautier <[email protected]>
Signed-off-by: Arthur Gautier <[email protected]>
25bed9e
to
d3e42e5
Compare
Why not merge Regular OctetString would just contain https://doc.rust-lang.org/std/vec/struct.Vec.html#impl-From%3CCow%3C'a,+%5BT%5D%3E%3E-for-Vec%3CT%3E Also, conversions from/to owned would just swap an enum. |
@dishmaker this crate is designed to support heapless targets that don’t have |
Ohhh so such struct BytesRef<'a> {
pub length: Length,
#[cfg(feature = "alloc")]
pub inner: Cow<'a, [u8]>,
#[cfg(not(feature = "alloc"))]
pub inner: &'a [u8],
} |
But then you haven't actually gotten rid of the Anyway, if you'd like to keep discussing this, it would probably be better to open a separate issue. |
@baloo are you going to redo this? I think it would be great to get in before the next stable release series |
I guess I could, I honestly lost track. |
Aah ok, I'm down to take it then. Seems like it will be a bit of a mess but worth it. |
The rebase looks like it's a mess indeed. I can give it a shot, you have a fair amount of things on your hand. |
Sure! |
see #1117