diff --git a/CHANGELOG.md b/CHANGELOG.md index a3abc4b..1bd9399 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,12 +5,19 @@ This project adheres to [Semantic Versioning](http://semver.org/). ## [Unreleased](https://github.com/openium/SwiftiumKit/compare/2.1.0...HEAD) ### Added -replaceOccurences on String ### Changed ### Removed +## [2.1.1](https://github.com/openium/SwiftiumKit/compare/2.1.0...2.1.0) +### Added + +### Changed +- Fix withUnsafeBytes using Xcode 14 + +### Removed + ## [2.1.0](https://github.com/openium/SwiftiumKit/compare/2.1.0...2.0.0) ### Added replaceOccurences on String @@ -21,26 +28,26 @@ replaceOccurences on String ## [2.0.0](https://github.com/openium/SwiftiumKit/compare/2.0.0...1.7.0) ### Added -SPM Support +- SPM Support ### Changed ### Removed -Carthage support +- Carthage support ## [1.7.0](https://github.com/openium/SwiftiumKit/compare/v1.7.0...1.6.0) - 2020-01-07 ### Added ### Changed -Remove objc code to prepare SPM support (2.0) +- Remove objc code to prepare SPM support (2.0) ### Removed -force push of tag latest +- Force push of tag latest ## [1.6.0](https://github.com/openium/SwiftiumKit/compare/v1.5.0...v1.6.0) - 2019-11-06 ### Added -String extension to validate an email address -Setted BUILD_LIBRARY_FOR_DISTRIBUTION to YES to get module stability +- String extension to validate an email address +- Setted BUILD_LIBRARY_FOR_DISTRIBUTION to YES to get module stability ### Changed @@ -74,10 +81,8 @@ Setted BUILD_LIBRARY_FOR_DISTRIBUTION to YES to get module stability - Add addition operators on Dictionaries. ### Changed -nothing ### Removed -nothing ## [1.2.0] (https://github.com/openium/SwiftiumKit/compare/v1.1.1...v1.2.0)- 2016-10-19 ### Added diff --git a/Sources/SwiftiumKit/Additions/Foundation/NSDataExtensions.swift b/Sources/SwiftiumKit/Additions/Foundation/NSDataExtensions.swift index b2aea7b..988543a 100644 --- a/Sources/SwiftiumKit/Additions/Foundation/NSDataExtensions.swift +++ b/Sources/SwiftiumKit/Additions/Foundation/NSDataExtensions.swift @@ -17,7 +17,7 @@ private typealias SKCryptOperationFunction = (Data, String) -> Data? func sk_crypto_operate(operation: CCOperation, keySize: Int, data: Data, keyData: Data) -> Data? { let keyBytes = UnsafeMutablePointer.allocate(capacity: keySize) keyBytes.initialize(to: 0) - keyData.withUnsafeBytes { (bytes) in + keyData.withUnsafeBytes { (bytes: UnsafeRawBufferPointer) in for index in 0..