abla/crypto/legacy

Generated from source.

Import with import "abla/crypto/legacy".

Source: abla/crypto/legacy/entry.ab

legacyDes3CbcDecrypt (fun)

trusted fun legacyDes3CbcDecrypt(key: NativeByteBuffer, iv: string, ciphertext: string): CryptoResult

Decrypts ciphertext (whole 8-byte blocks) with 3DES in CBC mode: key is 24 bytes (three keys) or 16 (two keys, the first again as the third), in a native buffer that stays the caller's; the PKCS#7 padding is removed. A bad padding is "wrong password or corrupt key".

legacyRc2CbcDecrypt (fun)

trusted fun legacyRc2CbcDecrypt(key: NativeByteBuffer, effectiveBits: int, iv: string, ciphertext: string): CryptoResult

Decrypts ciphertext (whole 8-byte blocks) with RC2 in CBC mode: key is 1 to 128 bytes in a native buffer that stays the caller's, effectiveBits the effective key length (40 for pbeWithSHA1And40BitRC2-CBC, 128 for the 128-bit form); the PKCS#7 padding is removed.

Built from Abla v0.2.79 source ba5d6b7d. Examples and generated signatures follow that source revision.