Skip to content

Commit

Permalink
feat(Hashing): BLAKE2B-160
Browse files Browse the repository at this point in the history
  • Loading branch information
hamada147 committed Sep 12, 2022
1 parent a6ed518 commit dacbb57
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions Hashing/src/commonMain/kotlin/io/iohk/prism/hashing/BLAKE2B_160.kt
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
package io.iohk.prism.hashing

import io.iohk.prism.hashing.internal.BLAKE2B

final class BLAKE2B_160: BLAKE2B(160) {
override val blockLength: Int
get() = 128

override fun toString(): String = "BLAKE2B-160"

public final class Keyed(
key: ByteArray,
salt: ByteArray? = null,
personalisation: ByteArray? = null
): BLAKE2B(key, 160, salt, personalisation) {
override val blockLength: Int
get() = 128

override fun toString(): String = "BLAKE2B-160"
}
}

0 comments on commit dacbb57

Please sign in to comment.