Closed JohnScience closed 2 months ago
I would like the rsa crate to also provide a function like https://docs.rs/rsa-der/latest/rsa_der/fn.public_key_from_der.html.
rsa
I can't use it directly because it returns Vec<u8> and I can't convert it in place because of the deallocation requirement for Layout.
Vec<u8>
Layout
Please see the documentation for decoding PKCS#1 and PKCS#8 keys:
I would like the
rsa
crate to also provide a function like https://docs.rs/rsa-der/latest/rsa_der/fn.public_key_from_der.html.I can't use it directly because it returns
Vec<u8>
and I can't convert it in place because of the deallocation requirement forLayout
.