@@ -6,14 +6,13 @@ use rustls::{
66 sign:: { Signer , SigningKey } ,
77 Error , OtherError , SignatureAlgorithm , SignatureScheme ,
88} ;
9-
10- use crate :: key:: { AlgorithmGroup , NCryptKey , SignaturePadding } ;
11-
12- use windows_sys:: Win32 :: Security :: Cryptography :: BCryptHash ;
9+ use rustls_pki_types:: SubjectPublicKeyInfoDer ;
1310use windows_sys:: Win32 :: Security :: Cryptography :: {
14- BCRYPT_SHA256_ALG_HANDLE , BCRYPT_SHA384_ALG_HANDLE , BCRYPT_SHA512_ALG_HANDLE ,
11+ BCryptHash , BCRYPT_SHA256_ALG_HANDLE , BCRYPT_SHA384_ALG_HANDLE , BCRYPT_SHA512_ALG_HANDLE ,
1512} ;
1613
14+ use crate :: key:: { AlgorithmGroup , NCryptKey , SignaturePadding } ;
15+
1716// Convert IEEE-P1363 signature format to DER encoding.
1817// We assume the length of the r and s parts is less than 256 bytes.
1918fn p1363_to_der ( data : & [ u8 ] ) -> Vec < u8 > {
@@ -193,6 +192,10 @@ impl SigningKey for CngSigningKey {
193192 None
194193 }
195194
195+ fn public_key ( & self ) -> Option < SubjectPublicKeyInfoDer < ' _ > > {
196+ None
197+ }
198+
196199 fn algorithm ( & self ) -> SignatureAlgorithm {
197200 match self . algorithm_group {
198201 AlgorithmGroup :: Rsa => SignatureAlgorithm :: RSA ,
0 commit comments