File tree Expand file tree Collapse file tree 2 files changed +17
-0
lines changed Expand file tree Collapse file tree 2 files changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -722,6 +722,14 @@ impl TryFrom<&pkcs8::KeypairBytes> for SigningKey {
722
722
}
723
723
}
724
724
725
+ #[ cfg( feature = "pkcs8" ) ]
726
+ impl pkcs8:: spki:: SignatureAlgorithmIdentifier for SigningKey {
727
+ type Params = pkcs8:: spki:: der:: AnyRef < ' static > ;
728
+
729
+ const SIGNATURE_ALGORITHM_IDENTIFIER : pkcs8:: spki:: AlgorithmIdentifier < Self :: Params > =
730
+ <Signature as pkcs8:: spki:: AssociatedAlgorithmIdentifier >:: ALGORITHM_IDENTIFIER ;
731
+ }
732
+
725
733
#[ cfg( feature = "pkcs8" ) ]
726
734
impl From < SigningKey > for pkcs8:: KeypairBytes {
727
735
fn from ( signing_key : SigningKey ) -> pkcs8:: KeypairBytes {
Original file line number Diff line number Diff line change @@ -610,6 +610,15 @@ impl TryFrom<&[u8]> for VerifyingKey {
610
610
}
611
611
}
612
612
613
+ #[ cfg( feature = "pkcs8" ) ]
614
+ impl pkcs8:: spki:: SignatureAlgorithmIdentifier for VerifyingKey {
615
+ type Params = pkcs8:: spki:: der:: AnyRef < ' static > ;
616
+
617
+ const SIGNATURE_ALGORITHM_IDENTIFIER : pkcs8:: spki:: AlgorithmIdentifier < Self :: Params > =
618
+ <ed25519:: Signature as pkcs8:: spki:: AssociatedAlgorithmIdentifier >:: ALGORITHM_IDENTIFIER ;
619
+ }
620
+
621
+
613
622
impl From < VerifyingKey > for EdwardsPoint {
614
623
fn from ( vk : VerifyingKey ) -> EdwardsPoint {
615
624
vk. point
You can’t perform that action at this time.
0 commit comments