diff --git a/CHANGELOG.md b/CHANGELOG.md index e783fa0..6183e90 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,18 @@ ## [Unreleased] +## [0.1.3] - 2022-10-05 + +### Fixed + +* Fix ArrayIndexOutOfBoundsException when using `emptyBytes.refTo`. + +### Changed + +* Replace `dataWithBytes` with `dataWithBytesNoCopy` to avoid allocation. +* Use `as` to convert between `ByteVar` and `UByteVar` because they have the same bit layout. +* Avoid creating `NSData` when using `Aes-Gcm` for encryption. + ## [0.1.2] - 2022-09-12 ### Fixed diff --git a/README-zh.md b/README-zh.md index 813847a..b6f905b 100644 --- a/README-zh.md +++ b/README-zh.md @@ -43,13 +43,13 @@ Diglol Crypto for Kotlin Multiplatform. 包含所有的子模块 ```gradle -implementation("com.diglol.crypto:crypto:0.1.2") +implementation("com.diglol.crypto:crypto:0.1.3") ``` _如果需要依赖子模块,请参考当前支持的加密常量。_ ```gradle -implementation("com.diglol.crypto:${submodule}:0.1.2") +implementation("com.diglol.crypto:${submodule}:0.1.3") ``` ### License diff --git a/README.md b/README.md index ca9d48c..41f9df6 100644 --- a/README.md +++ b/README.md @@ -43,13 +43,13 @@ Our [change log](CHANGELOG.md) has release history. Include all submodules. ```gradle -implementation("com.diglol.crypto:crypto:0.1.2") +implementation("com.diglol.crypto:crypto:0.1.3") ``` _If you need to depend on a submodule, please refer to the currently supported cryptographic constants._ ```gradle -implementation("com.diglol.crypto:${submodule}:0.1.2") +implementation("com.diglol.crypto:${submodule}:0.1.3") ``` ### License diff --git a/build.gradle.kts b/build.gradle.kts index e0e280a..3dcaa88 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -24,7 +24,7 @@ buildscript { allprojects { group = "com.diglol.crypto" - version = "0.2.0-SNAPSHOT" + version = "0.1.3" repositories { mavenCentral()