We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f9afe5a commit b1f9acfCopy full SHA for b1f9acf
src/Darp.Ble/AesCmac.cs
@@ -31,7 +31,7 @@ public AesCmac(ReadOnlySpan<byte> key)
31
/// <returns> The encrypted message. Always of length 16 </returns>
32
public byte[] Encrypt(ReadOnlySpan<byte> message)
33
{
34
- ICryptoTransform encryptor = _aes.CreateEncryptor();
+ using ICryptoTransform encryptor = _aes.CreateEncryptor();
35
36
// Step 1
37
Span<byte> subKey1 = stackalloc byte[16];
0 commit comments