Home
last modified time | relevance | path

Searched refs:macSize (Results 1 – 6 of 6) sorted by relevance

/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/params/
DAEADParameters.java11 private int macSize; field in AEADParameters
20 public AEADParameters(KeyParameter key, int macSize, byte[] nonce) in AEADParameters() argument
22 this(key, macSize, nonce, null); in AEADParameters()
33 public AEADParameters(KeyParameter key, int macSize, byte[] nonce, byte[] associatedText) in AEADParameters() argument
37 this.macSize = macSize; in AEADParameters()
48 return macSize; in getMacSize()
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/modes/
DCCMBlockCipher.java30 private int macSize; field in CCMBlockCipher
76 macSize = param.getMacSize() / 8; in init()
85 macSize = macBlock.length / 2; in init()
168 byte[] mac = new byte[macSize]; in getMac()
186 return totalData + macSize; in getOutputSize()
189 return totalData < macSize ? 0 : totalData - macSize; in getOutputSize()
209 output = new byte[inLen + macSize]; in processPacket()
213 if (inLen < macSize) in processPacket()
217 output = new byte[inLen - macSize]; in processPacket()
272 outputLen = inLen + macSize; in processPacket()
[all …]
DGCMBlockCipher.java41 private int macSize; field in GCMBlockCipher
121 macSize = macSizeBits / 8; in init()
130 macSize = 16; in init()
138 int bufLength = forEncryption ? BLOCK_SIZE : (BLOCK_SIZE + macSize); in init()
224 return new byte[macSize]; in getMac()
235 return totalData + macSize; in getOutputSize()
238 return totalData < macSize ? 0 : totalData - macSize; in getOutputSize()
254 if (totalData < macSize) in getUpdateOutputSize()
258 totalData -= macSize; in getUpdateOutputSize()
387 System.arraycopy(bufBlock, BLOCK_SIZE, bufBlock, 0, macSize); in outputBlock()
[all …]
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/macs/
DCBCBlockCipherMac.java23 private int macSize; field in CBCBlockCipherMac
97 this.macSize = macSizeInBits / 8; in CBCBlockCipherMac()
120 return macSize; in getMacSize()
202 System.arraycopy(mac, 0, out, outOff, macSize); in doFinal()
206 return macSize; in doFinal()
/external/boringssl/src/ssl/test/runner/
Dconn.go398 macSize := 0
400 macSize = hc.mac.Size()
449 if len(payload)%blockSize != 0 || len(payload) < roundUp(explicitIVLen+macSize+1, blockSize) {
498 if len(payload) < macSize {
503 n := len(payload) - macSize
/external/bouncycastle/patches/
Dbcprov.patch1084 return totalData < macSize ? 0 : totalData - macSize;