Java 类org.bouncycastle.crypto.modes.gcm.GCMUtil 实例源码

项目:gwt-crypto    文件:GCMBlockCipher.java   
private void gCTRBlock(byte[] block, byte[] out, int outOff)
{
    byte[] tmp = getNextCounterBlock();

    GCMUtil.xor(tmp, block);
    System.arraycopy(tmp, 0, out, outOff, BLOCK_SIZE);

    gHASHBlock(S, forEncryption ? tmp : block);

    totalLength += BLOCK_SIZE;
}
项目:gwt-crypto    文件:GCMBlockCipher.java   
private void gCTRPartial(byte[] buf, int off, int len, byte[] out, int outOff)
{
    byte[] tmp = getNextCounterBlock();

    GCMUtil.xor(tmp, buf, off, len);
    System.arraycopy(tmp, 0, out, outOff, len);

    gHASHPartial(S, forEncryption ? tmp : buf, 0, len);

    totalLength += len;
}
项目:Aki-SSL    文件:GCMBlockCipher.java   
private void gCTRBlock(byte[] block, byte[] out, int outOff)
{
    byte[] tmp = getNextCounterBlock();

    GCMUtil.xor(tmp, block);
    System.arraycopy(tmp, 0, out, outOff, BLOCK_SIZE);

    gHASHBlock(S, forEncryption ? tmp : block);

    totalLength += BLOCK_SIZE;
}
项目:Aki-SSL    文件:GCMBlockCipher.java   
private void gCTRPartial(byte[] buf, int off, int len, byte[] out, int outOff)
{
    byte[] tmp = getNextCounterBlock();

    GCMUtil.xor(tmp, buf, off, len);
    System.arraycopy(tmp, 0, out, outOff, len);

    gHASHPartial(S, forEncryption ? tmp : buf, 0, len);

    totalLength += len;
}
项目:TinyTravelTracker    文件:GCMBlockCipher.java   
private void gCTRBlock(byte[] block, byte[] out, int outOff)
{
    byte[] tmp = getNextCounterBlock();

    GCMUtil.xor(tmp, block);
    System.arraycopy(tmp, 0, out, outOff, BLOCK_SIZE);

    gHASHBlock(S, forEncryption ? tmp : block);

    totalLength += BLOCK_SIZE;
}
项目:TinyTravelTracker    文件:GCMBlockCipher.java   
private void gCTRPartial(byte[] buf, int off, int len, byte[] out, int outOff)
{
    byte[] tmp = getNextCounterBlock();

    GCMUtil.xor(tmp, buf, off, len);
    System.arraycopy(tmp, 0, out, outOff, len);

    gHASHPartial(S, forEncryption ? tmp : buf, 0, len);

    totalLength += len;
}
项目:gwt-crypto    文件:GCMBlockCipher.java   
private void gHASHBlock(byte[] Y, byte[] b)
{
    GCMUtil.xor(Y, b);
    multiplier.multiplyH(Y);
}
项目:gwt-crypto    文件:GCMBlockCipher.java   
private void gHASHPartial(byte[] Y, byte[] b, int off, int len)
{
    GCMUtil.xor(Y, b, off, len);
    multiplier.multiplyH(Y);
}
项目:Aki-SSL    文件:GCMBlockCipher.java   
private void gHASHBlock(byte[] Y, byte[] b)
{
    GCMUtil.xor(Y, b);
    multiplier.multiplyH(Y);
}
项目:Aki-SSL    文件:GCMBlockCipher.java   
private void gHASHPartial(byte[] Y, byte[] b, int off, int len)
{
    GCMUtil.xor(Y, b, off, len);
    multiplier.multiplyH(Y);
}
项目:TinyTravelTracker    文件:GCMBlockCipher.java   
private void gHASHBlock(byte[] Y, byte[] b)
{
    GCMUtil.xor(Y, b);
    multiplier.multiplyH(Y);
}
项目:TinyTravelTracker    文件:GCMBlockCipher.java   
private void gHASHPartial(byte[] Y, byte[] b, int off, int len)
{
    GCMUtil.xor(Y, b, off, len);
    multiplier.multiplyH(Y);
}