Home
last modified time | relevance | path

Searched refs:macSize (Results 1 – 7 of 7) 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/
DGCMBlockCipher.java33 private int macSize; field in GCMBlockCipher
105 macSize = macSizeBits / 8; in init()
114 macSize = 16; in init()
122 int bufLength = forEncryption ? BLOCK_SIZE : (BLOCK_SIZE + macSize); in init()
191 return totalData + macSize; in getOutputSize()
194 return totalData < macSize ? 0 : totalData - macSize; in getOutputSize()
202 if (totalData < macSize) in getUpdateOutputSize()
206 totalData -= macSize; in getUpdateOutputSize()
302 System.arraycopy(bufBlock, BLOCK_SIZE, bufBlock, 0, macSize); in outputBlock()
303 bufOff = macSize; in outputBlock()
[all …]
DCCMBlockCipher.java29 private int macSize; field in CCMBlockCipher
74 macSize = param.getMacSize() / 8; in init()
83 macSize = macBlock.length / 2; in init()
157 byte[] mac = new byte[macSize]; in getMac()
175 return totalData + macSize; in getOutputSize()
178 return totalData < macSize ? 0 : totalData - macSize; in getOutputSize()
215 output = new byte[inLen + macSize]; in processPacket()
242 output = new byte[inLen - macSize]; in processPacket()
244 System.arraycopy(in, inOff + inLen - macSize, macBlock, 0, macSize); in processPacket()
248 for (int i = macSize; i != macBlock.length; i++) in processPacket()
[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/chromium_org/net/third_party/nss/ssl/
Dderive.c82 unsigned int macSize; /* size of MAC secret */ in ssl3_KeyAndMacDeriveBypass() local
113 macSize = pwSpec->mac_size; in ssl3_KeyAndMacDeriveBypass()
126 2 * (macSize + effKeySize + ((!isExport && !explicitIV) * IVSize)); in ssl3_KeyAndMacDeriveBypass()
217 buildSSLKey(&key_block[i],macSize, &pwSpec->client.write_mac_key_item, \ in ssl3_KeyAndMacDeriveBypass()
219 i += macSize; in ssl3_KeyAndMacDeriveBypass()
224 buildSSLKey(&key_block[i],macSize, &pwSpec->server.write_mac_key_item, \ in ssl3_KeyAndMacDeriveBypass()
226 i += macSize; in ssl3_KeyAndMacDeriveBypass()
Dssl3con.c11634 unsigned int macSize) in ssl_RemoveSSLv3CBCPadding() argument
11637 const unsigned int overhead = 1 /* padding length byte */ + macSize; in ssl_RemoveSSLv3CBCPadding()
11659 ssl_RemoveTLSCBCPadding(sslBuffer *plaintext, unsigned int macSize) in ssl_RemoveTLSCBCPadding() argument
11662 const unsigned int overhead = 1 /* padding length byte */ + macSize; in ssl_RemoveTLSCBCPadding()
11724 unsigned int macSize) in ssl_CBCExtractMAC() argument
11730 unsigned macStart = macEnd - macSize; in ssl_CBCExtractMAC()
11737 if (originalLength > macSize + 255 + 1) in ssl_CBCExtractMAC()
11738 scanStart = originalLength - (macSize + 255 + 1); in ssl_CBCExtractMAC()
11747 divSpoiler = macSize >> 1; in ssl_CBCExtractMAC()
11749 rotateOffset = (divSpoiler + macStart - scanStart) % macSize; in ssl_CBCExtractMAC()
[all …]
/external/chromium_org/net/third_party/nss/patches/
Daesgcm.patch1180 - const unsigned int macSize = crSpec->mac_size;
1184 + const unsigned int macSize = crSpec->mac_size;
1188 - plaintext, blockSize, macSize));
1191 - plaintext, macSize));
1194 + plaintext, blockSize, macSize));
1197 + plaintext, macSize));