signatures: Bump pkcs8 to 0.6.1 proper

This commit is contained in:
Jonathan de Jong 2021-06-02 21:06:56 +02:00 committed by Jonas Platte
parent c198cf6e9f
commit 97776d7132
No known key found for this signature in database
GPG Key ID: CC154DE0E30B7C67
2 changed files with 2 additions and 1 deletions

View File

@ -21,7 +21,7 @@ unstable-exhaustive-types = []
[dependencies]
base64 = "0.13.0"
ed25519-dalek = "1.0.1"
pkcs8 = { git = "https://github.com/RustCrypto/utils", rev = "51e7c9d734e4d3c5279ba1c181c65b1bd77bcad0", features = ["alloc", "std"] }
pkcs8 = { version = "0.6.1", features = ["alloc"] }
# because dalek uses an older version of rand_core
rand = { version = "0.7", features = ["getrandom"] }
ruma-identifiers = { version = "0.19.2", path = "../ruma-identifiers" }

View File

@ -139,6 +139,7 @@ impl Ed25519KeyPair {
let oak = OneAsymmetricKey {
algorithm: AlgorithmIdentifier { oid: ED25519_OID, parameters: None },
private_key: private.as_ref(),
attributes: None,
public_key: Some(public.as_bytes()),
};