commonMain.dev.icerock.moko.web3.crypto.KeccakParameter.kt Maven / Gradle / Ivy
/*
* Copyright (c) 2017 ligi. Use of this source code is governed by the MIT License.
* Original: https://github.com/komputing/KHash/blob/master/keccak/src/main/kotlin/org/komputing/khash/keccak/KeccakParameter.kt
*/
package dev.icerock.moko.web3.crypto
/**
* Parameters defining the FIPS 202 standard.
*/
enum class KeccakParameter constructor(val rateInBytes: Int, val outputLengthInBytes: Int, val d: Int) {
KECCAK_224(144, 28, 0x01),
KECCAK_256(136, 32, 0x01),
KECCAK_384(104, 48, 0x01),
KECCAK_512(72, 64, 0x01),
SHA3_224(144, 28, 0x06),
SHA3_256(136, 32, 0x06),
SHA3_384(104, 48, 0x06),
SHA3_512(72, 64, 0x06),
SHAKE128(168, 32, 0x1F),
SHAKE256(136, 64, 0x1F)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy