You've already forked linux-packaging-mono
Imported Upstream version 5.16.0.100
Former-commit-id: 38faa55fb9669e35e7d8448b15c25dc447f25767
This commit is contained in:
parent
0a9828183b
commit
7d7f676260
@@ -132,20 +132,15 @@ namespace System.Security.Cryptography.X509Certificates {
|
||||
|
||||
public AsymmetricAlgorithm Key {
|
||||
get {
|
||||
if (_key == null) {
|
||||
switch (_oid.Value) {
|
||||
case rsaOid:
|
||||
_key = DecodeRSA (_keyValue.RawData);
|
||||
break;
|
||||
case dsaOid:
|
||||
_key = DecodeDSA (_keyValue.RawData, _params.RawData);
|
||||
break;
|
||||
default:
|
||||
string msg = Locale.GetText ("Cannot decode public key from unknown OID '{0}'.", _oid.Value);
|
||||
throw new NotSupportedException (msg);
|
||||
}
|
||||
switch (_oid.Value) {
|
||||
case rsaOid:
|
||||
return DecodeRSA (_keyValue.RawData);
|
||||
case dsaOid:
|
||||
return DecodeDSA (_keyValue.RawData, _params.RawData);
|
||||
default:
|
||||
string msg = Locale.GetText ("Cannot decode public key from unknown OID '{0}'.", _oid.Value);
|
||||
throw new NotSupportedException (msg);
|
||||
}
|
||||
return _key;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user