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 @@ -695,6 +695,14 @@ impl TryFrom<&pkcs8::KeypairBytes> for SigningKey {
695
695
}
696
696
}
697
697
698
+ #[ cfg( feature = "pkcs8" ) ]
699
+ impl pkcs8:: spki:: SignatureAlgorithmIdentifier for SigningKey {
700
+ type Params = pkcs8:: spki:: der:: AnyRef < ' static > ;
701
+
702
+ const SIGNATURE_ALGORITHM_IDENTIFIER : pkcs8:: spki:: AlgorithmIdentifier < Self :: Params > =
703
+ <Signature as pkcs8:: spki:: AssociatedAlgorithmIdentifier >:: ALGORITHM_IDENTIFIER ;
704
+ }
705
+
698
706
#[ cfg( feature = "pkcs8" ) ]
699
707
impl From < SigningKey > for pkcs8:: KeypairBytes {
700
708
fn from ( signing_key : SigningKey ) -> pkcs8:: KeypairBytes {
Original file line number Diff line number Diff line change @@ -567,6 +567,15 @@ impl TryFrom<&[u8]> for VerifyingKey {
567
567
}
568
568
}
569
569
570
+ #[ cfg( feature = "pkcs8" ) ]
571
+ impl pkcs8:: spki:: SignatureAlgorithmIdentifier for VerifyingKey {
572
+ type Params = pkcs8:: spki:: der:: AnyRef < ' static > ;
573
+
574
+ const SIGNATURE_ALGORITHM_IDENTIFIER : pkcs8:: spki:: AlgorithmIdentifier < Self :: Params > =
575
+ <ed25519:: Signature as pkcs8:: spki:: AssociatedAlgorithmIdentifier >:: ALGORITHM_IDENTIFIER ;
576
+ }
577
+
578
+
570
579
impl From < VerifyingKey > for EdwardsPoint {
571
580
fn from ( vk : VerifyingKey ) -> EdwardsPoint {
572
581
vk. point
You can’t perform that action at this time.
0 commit comments