Skip to content

Commit 016130f

Browse files
committed
Prepare 0.2.4 release
1 parent ed787b8 commit 016130f

File tree

4 files changed

+37
-30
lines changed

4 files changed

+37
-30
lines changed

CHANGELOG.md

Lines changed: 20 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,22 @@
11
# CHANGELOG
22

3-
## Version 0.2.3 (2023-07-08)
3+
## Version 0.2.4 (2023-04-16)
4+
- Updates `kotlincrypto.core` to `0.2.4`
5+
- Updates `kotlincrypto.hash` to `0.2.4`
6+
- Adds a new module `kmac` [[#26]][26]
7+
- Adds `KMAC128`
8+
- Adds `KMAC256`
9+
10+
## Version 0.2.3 (2023-04-08)
411
- Adds a new module, `hmac-sha3` [[#21]][21]
5-
- `HmacKeccak224`
6-
- `HmacKeccak256`
7-
- `HmacKeccak384`
8-
- `HmacKeccak512`
9-
- `HmacSHA3_224`
10-
- `HmacSHA3_256`
11-
- `HmacSHA3_384`
12-
- `HmacSHA3_512`
12+
- Adds `HmacKeccak224`
13+
- Adds `HmacKeccak256`
14+
- Adds `HmacKeccak384`
15+
- Adds `HmacKeccak512`
16+
- Adds `HmacSHA3-224`
17+
- Adds `HmacSHA3-256`
18+
- Adds `HmacSHA3-384`
19+
- Adds `HmacSHA3-512`
1320
- Cleans up `Hmac` implementation [[#21]][21]
1421
- Updates `kotlincrypto.core` to `0.2.3` [[#23]][23]
1522
- Updates `kotlincrypto.hash` to `0.2.3` [[#23]][23]
@@ -19,9 +26,9 @@
1926
- Updates `kotlincrypto.hash` to `0.2.1`
2027

2128
## Version 0.2.0 (2023-03-12)
22-
- Adds `HmacSHA224` algorithm
23-
- Adds `HmacSHA384` algorithm
24-
- Adds `HmacSHA512t` algorithm
29+
- Adds `HmacSHA224`
30+
- Adds `HmacSHA384`
31+
- Adds `HmacSHA512t`
2532
- Combines all `hmac-sha2-*` algorithms into single `hmac-sha2` module
2633

2734
## Version 0.1.0 (2023-03-06)
@@ -36,3 +43,4 @@
3643

3744
[21]: https://github.com/KotlinCrypto/MACs/pull/21
3845
[23]: https://github.com/KotlinCrypto/MACs/pull/23
46+
[26]: https://github.com/KotlinCrypto/MACs/pull/26

README.md

Lines changed: 14 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -84,26 +84,27 @@ fun main() {
8484
}
8585
```
8686

87-
<!-- TODO: Uncomment
8887
`SHA3 KMAC & XOFs` (i.e. [Extendable-Output Functions][url-pub-xof])
8988

9089
See [HERE][url-core-usage] for details on what `XOFs` are, and a basic usage example for `Xof`.
9190

9291
```kotlin
9392
fun main() {
9493
val key = SecureRandom().nextBytesOf(100)
95-
96-
KMAC128(key) // as a Mac
97-
KMAC128.xOf(key) // as a Xof (Extendable-Output Function)
9894

9995
val S = "My Customization".encodeToByteArray()
100-
KMAC256(key, S, outputLength = 123)
96+
97+
// Macs
98+
KMAC128(key)
99+
KMAC256(key, S, outputLength = 123) // returns 123 bytes instead of the default when doFinal() is invoked
100+
101+
// Xofs
102+
KMAC128.xOf(key, S)
101103
KMAC256.xOf(key)
102104

103105
key.fill(0)
104106
}
105107
```
106-
-->
107108

108109
### Get Started
109110

@@ -113,16 +114,11 @@ shown below.
113114

114115
<!-- TAG_VERSION -->
115116

116-
<!-- TODO: Add to dependencies
117-
// KMAC128, KMAC256
118-
implementation("org.kotlincrypto.macs:kmac")
119-
-->
120-
121117
```kotlin
122118
// build.gradle.kts
123119
dependencies {
124120
// define the BOM and its version
125-
implementation(platform("org.kotlincrypto.macs:bom:0.2.3"))
121+
implementation(platform("org.kotlincrypto.macs:bom:0.2.4"))
126122

127123
// define artifacts without version
128124

@@ -138,17 +134,20 @@ dependencies {
138134
// HmacKeccak224, HmacKeccak256, HmacKeccak384, HmacKeccak512
139135
// HmacSHA3-224, HmacSHA3-256, HmacSHA3-384, HmacSHA3-512
140136
implementation("org.kotlincrypto.macs:hmac-sha3")
137+
138+
// KMAC128, KMAC256
139+
implementation("org.kotlincrypto.macs:kmac")
141140
}
142141
```
143142

144143
<!-- TAG_VERSION -->
145-
[badge-latest-release]: https://img.shields.io/badge/latest--release-0.2.3-blue.svg?style=flat
144+
[badge-latest-release]: https://img.shields.io/badge/latest--release-0.2.4-blue.svg?style=flat
146145
[badge-license]: https://img.shields.io/badge/license-Apache%20License%202.0-blue.svg?style=flat
147146

148147
<!-- TAG_DEPENDENCIES -->
149148
[badge-kotlin]: https://img.shields.io/badge/kotlin-1.8.10-blue.svg?logo=kotlin
150-
[badge-core]: https://img.shields.io/badge/kotlincrypto.core-0.2.3-blue.svg
151-
[badge-hash]: https://img.shields.io/badge/kotlincrypto.hash-0.2.3-blue.svg
149+
[badge-core]: https://img.shields.io/badge/kotlincrypto.core-0.2.4-blue.svg
150+
[badge-hash]: https://img.shields.io/badge/kotlincrypto.hash-0.2.4-blue.svg
152151

153152
<!-- TAG_PLATFORMS -->
154153
[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
@@ -29,7 +29,7 @@ POM_DEVELOPER_ID=KotlinCrypto
2929
POM_DEVELOPER_NAME=Kotlin Crypto
3030
POM_DEVELOPER_URL=https://github.com/KotlinCrypto/
3131

32-
VERSION_NAME=0.2.4-SNAPSHOT
32+
VERSION_NAME=0.2.4
3333
# 0.1.0-alpha01 = 00 01 00 11
3434
# 0.1.0-beta01 = 00 01 00 21
3535
# 0.1.0-rc01 = 00 01 00 31

gradle/libs.versions.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
binaryCompat = "0.13.0"
33
bouncyCastle = "1.72"
44
configuration = "0.1.0-beta02"
5-
cryptoCore = "0.2.4-SNAPSHOT"
6-
cryptoHash = "0.2.4-SNAPSHOT"
5+
cryptoCore = "0.2.4"
6+
cryptoHash = "0.2.4"
77
encoding = "1.2.1"
88
gradleVersions = "0.46.0"
99
kotlin = "1.8.10"

0 commit comments

Comments
 (0)