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

/dalvik/libcore/security/src/main/java/org/bouncycastle/crypto/params/
H A DCCMParameters.java8 private byte[] associatedText; field in class:CCMParameters
19 * @param associatedText associated text, if any
21 public CCMParameters(KeyParameter key, int macSize, byte[] nonce, byte[] associatedText) argument
26 this.associatedText = associatedText;
41 return associatedText;
/dalvik/libcore/security/src/main/java/org/bouncycastle/crypto/modes/
H A DCCMBlockCipher.java185 byte[] associatedText = params.getAssociatedText();
194 if (associatedText != null && associatedText.length != 0)
219 if (associatedText != null)
223 if (associatedText.length < ((1 << 16) - (1 << 8)))
225 cMac.update((byte)(associatedText.length >> 8));
226 cMac.update((byte)associatedText.length);
234 cMac.update((byte)(associatedText.length >> 24));
235 cMac.update((byte)(associatedText.length >> 16));
236 cMac.update((byte)(associatedText
[all...]

Completed in 45 milliseconds