This code is derived from: https://github.com/briansmith/ring/blob/main/src/pkcs8.rs. It added ed25519 support.
cellar-pkcs8 is distributed under the terms of MIT.
cellar-pkcs8
See LICENSE for details.