Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package org.bouncycastle.crypto.macs;
 
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 cipherint macSizeInBits)
    {
        super(ciphermacSizeInBits);
    }
    void validate(CipherParameters params)
    {
        // accept all
    }
New to GrepCode? Check out our FAQ X