add nullable directives to common source files
authorEirik Tsarpalis <eirik.tsarpalis@gmail.com>
Mon, 10 Feb 2020 21:26:59 +0000 (21:26 +0000)
committerEirik Tsarpalis <eirik.tsarpalis@gmail.com>
Fri, 14 Feb 2020 15:32:53 +0000 (15:32 +0000)
src/libraries/Common/src/Internal/Cryptography/HashProviderCng.cs
src/libraries/Common/src/Interop/Windows/BCrypt/BCryptAlgorithmCache.cs
src/libraries/Common/src/System/Security/Cryptography/Asn1/AlgorithmIdentifierAsn.manual.cs
src/libraries/Common/src/System/Security/Cryptography/CngPkcs8.cs
src/libraries/Common/src/System/Security/Cryptography/DSACng.ImportExport.cs
src/libraries/Common/src/System/Security/Cryptography/ECDiffieHellmanCng.cs
src/libraries/Common/src/System/Security/Cryptography/RSACng.ImportExport.cs

index a70eb59..319629c 100644 (file)
@@ -2,6 +2,7 @@
 // The .NET Foundation licenses this file to you under the MIT license.
 // See the LICENSE file in the project root for more information.
 
+#nullable enable
 using System;
 using System.Diagnostics;
 using Microsoft.Win32.SafeHandles;
index f45f577..fa8e593 100644 (file)
@@ -2,6 +2,7 @@
 // The .NET Foundation licenses this file to you under the MIT license.
 // See the LICENSE file in the project root for more information.
 
+#nullable enable
 using System;
 using System.Diagnostics;
 using System.Collections.Generic;
index 7235166..a68f369 100644 (file)
@@ -2,6 +2,7 @@
 // The .NET Foundation licenses this file to you under the MIT license.
 // See the LICENSE file in the project root for more information.
 
+#nullable enable
 using System.Runtime.InteropServices;
 
 namespace System.Security.Cryptography.Asn1
index 29c41cb..6f4beba 100644 (file)
@@ -2,6 +2,7 @@
 // The .NET Foundation licenses this file to you under the MIT license.
 // See the LICENSE file in the project root for more information.
 
+#nullable enable
 using System.Buffers;
 using System.Diagnostics;
 using System.Runtime.InteropServices;
index 1d94246..ded87de 100644 (file)
@@ -2,6 +2,7 @@
 // The .NET Foundation licenses this file to you under the MIT license.
 // See the LICENSE file in the project root for more information.
 
+#nullable enable
 using Internal.Cryptography;
 using System.Diagnostics;
 
index 81ee01f..20cef43 100644 (file)
@@ -115,7 +115,7 @@ namespace System.Security.Cryptography
                     return Interop.NCrypt.DeriveKeyMaterialHmac(
                         secretAgreement,
                         hashAlgorithm.Name,
-                        hmacKey!,
+                        hmacKey,
                         secretPrepend,
                         secretAppend,
                         flags);
index 86950a2..1e577f7 100644 (file)
@@ -2,6 +2,7 @@
 // The .NET Foundation licenses this file to you under the MIT license.
 // See the LICENSE file in the project root for more information.
 
+#nullable enable
 using System.Diagnostics;
 using Internal.Cryptography;
 using Internal.NativeCrypto;