Home
last modified time | relevance | path

Searched refs:lengthInBytes (Results 1 – 25 of 30) sorted by relevance

12

/packages/modules/IPsec/src/java/com/android/internal/net/eap/message/simaka/
DEapSimAkaAttribute.java130 public final int lengthInBytes; field in EapSimAkaAttribute
132 protected EapSimAkaAttribute(int attributeType, int lengthInBytes) in EapSimAkaAttribute() argument
135 this.lengthInBytes = lengthInBytes; in EapSimAkaAttribute()
137 if (lengthInBytes % LENGTH_SCALING != 0) { in EapSimAkaAttribute()
167 int attributeType, int lengthInBytes, ByteBuffer buffer) in EapSimAkaReservedBytesAttribute() argument
169 super(attributeType, lengthInBytes); in EapSimAkaReservedBytesAttribute()
178 protected EapSimAkaReservedBytesAttribute(int attributeType, int lengthInBytes) in EapSimAkaReservedBytesAttribute() argument
180 super(attributeType, lengthInBytes); in EapSimAkaReservedBytesAttribute()
184 int attributeType, int lengthInBytes, byte[] reservedBytes) in EapSimAkaReservedBytesAttribute() argument
186 this(attributeType, lengthInBytes); in EapSimAkaReservedBytesAttribute()
[all …]
DEapSimAkaAttributeFactory.java83 EapSimAkaAttribute getAttribute(int attributeType, int lengthInBytes, ByteBuffer byteBuffer) in getAttribute() argument
88 return new AtPermanentIdReq(lengthInBytes, byteBuffer); in getAttribute()
90 return new AtAnyIdReq(lengthInBytes, byteBuffer); in getAttribute()
92 return new AtFullauthIdReq(lengthInBytes, byteBuffer); in getAttribute()
94 return new AtIdentity(lengthInBytes, byteBuffer); in getAttribute()
96 return new AtPadding(lengthInBytes, byteBuffer); in getAttribute()
98 return new AtMac(lengthInBytes, byteBuffer); in getAttribute()
100 return new AtCounter(lengthInBytes, byteBuffer); in getAttribute()
102 return new AtCounterTooSmall(lengthInBytes, byteBuffer); in getAttribute()
104 return new AtNonceS(lengthInBytes, byteBuffer); in getAttribute()
[all …]
DEapAkaAttributeFactory.java71 int lengthInBytes = Byte.toUnsignedInt(byteBuffer.get()) * LENGTH_SCALING; in getAttribute() local
73 return getAttribute(attributeType, lengthInBytes, byteBuffer); in getAttribute()
78 int attributeType, int lengthInBytes, ByteBuffer byteBuffer) in getAttribute() argument
82 return new AtRandAka(lengthInBytes, byteBuffer); in getAttribute()
84 return new AtAutn(lengthInBytes, byteBuffer); in getAttribute()
86 return new AtRes(lengthInBytes, byteBuffer); in getAttribute()
88 return new AtAuts(lengthInBytes, byteBuffer); in getAttribute()
90 return new AtBidding(lengthInBytes, byteBuffer); in getAttribute()
92 return super.getAttribute(attributeType, lengthInBytes, byteBuffer); in getAttribute()
DEapSimAttributeFactory.java70 int lengthInBytes = Byte.toUnsignedInt(byteBuffer.get()) * LENGTH_SCALING; in getAttribute() local
75 return new AtVersionList(lengthInBytes, byteBuffer); in getAttribute()
78 return new AtSelectedVersion(lengthInBytes, selectedVersion); in getAttribute()
80 return new AtNonceMt(lengthInBytes, byteBuffer); in getAttribute()
82 return new AtRandSim(lengthInBytes, byteBuffer); in getAttribute()
84 return super.getAttribute(attributeType, lengthInBytes, byteBuffer); in getAttribute()
DEapAkaPrimeAttributeFactory.java66 int lengthInBytes = Byte.toUnsignedInt(byteBuffer.get()) * LENGTH_SCALING; in getAttribute() local
70 return new AtKdfInput(lengthInBytes, byteBuffer); in getAttribute()
72 return new AtKdf(lengthInBytes, byteBuffer); in getAttribute()
74 return super.getAttribute(attributeType, lengthInBytes, byteBuffer); in getAttribute()
DEapSimAkaTypeData.java74 int lengthInBytes = MIN_LEN_BYTES; in encode() local
76 lengthInBytes += attribute.lengthInBytes; in encode()
79 ByteBuffer output = ByteBuffer.allocate(lengthInBytes); in encode()
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/eap/message/simaka/attributes/
DAtIdentityTest.java55 assertEquals(AT_IDENTITY.length, atIdentity.lengthInBytes); in testDecode()
74 ByteBuffer buffer = ByteBuffer.allocate(atIdentity.lengthInBytes); in testGetAtIdentity()
82 assertEquals(atIdentity.lengthInBytes, newAtIdentity.lengthInBytes); in testGetAtIdentity()
DAtMacTest.java59 assertEquals(EXPECTED_LENGTH, atMac.lengthInBytes); in testConstructor()
67 assertEquals(EXPECTED_LENGTH, atMac.lengthInBytes); in testParameterizedConstructor()
89 assertEquals(EXPECTED_LENGTH, atMac.lengthInBytes); in testDecode()
DAtCounterTest.java63 assertEquals(EXPECTED_LENGTH, atCounter.lengthInBytes); in testDecodeAtCounter()
90 assertEquals(EXPECTED_LENGTH, atCounterTooSmall.lengthInBytes); in testAtCounterTooSmallConstructor()
102 assertEquals(EXPECTED_LENGTH, atCounterTooSmall.lengthInBytes); in testDecodeAtCounterTooSmall()
DAtIdReqTest.java66 assertEquals(EXPECTED_LENGTH, atPermanentIdReq.lengthInBytes); in testDecodeAtPermanentIdReq()
97 assertEquals(EXPECTED_LENGTH, atAnyIdReq.lengthInBytes); in testDecodeAtAnyIdReq()
128 assertEquals(EXPECTED_LENGTH, atFullauthIdReq.lengthInBytes); in testDecodeAtFullauthIdReq()
DAtKdfInputTest.java53 assertEquals(AT_KDF_INPUT.length, atKdfInput.lengthInBytes); in testDecode()
65 assertEquals(AT_KDF_INPUT_EMPTY_NETWORK_NAME.length, atKdfInput.lengthInBytes); in testDecodeEmptyNetworkName()
DAtBiddingTest.java56 assertEquals(AT_BIDDING_SUPPORTS_AKA_PRIME.length, atBidding.lengthInBytes); in testDecodeServerSupportsAkaPrime()
68 assertEquals(AT_BIDDING_DOES_NOT_SUPPORT_AKA_PRIME.length, atBidding.lengthInBytes); in testDecodeDoesNotSupportAkaPrime()
DAtNextReauthIdTest.java56 assertEquals(AT_NEXT_REAUTH_IDENTITY.length, atNextReauthId.lengthInBytes); in testDecode()
DAtPaddingTest.java58 assertEquals(EXPECTED_LENGTH, atPadding.lengthInBytes); in testDecode()
DAtRandAkaTest.java55 assertEquals(AT_RAND_AKA.length, atRandAka.lengthInBytes); in testDecode()
DAtClientErrorCodeTest.java60 assertEquals(EXPECTED_LENGTH, atClientErrorCode.lengthInBytes); in testDecode()
DAtAutsTest.java55 assertEquals(AT_AUTS.length, atAuts.lengthInBytes); in testDecode()
DAtAutnTest.java55 assertEquals(AT_AUTN.length, atAutn.lengthInBytes); in testDecode()
DAtEncrDataTest.java69 assertEquals(AT_ENCR_DATA.length, atEncrData.lengthInBytes); in testDecode()
DAtKdfTest.java55 assertEquals(AT_KDF.length, atKdf.lengthInBytes); in testDecode()
DAtSelectedVersionTest.java60 assertEquals(EXPECTED_LENGTH, atSelectedVersion.lengthInBytes); in testDecode()
DAtNonceSTest.java70 assertEquals(EXPECTED_LENGTH, atNonceS.lengthInBytes); in testDecode()
DAtVersionListTest.java63 assertEquals(EXPECTED_LENGTH, atVersionList.lengthInBytes); in testDecode()
/packages/modules/IPsec/src/java/com/android/internal/net/eap/statemachine/
DEapSimAkaMethodStateMachine.java394 atCounter.lengthInBytes + atCounterSmall.lengthInBytes); in buildReauthResponse()
398 atCounter.lengthInBytes + atCounterSmall.lengthInBytes + paddingSize); in buildReauthResponse()
403 int paddingSize = getPaddingSize(CIPHER_BLOCK_LENGTH, atCounter.lengthInBytes); in buildReauthResponse()
405 buffer = ByteBuffer.allocate(atCounter.lengthInBytes + paddingSize); in buildReauthResponse()
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/eap/message/simaka/
DEapSimAkaAttributeFactoryTest.java62 assertEquals(SKIPPABLE_EXPECTED_LENGTH, unsupportedAttribute.lengthInBytes); in testDecodeInvalidSkippable()

12