diff --git a/src/commonMain/kotlin/org/komputing/khash/keccak/extensions/PublicExtensions.kt b/src/commonMain/kotlin/org/komputing/khash/keccak/extensions/PublicExtensions.kt index 05acc04..d408301 100644 --- a/src/commonMain/kotlin/org/komputing/khash/keccak/extensions/PublicExtensions.kt +++ b/src/commonMain/kotlin/org/komputing/khash/keccak/extensions/PublicExtensions.kt @@ -7,10 +7,12 @@ import org.komputing.khash.keccak.KeccakParameter /** * Computes the proper Keccak digest of [this] byte array based on the given [parameter] */ +@Deprecated("will be removed, use Hash", ReplaceWith("Hash")) fun ByteArray.digestKeccak(parameter: KeccakParameter): ByteArray { return Keccak.digest(this, parameter) } +@Deprecated("will be removed, use Hash", ReplaceWith("Hash")) fun UByteArray.digestKeccak(parameter: KeccakParameter): UByteArray { return Keccak.digest(this.asByteArray(), parameter).toUByteArray() } @@ -18,6 +20,7 @@ fun UByteArray.digestKeccak(parameter: KeccakParameter): UByteArray { /** * Computes the proper Keccak digest of [this] string based on the given [parameter] */ +@Deprecated("will be removed, use Hash", ReplaceWith("Hash")) fun String.digestKeccak(parameter: KeccakParameter): ByteArray { return Keccak.digest(encodeToByteArray(), parameter) }