-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
SHA3-224 Implementation
- Loading branch information
Showing
1 changed file
with
15 additions
and
0 deletions.
There are no files selected for viewing
15 changes: 15 additions & 0 deletions
15
Hashing/src/commonMain/kotlin/io/iohk/prism/hashing/SHA3_224.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
} |