/external/bouncycastle/src/main/java/org/bouncycastle/crypto/modes/ |
D | EAXBlockCipher.java | 47 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 …]
|
D | GCMBlockCipher.java | 31 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 …]
|
D | CCMBlockCipher.java | 29 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/ |
D | AEADParameters.java | 11 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/ |
D | CBCBlockCipherMac.java | 23 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()
|
D | CMac.java | 41 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/ |
D | derive.c | 112 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()
|