public Mac() { super(new org.bouncycastle.crypto.macs.Poly1305()); } }
/** * Constructor * * @throws NoSuchAlgorithmException thrown if the given algorithm is not supported */ public BCPoly1305MacHelper() throws NoSuchAlgorithmException { this.mac = new Poly1305(); }
public Poly1305() { super(new org.bouncycastle.crypto.macs.Poly1305(new TwofishEngine())); } }
public Poly1305() { super(new org.bouncycastle.crypto.macs.Poly1305(new CamelliaEngine())); } }
public Poly1305() { super(new org.bouncycastle.crypto.macs.Poly1305(new CAST6Engine())); } }
public Poly1305() { super(new org.bouncycastle.crypto.macs.Poly1305(new SM4Engine())); } }
public Poly1305() { super(new org.bouncycastle.crypto.macs.Poly1305(new SEEDEngine())); } }
public Poly1305() { super(new org.bouncycastle.crypto.macs.Poly1305(new RC6Engine())); } }
public Poly1305() { super(new org.bouncycastle.crypto.macs.Poly1305(new ARIAEngine())); } }
public Poly1305() { super(new org.bouncycastle.crypto.macs.Poly1305(new AESEngine())); } }
public Poly1305() { super(new org.bouncycastle.crypto.macs.Poly1305(new NoekeonEngine())); } }
public Poly1305() { super(new org.bouncycastle.crypto.macs.Poly1305(new SerpentEngine())); } }
protected byte[] calculateRecordMAC(KeyParameter macKey, byte[] additionalData, byte[] buf, int off, int len) { Mac mac = new Poly1305(); mac.init(macKey); updateRecordMAC(mac, additionalData, 0, additionalData.length); updateRecordMAC(mac, buf, off, len); byte[] output = new byte[mac.getMacSize()]; mac.doFinal(output, 0); return output; }
protected byte[] calculateRecordMAC(KeyParameter macKey, byte[] additionalData, byte[] buf, int off, int len) { Mac mac = new Poly1305(); mac.init(macKey); updateRecordMACText(mac, additionalData, 0, additionalData.length); updateRecordMACText(mac, buf, off, len); updateRecordMACLength(mac, additionalData.length); updateRecordMACLength(mac, len); byte[] output = new byte[mac.getMacSize()]; mac.doFinal(output, 0); return output; }
public static byte[] create(KeyParameter macKey, byte[] additionalData, byte[] ciphertext) { Poly1305 poly = new Poly1305(); poly.init(macKey);