def get_private_key_label(pkey):
if isinstance(pkey, rsa.RSAPrivateKey):
return "RSA Private Key"
elif isinstance(pkey, dsa.DSAPrivateKey):
return "DSA Private Key"
elif isinstance(pkey, ec.EllipticCurvePrivateKey):
return "Elliptic Curve Private Key"
return None
评论列表
文章目录