Kodium Core

//kodium/io.kodium.core

Package-level declarations

Types

Name
Summary

[common] object KDFarrow-up-right A pure Kotlin implementation of the PBKDF2 (Password-Based Key Derivation Function 2) with HMAC-SHA256 as the pseudorandom function.

[common] object MLKEMarrow-up-right FIPS 203 ML-KEM-768 implementation wrapper for Kodium PQC Hybrid Architecture.

[common] object naclarrow-up-right Provides a high-level, safe, and convenient API for the TweetNaCl cryptographic library. This object handles all necessary padding, buffer management, and length checks, wrapping the low-level functions from NaClLowLevel.

Functions

Name
Summary

[common] fun Stringarrow-up-right.decodeBase58arrow-up-right(): ByteArrayarrow-up-right Decodes the current string, which is encoded in Base58 format, into a byte array. Base58 is a binary-to-text encoding designed to create shorter and more human-readable strings without problematic characters that are easily confused (e.g., '0' and 'O').

[common] fun Stringarrow-up-right.decodeBase58WithChecksumarrow-up-right(): ByteArrayarrow-up-right Decodes a Base58-encoded string with a checksum validation. The method first decodes the Base58 string, separates the checksum from the payload, computes the checksum of the payload, and verifies it against the decoded checksum. If the checksum validation fails, an exception is thrown.

[common] fun ByteArrayarrow-up-right.encodeToBase58Stringarrow-up-right(): Stringarrow-up-right Encodes a byte array into a Base58-encoded string. Base58 encoding is typically used for encoding binary data in a format that is easier for humans to work with, such as in the case of cryptocurrency addresses or other identifiers.

[common] fun ByteArrayarrow-up-right.encodeToBase58WithChecksumarrow-up-right(): Stringarrow-up-right Encodes the current byte array to a Base58-encoded string with an appended checksum. The checksum is generated by applying a double SHA-256 hash to the byte array and then appending the first four bytes of the result to the original array before encoding.

Last updated