@@ -92,12 +92,12 @@ fun main() {
92
92
``` kotlin
93
93
// Using SecureRandom from the secure-random repo as an example
94
94
import org.kotlincrypto.SecureRandom
95
- // Using HmacSHA256 from the MACs repo as an example
96
- import org.kotlincrypto.macs.HmacSHA256
95
+ // Using HmacSHA3_256 from the MACs repo as an example
96
+ import org.kotlincrypto.macs.hmac.sha3.HmacSHA3_256
97
97
98
98
fun main () {
99
99
val key = SecureRandom ().nextBytesOf(100 )
100
- val mac = HmacSHA256 (key)
100
+ val mac = HmacSHA3_256 (key)
101
101
val bytes = Random .Default .nextBytes(615 )
102
102
103
103
// Mac implements Algorithm
@@ -218,7 +218,7 @@ The best way to keep `KotlinCrypto` dependencies up to date is by using the
218
218
``` kotlin
219
219
// build.gradle.kts
220
220
dependencies {
221
- val core = " 0.2.7 "
221
+ val core = " 0.3.0 "
222
222
implementation(" org.kotlincrypto.core:digest:$core " )
223
223
implementation(" org.kotlincrypto.core:mac:$core " )
224
224
implementation(" org.kotlincrypto.core:xof:$core " )
@@ -230,15 +230,15 @@ dependencies {
230
230
``` groovy
231
231
// build.gradle
232
232
dependencies {
233
- def core = "0.2.7 "
233
+ def core = "0.3.0 "
234
234
implementation "org.kotlincrypto.core:digest:$core"
235
235
implementation "org.kotlincrypto.core:mac:$core"
236
236
implementation "org.kotlincrypto.core:xof:$core"
237
237
}
238
238
```
239
239
240
240
<!-- TAG_VERSION -->
241
- [ badge-latest-release ] : https://img.shields.io/badge/latest--release-0.2.7 -blue.svg?style=flat
241
+ [ badge-latest-release ] : https://img.shields.io/badge/latest--release-0.3.0 -blue.svg?style=flat
242
242
[ badge-license ] : https://img.shields.io/badge/license-Apache%20License%202.0-blue.svg?style=flat
243
243
244
244
<!-- TAG_DEPENDENCIES -->
0 commit comments