You've already forked linux-packaging-mono
Imported Upstream version 4.6.0.150
Former-commit-id: 73e3bb1e96dd09dc931c1dfe559d2c7f7b8b02c7
This commit is contained in:
parent
02ac915603
commit
b95516a3dd
@@ -241,5 +241,19 @@ namespace System.Security.Cryptography {
|
||||
return s_sha512;
|
||||
}
|
||||
}
|
||||
|
||||
#if NETSTANDARD
|
||||
public static CngAlgorithm ECDiffieHellman {
|
||||
get {
|
||||
throw new NotImplementedException ();
|
||||
}
|
||||
}
|
||||
|
||||
public static CngAlgorithm ECDsa {
|
||||
get {
|
||||
throw new NotImplementedException ();
|
||||
}
|
||||
}
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
@@ -32,7 +32,206 @@ namespace System.Security.Cryptography {
|
||||
[System.Security.Permissions.HostProtection(MayLeakOnAbort = true)]
|
||||
public sealed class CngKey : IDisposable {
|
||||
#if MONO
|
||||
public CngAlgorithmGroup AlgorithmGroup {
|
||||
[SecuritySafeCritical]
|
||||
[Pure]
|
||||
get {
|
||||
throw new NotImplementedException ();
|
||||
}
|
||||
}
|
||||
|
||||
public CngAlgorithm Algorithm {
|
||||
[SecuritySafeCritical]
|
||||
get {
|
||||
throw new NotImplementedException ();
|
||||
}
|
||||
}
|
||||
|
||||
public CngExportPolicies ExportPolicy {
|
||||
[SecuritySafeCritical]
|
||||
get {
|
||||
throw new NotImplementedException ();
|
||||
}
|
||||
}
|
||||
|
||||
public SafeNCryptKeyHandle Handle {
|
||||
[System.Security.SecurityCritical]
|
||||
[SecurityPermission(SecurityAction.Demand, UnmanagedCode = true)]
|
||||
get {
|
||||
throw new NotImplementedException ();
|
||||
}
|
||||
}
|
||||
|
||||
public bool IsEphemeral {
|
||||
[SecuritySafeCritical]
|
||||
[Pure]
|
||||
get {
|
||||
throw new NotImplementedException ();
|
||||
}
|
||||
|
||||
[System.Security.SecurityCritical]
|
||||
private set {
|
||||
throw new NotImplementedException ();
|
||||
}
|
||||
}
|
||||
|
||||
public bool IsMachineKey {
|
||||
[SecuritySafeCritical]
|
||||
get {
|
||||
throw new NotImplementedException ();
|
||||
}
|
||||
}
|
||||
|
||||
public string KeyName {
|
||||
[SecuritySafeCritical]
|
||||
get {
|
||||
throw new NotImplementedException ();
|
||||
}
|
||||
}
|
||||
|
||||
public int KeySize {
|
||||
[SecuritySafeCritical]
|
||||
get {
|
||||
throw new NotImplementedException ();
|
||||
}
|
||||
}
|
||||
|
||||
public CngKeyUsages KeyUsage {
|
||||
[SecuritySafeCritical]
|
||||
get {
|
||||
throw new NotImplementedException ();
|
||||
}
|
||||
}
|
||||
|
||||
public IntPtr ParentWindowHandle {
|
||||
[SecuritySafeCritical]
|
||||
get {
|
||||
throw new NotImplementedException ();
|
||||
}
|
||||
|
||||
[SecuritySafeCritical]
|
||||
[SecurityPermission(SecurityAction.Demand, UnmanagedCode = true)]
|
||||
set {
|
||||
throw new NotImplementedException ();
|
||||
}
|
||||
}
|
||||
|
||||
public CngProvider Provider {
|
||||
[SecuritySafeCritical]
|
||||
get {
|
||||
throw new NotImplementedException ();
|
||||
}
|
||||
}
|
||||
|
||||
public SafeNCryptProviderHandle ProviderHandle {
|
||||
[System.Security.SecurityCritical]
|
||||
[SecurityPermission(SecurityAction.Demand, UnmanagedCode = true)]
|
||||
get {
|
||||
throw new NotImplementedException ();
|
||||
}
|
||||
}
|
||||
|
||||
public string UniqueName {
|
||||
[SecuritySafeCritical]
|
||||
get {
|
||||
throw new NotImplementedException ();
|
||||
}
|
||||
}
|
||||
|
||||
public CngUIPolicy UIPolicy {
|
||||
[SecuritySafeCritical]
|
||||
get {
|
||||
throw new NotImplementedException ();
|
||||
}
|
||||
}
|
||||
|
||||
public static CngKey Create(CngAlgorithm algorithm) {
|
||||
throw new NotImplementedException ();
|
||||
}
|
||||
|
||||
public static CngKey Create(CngAlgorithm algorithm, string keyName) {
|
||||
throw new NotImplementedException ();
|
||||
}
|
||||
|
||||
[SecuritySafeCritical]
|
||||
public static CngKey Create(CngAlgorithm algorithm, string keyName, CngKeyCreationParameters creationParameters) {
|
||||
throw new NotImplementedException ();
|
||||
}
|
||||
|
||||
[SecuritySafeCritical]
|
||||
public void Delete() {
|
||||
throw new NotImplementedException ();
|
||||
}
|
||||
|
||||
[SecuritySafeCritical]
|
||||
[SuppressMessage("Microsoft.Security", "CA2122:DoNotIndirectlyExposeMethodsWithLinkDemands", Justification = "Reviewed")]
|
||||
public void Dispose() {
|
||||
throw new NotImplementedException ();
|
||||
}
|
||||
|
||||
public static bool Exists(string keyName) {
|
||||
throw new NotImplementedException ();
|
||||
}
|
||||
|
||||
public static bool Exists(string keyName, CngProvider provider) {
|
||||
throw new NotImplementedException ();
|
||||
}
|
||||
|
||||
[SecuritySafeCritical]
|
||||
[SuppressMessage("Microsoft.Security", "CA2122:DoNotIndirectlyExposeMethodsWithLinkDemands", Justification = "Reviewed")]
|
||||
public static bool Exists(string keyName, CngProvider provider, CngKeyOpenOptions options) {
|
||||
throw new NotImplementedException ();
|
||||
}
|
||||
|
||||
public static CngKey Import(byte[] keyBlob, CngKeyBlobFormat format) {
|
||||
throw new NotImplementedException ();
|
||||
}
|
||||
|
||||
[SecuritySafeCritical]
|
||||
public static CngKey Import(byte[] keyBlob, CngKeyBlobFormat format, CngProvider provider) {
|
||||
throw new NotImplementedException ();
|
||||
}
|
||||
|
||||
[SecuritySafeCritical]
|
||||
public byte[] Export(CngKeyBlobFormat format) {
|
||||
throw new NotImplementedException ();
|
||||
}
|
||||
|
||||
[SecuritySafeCritical]
|
||||
[SecurityPermission(SecurityAction.Demand, UnmanagedCode = true)]
|
||||
public CngProperty GetProperty(string name, CngPropertyOptions options) {
|
||||
throw new NotImplementedException ();
|
||||
}
|
||||
|
||||
[SecuritySafeCritical]
|
||||
[SecurityPermission(SecurityAction.Demand, UnmanagedCode = true)]
|
||||
public bool HasProperty(string name, CngPropertyOptions options) {
|
||||
throw new NotImplementedException ();
|
||||
}
|
||||
|
||||
public static CngKey Open(string keyName) {
|
||||
throw new NotImplementedException ();
|
||||
}
|
||||
|
||||
public static CngKey Open(string keyName, CngProvider provider) {
|
||||
throw new NotImplementedException ();
|
||||
}
|
||||
|
||||
[SecuritySafeCritical]
|
||||
public static CngKey Open(string keyName, CngProvider provider, CngKeyOpenOptions openOptions) {
|
||||
throw new NotImplementedException ();
|
||||
}
|
||||
|
||||
[System.Security.SecurityCritical]
|
||||
[SecurityPermission(SecurityAction.Demand, UnmanagedCode = true)]
|
||||
public static CngKey Open(SafeNCryptKeyHandle keyHandle, CngKeyHandleOpenOptions keyHandleOpenOptions) {
|
||||
throw new NotImplementedException ();
|
||||
}
|
||||
|
||||
[SecuritySafeCritical]
|
||||
[SecurityPermission(SecurityAction.Demand, UnmanagedCode = true)]
|
||||
public void SetProperty(CngProperty property) {
|
||||
throw new NotImplementedException ();
|
||||
}
|
||||
#else
|
||||
private SafeNCryptKeyHandle m_keyHandle;
|
||||
|
@@ -119,6 +119,20 @@ namespace System.Security.Cryptography {
|
||||
}
|
||||
}
|
||||
|
||||
#if NETSTANDARD
|
||||
public static CngKeyBlobFormat EccFullPrivateBlob {
|
||||
get {
|
||||
throw new NotImplementedException ();
|
||||
}
|
||||
}
|
||||
|
||||
public static CngKeyBlobFormat EccFullPublicBlob {
|
||||
get {
|
||||
throw new NotImplementedException ();
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
public static CngKeyBlobFormat GenericPrivateBlob {
|
||||
get {
|
||||
Contract.Ensures(Contract.Result<CngKeyBlobFormat>() != null);
|
||||
|
@@ -41,6 +41,38 @@ namespace System.Security.Cryptography {
|
||||
return CryptoConfig.CreateFromName(algorithm) as ECDsa;
|
||||
}
|
||||
|
||||
#if NETSTANDARD
|
||||
public static ECDsa Create (ECCurve curve)
|
||||
{
|
||||
throw new NotImplementedException ();
|
||||
}
|
||||
|
||||
public static ECDsa Create (ECParameters parameters)
|
||||
{
|
||||
throw new NotImplementedException ();
|
||||
}
|
||||
|
||||
public virtual ECParameters ExportExplicitParameters (bool includePrivateParameters)
|
||||
{
|
||||
throw new NotImplementedException ();
|
||||
}
|
||||
|
||||
public virtual ECParameters ExportParameters (bool includePrivateParameters)
|
||||
{
|
||||
throw new NotImplementedException ();
|
||||
}
|
||||
|
||||
public virtual void GenerateKey (ECCurve curve)
|
||||
{
|
||||
throw new NotImplementedException ();
|
||||
}
|
||||
|
||||
public virtual void ImportParameters (ECParameters parameters)
|
||||
{
|
||||
throw new NotImplementedException ();
|
||||
}
|
||||
#endif
|
||||
|
||||
//
|
||||
// Signature operations
|
||||
//
|
||||
|
@@ -19,6 +19,34 @@ namespace System.Security.Cryptography {
|
||||
[System.Security.Permissions.HostProtection(MayLeakOnAbort = true)]
|
||||
public sealed class ECDsaCng : ECDsa {
|
||||
#if MONO
|
||||
public ECDsaCng() : this(521) {
|
||||
}
|
||||
|
||||
public ECDsaCng(int keySize) {
|
||||
throw new NotImplementedException ();
|
||||
}
|
||||
|
||||
[SecuritySafeCritical]
|
||||
public ECDsaCng(CngKey key) {
|
||||
throw new NotImplementedException ();
|
||||
}
|
||||
|
||||
#if NETSTANDARD
|
||||
public ECDsaCng(ECCurve curve) {
|
||||
throw new NotImplementedException ();
|
||||
}
|
||||
#endif
|
||||
|
||||
public CngKey Key {
|
||||
get {
|
||||
throw new NotImplementedException ();
|
||||
}
|
||||
|
||||
private set {
|
||||
throw new NotImplementedException ();
|
||||
}
|
||||
}
|
||||
|
||||
public override byte[] SignHash(byte[] hash) {
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
@@ -11,6 +11,34 @@ namespace System.Security.Cryptography
|
||||
public sealed class RSACng : RSA
|
||||
{
|
||||
#if MONO
|
||||
public RSACng() : this(2048) { }
|
||||
|
||||
public RSACng(int keySize)
|
||||
{
|
||||
throw new NotImplementedException ();
|
||||
}
|
||||
|
||||
#if NETSTANDARD
|
||||
public RSACng(CngKey key)
|
||||
{
|
||||
throw new NotImplementedException ();
|
||||
}
|
||||
#endif
|
||||
|
||||
public CngKey Key
|
||||
{
|
||||
[SecuritySafeCritical]
|
||||
get
|
||||
{
|
||||
throw new NotImplementedException ();
|
||||
}
|
||||
|
||||
private set
|
||||
{
|
||||
throw new NotImplementedException ();
|
||||
}
|
||||
}
|
||||
|
||||
public override RSAParameters ExportParameters(bool includePrivateParameters)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
|
Reference in New Issue
Block a user