Skip to content
This repository has been archived by the owner on Apr 1, 2024. It is now read-only.

Commit

Permalink
Address another warning
Browse files Browse the repository at this point in the history
  • Loading branch information
AArnott committed Aug 17, 2020
1 parent 1ca7383 commit 214606a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/PCLCrypto/iOS/RsaAsymmetricKeyAlgorithmProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ public ICryptographicKey ImportPublicKey(byte[] keyBlob, CryptographicPublicKeyB
// Inject the PKCS#1 public key into the KeyChain.
string keyIdentifier = Guid.NewGuid().ToString();
string publicKeyIdentifier = RsaCryptographicKey.GetPublicKeyIdentifierWithTag(keyIdentifier);
var keyQueryDictionary = RsaCryptographicKey.CreateKeyQueryDictionary(publicKeyIdentifier);
using var keyQueryDictionary = RsaCryptographicKey.CreateKeyQueryDictionary(publicKeyIdentifier);
keyQueryDictionary[KSec.ValueData] = NSData.FromArray(KeyFormatter.Pkcs1.Write(parameters, includePrivateKey: false));
keyQueryDictionary[KSec.AttrKeyClass] = KSec.AttrKeyClassPublic;
keyQueryDictionary[KSec.ReturnRef] = NSNumber.FromBoolean(true);
Expand Down

0 comments on commit 214606a

Please # to comment.