Package-level declarations
Functions
Link copied to clipboard
AES-CBC decrypt with PKCS#7 padding handling determined by cipher.
Link copied to clipboard
Alias to match existing call sites expecting explicit no-padding naming.
Link copied to clipboard
suspend fun aesCbcEncryptNoPadding(key: ByteArray, iv: ByteArray, plaintextNoPad: ByteArray): ByteArray
AES-CBC encrypt without internal padding. Provide PKCS#7 padded plaintext.
Link copied to clipboard
Compare two byte arrays without an early exit, so the position of the first differing byte is not observable through timing. Lengths are still compared directly.
Link copied to clipboard
Link copied to clipboard
Remove PKCS#7 padding from data.
Link copied to clipboard
Generate count cryptographically strong random bytes.
Link copied to clipboard
Decrypt with RSA-OAEP (SHA-1) using a PKCS#1 DER private key.
Link copied to clipboard
Encrypt with RSA-OAEP (SHA-1) using a PKCS#1 DER public key.
Link copied to clipboard
Sign data with RSA-PSS (SHA-1) using a PKCS#1 DER private key.
Link copied to clipboard
suspend fun rsaPssVerifySha1(publicKeyDer: ByteArray, data: ByteArray, signature: ByteArray): Boolean
Verify an RSA-PSS (SHA-1) signature using a PKCS#1 DER public key.