File tree Expand file tree Collapse file tree 3 files changed +7
-4
lines changed
library/kmac/src/commonMain/kotlin/org/kotlincrypto/macs Expand file tree Collapse file tree 3 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -30,12 +30,11 @@ Message Authentication Code algorithms for Kotlin Multiplatform
30
30
See [ HERE] [ url-core-usage ] for basic usage example for ` Mac ` .
31
31
32
32
``` kotlin
33
+ // Using SecureRandom from the secure-random repo as an example
33
34
import org.kotlincrypto.SecureRandom
35
+ // ...
34
36
35
37
fun main () {
36
- // NOTE: SecureRandom is not included as a dependency in
37
- // MACs. It is only being used here as an example
38
- // because one should never derive a key using Random.
39
38
val key = SecureRandom ().nextBytesOf(100 )
40
39
41
40
// Hmacs that may be needed for backward compatibility but
@@ -82,7 +81,7 @@ fun main() {
82
81
<!-- TODO: Uncomment
83
82
`SHA3 KMAC & XOFs` (i.e. [Extendable-Output Functions][url-pub-xof])
84
83
85
- See [HERE][url-core-usage] for details on what XOFs are, and a basic usage example for Xof.
84
+ See [HERE][url-core-usage] for details on what ` XOFs` are, and a basic usage example for ` Xof` .
86
85
87
86
```kotlin
88
87
fun main() {
Original file line number Diff line number Diff line change @@ -22,6 +22,8 @@ import kotlin.jvm.JvmStatic
22
22
23
23
/* *
24
24
* KMAC128 implementation
25
+ *
26
+ * @see [xOf]
25
27
* */
26
28
public class KMAC128 : Kmac {
27
29
Original file line number Diff line number Diff line change @@ -22,6 +22,8 @@ import kotlin.jvm.JvmStatic
22
22
23
23
/* *
24
24
* KMAC128 implementation
25
+ *
26
+ * @see [xOf]
25
27
* */
26
28
public class KMAC256 : Kmac {
27
29
You can’t perform that action at this time.
0 commit comments