Home
last modified time | relevance | path

Searched refs:associatedText (Results 1 – 2 of 2) sorted by relevance

/external/bouncycastle/src/main/java/org/bouncycastle/crypto/modes/
DCCMBlockCipher.java28 private byte[] associatedText; field in CCMBlockCipher
72 associatedText = param.getAssociatedText(); in init()
81 associatedText = null; in init()
295 if (associatedText.length < ((1 << 16) - (1 << 8))) in calculateMac()
297 cMac.update((byte)(associatedText.length >> 8)); in calculateMac()
298 cMac.update((byte)associatedText.length); in calculateMac()
306 cMac.update((byte)(associatedText.length >> 24)); in calculateMac()
307 cMac.update((byte)(associatedText.length >> 16)); in calculateMac()
308 cMac.update((byte)(associatedText.length >> 8)); in calculateMac()
309 cMac.update((byte)associatedText.length); in calculateMac()
[all …]
/external/bouncycastle/src/main/java/org/bouncycastle/crypto/params/
DAEADParameters.java8 private byte[] associatedText; field in AEADParameters
21 public AEADParameters(KeyParameter key, int macSize, byte[] nonce, byte[] associatedText) in AEADParameters() argument
26 this.associatedText = associatedText; in AEADParameters()
41 return associatedText; in getAssociatedText()