All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.spongycastle.crypto.macs.CMacWithIV Maven / Gradle / Ivy

Go to download

Spongy Castle is a package-rename (org.bouncycastle.* to org.spongycastle.*) of Bouncy Castle intended for the Android platform. Android unfortunately ships with a stripped-down version of Bouncy Castle, which prevents easy upgrades - Spongy Castle overcomes this and provides a full, up-to-date version of the Bouncy Castle cryptographic libs.

The newest version!
package org.spongycastle.crypto.macs;

import org.spongycastle.crypto.BlockCipher;
import org.spongycastle.crypto.CipherParameters;

/**
 * A non-NIST variant which allows passing of an IV to the underlying CBC cipher.
 * 

Note: there isn't really a good reason to use an IV here, use the regular CMac where possible.

*/ public class CMacWithIV extends CMac { public CMacWithIV(BlockCipher cipher) { super(cipher); } public CMacWithIV(BlockCipher cipher, int macSizeInBits) { super(cipher, macSizeInBits); } void validate(CipherParameters params) { // accept all } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy