Package-level declarations

Types

Link copied to clipboard
class AES(val keyWords: IntArray) : Cipher

Based on CryptoJS v3.1.2 code.google.com/p/crypto-js (c) 2009-2013 by Jeff Mott. All rights reserved. code.google.com/p/crypto-js/wiki/License

Link copied to clipboard
interface Cipher
Link copied to clipboard
interface CipherMode

Symmetric Cipher Mode

Link copied to clipboard
abstract class CipherPadding

Symmetric Cipher Padding

Link copied to clipboard
class CipherWithModeAndPadding(val cipher: Cipher, val mode: CipherMode, val padding: CipherPadding, val iv: ByteArray? = null)
Link copied to clipboard
class Hash(val bytes: ByteArray)
Link copied to clipboard
abstract class Hasher(val chunkSize: Int, val digestSize: Int, val name: String)

chunkSize in bytes

Link copied to clipboard
open class HasherFactory(val name: String, val create: () -> Hasher)
Link copied to clipboard
class HMAC
Link copied to clipboard
class MD4 : Hasher
Link copied to clipboard
class MD5 : Hasher
Link copied to clipboard
abstract class NonCoreHasher(val chunkSize: Int, val digestSize: Int, val name: String) : Hasher
Link copied to clipboard
Link copied to clipboard
class PBKDF2
Link copied to clipboard
object PRNGFixes

Fixes for the output of the default PRNG having low entropy.

Link copied to clipboard
Link copied to clipboard
abstract class SHA(val chunkSize: Int, val digestSize: Int, val name: String = "SHA") : Hasher
Link copied to clipboard
class SHA1 : SHA
Link copied to clipboard
class SHA256 : SHA
Link copied to clipboard
class SHA512 : SHA

Properties

Link copied to clipboard
val REQ: String

Functions

Link copied to clipboard
fun CipherMode.decryptSafe(data: ByteArray, cipher: Cipher, padding: Padding, iv: ByteArray?): ByteArray
Link copied to clipboard
fun CipherMode.encryptSafe(data: ByteArray, cipher: Cipher, padding: Padding, iv: ByteArray?): ByteArray
Link copied to clipboard
actual fun fillRandomBytes(array: ByteArray)
expect fun fillRandomBytes(array: ByteArray)
actual fun fillRandomBytes(array: ByteArray)
actual fun fillRandomBytes(array: ByteArray)
actual fun fillRandomBytes(array: ByteArray)
Link copied to clipboard
operator fun Cipher.get(mode: CipherMode, padding: CipherPadding, iv: ByteArray? = null): CipherWithModeAndPadding
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
actual fun seedExtraRandomBytes(array: ByteArray)
expect fun seedExtraRandomBytes(array: ByteArray)
actual fun seedExtraRandomBytes(array: ByteArray)
actual fun seedExtraRandomBytes(array: ByteArray)
actual fun seedExtraRandomBytes(array: ByteArray)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard