Skip to content

Commit df1f1cf

Browse files
committed
Prepare 0.6.0 release
1 parent 3777fa0 commit df1f1cf

File tree

10 files changed

+43
-18
lines changed

10 files changed

+43
-18
lines changed

CHANGELOG.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,19 @@
11
# CHANGELOG
22

3+
## Version 0.6.0 (2025-01-15)
4+
- Adds `BLAKE2b` and `BLAKE2s` message authentication.
5+
- Updates `KotlinCrypto.core` and `KotlinCrypto.hash` to `0.6.0`
6+
- Updates all implementations to conform to `KotlinCrypto.core` `0.6.0` modifications
7+
to `Mac` and `Mac.Engine` internal API.
8+
- All implementations now define a proper return type for `copy` (instead of `Mac`).
9+
- All implementations can now be reinitialized with a new `key` via `Mac.reset(newKey)`
10+
- Removes all `@Throws` annotations from constructors (it is documented).
11+
- Finalizes `Hmac` API and removes `InternalKotlinCryptoApi` opt-in requirement from constructors.
12+
- Deprecates `HmacSHA512_224` and `HmacSHA512_256` top-level functions.
13+
- `Kmac` now implements `ReKeyableXofAlgorithm` so that the `Xof` can be reinitialized via `Xof.Companion.reset`.
14+
- `Xof<Kmac>` instances now zero out the key block for the copy of the underlying `Mac.Engine` whenever
15+
a new `Xof.Reader` is created.
16+
317
## Version 0.5.6 (2024-12-28)
418
- Updates `kotlincrypto.hash` to `0.5.6` [[#56]][56]
519

README.md

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,17 @@ fun main() {
102102

103103
key.fill(0)
104104
}
105+
````
106+
107+
`BLAKE2 Macs`
108+
109+
```kotlin
110+
fun main() {
111+
val key = SecureRandom().nextBytesOf(100)
112+
113+
BLAKE2b(key, 512)
114+
BLAKE2s(key, 256)
115+
}
105116
```
106117

107118
### Get Started
@@ -116,7 +127,7 @@ shown below.
116127
// build.gradle.kts
117128
dependencies {
118129
// define the BOM and its version
119-
implementation(platform("org.kotlincrypto.macs:bom:0.5.6"))
130+
implementation(platform("org.kotlincrypto.macs:bom:0.6.0"))
120131

121132
// define artifacts without version
122133

@@ -140,13 +151,13 @@ dependencies {
140151
```
141152

142153
<!-- TAG_VERSION -->
143-
[badge-latest-release]: https://img.shields.io/badge/latest--release-0.5.6-blue.svg?style=flat
154+
[badge-latest-release]: https://img.shields.io/badge/latest--release-0.6.0-blue.svg?style=flat
144155
[badge-license]: https://img.shields.io/badge/license-Apache%20License%202.0-blue.svg?style=flat
145156

146157
<!-- TAG_DEPENDENCIES -->
147158
[badge-kotlin]: https://img.shields.io/badge/kotlin-1.9.24-blue.svg?logo=kotlin
148-
[badge-core]: https://img.shields.io/badge/kotlincrypto.core-0.5.5-blue.svg
149-
[badge-hash]: https://img.shields.io/badge/kotlincrypto.hash-0.5.6-blue.svg
159+
[badge-core]: https://img.shields.io/badge/kotlincrypto.core-0.6.0-blue.svg
160+
[badge-hash]: https://img.shields.io/badge/kotlincrypto.hash-0.6.0-blue.svg
150161

151162
<!-- TAG_PLATFORMS -->
152163
[badge-platform-android]: http://img.shields.io/badge/-android-6EDB8D.svg?style=flat

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ POM_DEVELOPER_ID=KotlinCrypto
3030
POM_DEVELOPER_NAME=Kotlin Crypto
3131
POM_DEVELOPER_URL=https://github.com/KotlinCrypto/
3232

33-
VERSION_NAME=0.6.0-SNAPSHOT
33+
VERSION_NAME=0.6.0
3434
# 0.1.0-alpha01 = 00 01 00 11
3535
# 0.1.0-beta01 = 00 01 00 21
3636
# 0.1.0-rc01 = 00 01 00 31

library/blake2/gradle.properties

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,5 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414
POM_ARTIFACT_ID=blake2
15-
POM_NAME=KotlinCrypto MACs BLAKE2b, BLAKE2s
16-
POM_DESCRIPTION=MACs for BLAKE2b, BLAKE2s
15+
POM_NAME=KotlinCrypto BLAKE2 Message Authentication Code
16+
POM_DESCRIPTION=Macs for BLAKE2b, BLAKE2s

library/hmac/hmac-md/gradle.properties

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,5 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414
POM_ARTIFACT_ID=hmac-md
15-
POM_NAME=KotlinCrypto HmacMD5
16-
POM_DESCRIPTION=HmacMD5 Message Authentication
15+
POM_NAME=KotlinCrypto MD Hash-based Message Authentication Code
16+
POM_DESCRIPTION=Macs for HmacMD5

library/hmac/hmac-sha1/gradle.properties

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,5 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414
POM_ARTIFACT_ID=hmac-sha1
15-
POM_NAME=KotlinCrypto HmacSHA1
16-
POM_DESCRIPTION=HmacSHA1 Message Authentication
15+
POM_NAME=KotlinCrypto SHA1 Hash-based Message Authentication Code
16+
POM_DESCRIPTION=Macs for HmacSHA1

library/hmac/hmac-sha2/gradle.properties

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,5 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414
POM_ARTIFACT_ID=hmac-sha2
15-
POM_NAME=KotlinCrypto HmacSHA224, HmacSHA256, HmacSHA384, HmacSHA512, HmacSHA512/t,
16-
POM_DESCRIPTION=HmacSHA224, HmacSHA256, HmacSHA384, HmacSHA512, and HmacSHA512/t Message Authentication
15+
POM_NAME=KotlinCrypto SHA2 Hash-based Message Authentication Code
16+
POM_DESCRIPTION=Macs for HmacSHA224, HmacSHA256, HmacSHA384, HmacSHA512, and HmacSHA512/t

library/hmac/hmac-sha3/gradle.properties

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,5 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414
POM_ARTIFACT_ID=hmac-sha3
15-
POM_NAME=KotlinCrypto HmacSHA3/HmacKeccak
16-
POM_DESCRIPTION=HmacSHA3-224, HmacSHA3-256, HmacSHA3-384, HmacSHA3-512, HmacKeccak224, HmacKeccak256, HmacKeccak384, HmacKeccak512 Message Authentication
15+
POM_NAME=KotlinCrypto SHA3 Hash-based Message Authentication Code
16+
POM_DESCRIPTION=Macs for HmacSHA3-224, HmacSHA3-256, HmacSHA3-384, HmacSHA3-512, HmacKeccak224, HmacKeccak256, HmacKeccak384, HmacKeccak512

library/hmac/hmac/gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@
1313
# limitations under the License.
1414
POM_ARTIFACT_ID=hmac
1515
POM_NAME=KotlinCrypto Hash-based Message Authentication Code
16-
POM_DESCRIPTION=Component for creating Hmac implementations
16+
POM_DESCRIPTION=Hmac abstraction for higher level implementations

library/kmac/gradle.properties

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,5 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414
POM_ARTIFACT_ID=kmac
15-
POM_NAME=KotlinCrypto Keccak-based Message Authentication Code
16-
POM_DESCRIPTION=KMAC128, KMAC256
15+
POM_NAME=KotlinCrypto SHA3 Keccak-based Message Authentication Code
16+
POM_DESCRIPTION=Macs for KMAC128, KMAC256

0 commit comments

Comments
 (0)