Home
last modified time | relevance | path

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

/external/bouncycastle/src/main/java/org/bouncycastle/crypto/modes/
DEAXBlockCipher.java47 private int macSize; field in EAXBlockCipher
96 macSize = param.getMacSize() / 8; in init()
105 macSize = mac.getMacSize() / 2; in init()
205 System.arraycopy(macBlock, 0, out, outOff + extra, macSize); in doFinal()
209 return extra + macSize; in doFinal()
213 if (extra > macSize) in doFinal()
215 mac.update(bufBlock, 0, extra - macSize); in doFinal()
220 System.arraycopy(tmp, 0, out, outOff, extra - macSize); in doFinal()
225 if (!verifyMac(bufBlock, extra - macSize)) in doFinal()
232 return extra - macSize; in doFinal()
[all …]
DGCMBlockCipher.java31 private int macSize; field in GCMBlockCipher
99 macSize = macSizeBits / 8; in init()
108 macSize = 16; in init()
116 int bufLength = forEncryption ? BLOCK_SIZE : (BLOCK_SIZE + macSize); in init()
173 return len + bufOff + macSize; in getOutputSize()
176 return len + bufOff - macSize; in getOutputSize()
205 System.arraycopy(bufBlock, BLOCK_SIZE, bufBlock, 0, macSize); in processBytes()
227 System.arraycopy(bufBlock, BLOCK_SIZE, bufBlock, 0, macSize); in process()
244 if (extra < macSize) in doFinal()
248 extra -= macSize; in doFinal()
[all …]
DCCMBlockCipher.java29 private int macSize; field in CCMBlockCipher
73 macSize = param.getMacSize() / 8; in init()
82 macSize = macBlock.length / 2; in init()
139 byte[] mac = new byte[macSize]; in getMac()
155 return data.size() + len + macSize; in getOutputSize()
159 return data.size() + len - macSize; in getOutputSize()
186 out = new byte[inLen + macSize]; in processPacket()
216 out = new byte[inLen - macSize]; in processPacket()
218 System.arraycopy(in, inOff + inLen - macSize, macBlock, 0, macSize); in processPacket()
222 for (int i = macSize; i != macBlock.length; i++) in processPacket()
[all …]
/external/bouncycastle/src/main/java/org/bouncycastle/crypto/params/
DAEADParameters.java11 private int macSize; field in AEADParameters
21 public AEADParameters(KeyParameter key, int macSize, byte[] nonce, byte[] associatedText) in AEADParameters() argument
25 this.macSize = macSize; in AEADParameters()
36 return macSize; in getMacSize()
/external/bouncycastle/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()
DCMac.java41 private int macSize; field in CMac
90 this.macSize = macSizeInBits / 8; in CMac()
139 return macSize; in getMacSize()
210 System.arraycopy(mac, 0, out, outOff, macSize); in doFinal()
214 return macSize; in doFinal()
/external/chromium/net/third_party/nss/ssl/
Dderive.c112 unsigned int macSize; /* size of MAC secret */ in ssl3_KeyAndMacDeriveBypass() local
141 macSize = pwSpec->mac_size; in ssl3_KeyAndMacDeriveBypass()
148 block_needed = 2 * (macSize + effKeySize + ((!isExport) * IVSize)); in ssl3_KeyAndMacDeriveBypass()
234 buildSSLKey(&key_block[i],macSize, &pwSpec->client.write_mac_key_item, \ in ssl3_KeyAndMacDeriveBypass()
236 i += macSize; in ssl3_KeyAndMacDeriveBypass()
241 buildSSLKey(&key_block[i],macSize, &pwSpec->server.write_mac_key_item, \ in ssl3_KeyAndMacDeriveBypass()
243 i += macSize; in ssl3_KeyAndMacDeriveBypass()