We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 398c825 commit ec735aaCopy full SHA for ec735aa
Sources/JWA/HMAC/HMACCommonCrypto.swift
@@ -5,7 +5,7 @@ import CommonCrypto
5
extension HMACAlgorithm: SignAlgorithm, VerifyAlgorithm {
6
public func sign(_ message: Data) -> Data {
7
let context = UnsafeMutablePointer<CCHmacContext>.allocate(capacity: 1)
8
- defer { context.deallocate(capacity: 1) }
+ defer { context.deallocate() }
9
10
key.withUnsafeBytes() { (buffer: UnsafePointer<UInt8>) in
11
CCHmacInit(context, hash.commonCryptoAlgorithm, buffer, size_t(key.count))
0 commit comments