Home
last modified time | relevance | path

Searched refs:TAG_LENGTH (Results 1 – 3 of 3) sorted by relevance

/aosp12/frameworks/base/core/java/android/util/
H A DEventLog.java79 private static final int TAG_LENGTH = 4; field in EventLog.Event
142 if ((offset + TAG_LENGTH) >= mBuffer.limit()) { in getData()
146 mBuffer.position(offset + TAG_LENGTH); // Just after the tag. in getData()
166 if (payload.length > 65535 - TAG_LENGTH) { in withNewData()
170 byte[] newBytes = new byte[headerLength + TAG_LENGTH + payload.length]; in withNewData()
172 System.arraycopy(mBuffer.array(), 0, newBytes, 0, headerLength + TAG_LENGTH); in withNewData() local
174 System.arraycopy(payload, 0, newBytes, headerLength + TAG_LENGTH, payload.length); in withNewData()
177 result.mBuffer.putShort(LENGTH_OFFSET, (short) (payload.length + TAG_LENGTH)); in withNewData()
/aosp12/system/security/keystore2/src/crypto/
H A Dlib.rs35 pub const TAG_LENGTH: usize = 16; const
90 if tag.len() != TAG_LENGTH { in aes_gcm_decrypt()
137 let mut tag: Vec<u8> = vec![0; TAG_LENGTH]; in aes_gcm_encrypt()
/aosp12/system/security/keystore2/src/
H A Dlegacy_blob.rs208 const GCM_TAG_LENGTH: usize = keystore2_crypto::TAG_LENGTH;