feat: update pkcs11 piv
This commit is contained in:
@@ -72,13 +72,7 @@ impl PrivateKey for YubikeyPivPrivateKey {
|
||||
) -> P11Result<Vec<u8>> {
|
||||
match algorithm {
|
||||
SignatureAlgorithm::Ecdsa => {}
|
||||
SignatureAlgorithm::RsaRaw => {}
|
||||
SignatureAlgorithm::RsaPkcs1v15Raw => {}
|
||||
SignatureAlgorithm::RsaPkcs1v15Sha1 => {}
|
||||
SignatureAlgorithm::RsaPkcs1v15Sha384 => {}
|
||||
SignatureAlgorithm::RsaPkcs1v15Sha256 => {}
|
||||
SignatureAlgorithm::RsaPkcs1v15Sha512 => {}
|
||||
SignatureAlgorithm::RsaPss { .. } => {}
|
||||
_ => return Err("RSA algorithm not supported.")?,
|
||||
}
|
||||
// TODO sign data or hash??
|
||||
Ok(vec![])
|
||||
@@ -152,7 +146,10 @@ impl PublicKey for YubikeyPivPublicKey {
|
||||
data: &[u8],
|
||||
signature: &[u8],
|
||||
) -> P11Result<()> {
|
||||
// let algorithm = sigalg_to_seckeyalg(algorithm)?;
|
||||
match algorithm {
|
||||
SignatureAlgorithm::Ecdsa => {}
|
||||
_ => return Err("RSA algorithm not supported.")?,
|
||||
}
|
||||
// let result = self.sec_key.verify_signature(algorithm, data, signature)?;
|
||||
// if !result {
|
||||
// return Err("verify failed")?;
|
||||
|
||||
Reference in New Issue
Block a user