Skip to content

Commit

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

import io.iohk.prism.hashing.internal.HMACInterface
import io.iohk.prism.hashing.internal.KeccakDigest

/**
* This class implements the SHA3-224 digest algorithm under the [KeccakDigest] API.
* SHA3-224 is defined by FIPS PUB 202.
*/
final class SHA3_224: KeccakDigest(0x06), HMACInterface {
override val digestLength: Int
get() = 28

override fun toString() = "SHA3-224"
}

0 comments on commit 372e5a9

Please sign in to comment.