/packages/modules/IPsec/src/java/com/android/internal/net/eap/message/simaka/ |
D | EapSimAkaAttribute.java | 116 public final int lengthInBytes; field in EapSimAkaAttribute 118 protected EapSimAkaAttribute(int attributeType, int lengthInBytes) in EapSimAkaAttribute() argument 121 this.lengthInBytes = lengthInBytes; in EapSimAkaAttribute() 123 if (lengthInBytes % LENGTH_SCALING != 0) { in EapSimAkaAttribute() 137 byteBuffer.put((byte) (lengthInBytes / LENGTH_SCALING)); in encodeAttributeHeader() 141 int paddingRemaining = lengthInBytes - bytesUsed; in consumePadding() 146 int paddingNeeded = lengthInBytes - bytesUsed; in addPadding() 161 int lengthInBytes, in EapSimAkaUnsupportedAttribute() argument 163 super(attributeType, lengthInBytes); in EapSimAkaUnsupportedAttribute() 166 int remainingBytes = lengthInBytes - HEADER_BYTES; in EapSimAkaUnsupportedAttribute() [all …]
|
D | EapSimAkaAttributeFactory.java | 77 EapSimAkaAttribute getAttribute(int attributeType, int lengthInBytes, ByteBuffer byteBuffer) in getAttribute() argument 82 return new AtPermanentIdReq(lengthInBytes, byteBuffer); in getAttribute() 84 return new AtAnyIdReq(lengthInBytes, byteBuffer); in getAttribute() 86 return new AtFullauthIdReq(lengthInBytes, byteBuffer); in getAttribute() 88 return new AtIdentity(lengthInBytes, byteBuffer); in getAttribute() 90 return new AtPadding(lengthInBytes, byteBuffer); in getAttribute() 92 return new AtMac(lengthInBytes, byteBuffer); in getAttribute() 94 return new AtCounter(lengthInBytes, byteBuffer); in getAttribute() 96 return new AtCounterTooSmall(lengthInBytes, byteBuffer); in getAttribute() 98 return new AtNonceS(lengthInBytes, byteBuffer); in getAttribute() [all …]
|
D | EapAkaAttributeFactory.java | 71 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()
|
D | EapSimAttributeFactory.java | 70 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()
|
D | EapAkaPrimeAttributeFactory.java | 66 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()
|
D | EapSimAkaTypeData.java | 63 int lengthInBytes = MIN_LEN_BYTES; in encode() local 65 lengthInBytes += attribute.lengthInBytes; in encode() 68 ByteBuffer output = ByteBuffer.allocate(lengthInBytes); in encode()
|
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/eap/message/simaka/attributes/ |
D | AtIdentityTest.java | 55 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()
|
D | AtMacTest.java | 58 assertEquals(EXPECTED_LENGTH, atMac.lengthInBytes); in testConstructor() 66 assertEquals(EXPECTED_LENGTH, atMac.lengthInBytes); in testParameterizedConstructor() 88 assertEquals(EXPECTED_LENGTH, atMac.lengthInBytes); in testDecode()
|
D | AtCounterTest.java | 63 assertEquals(EXPECTED_LENGTH, atCounter.lengthInBytes); in testDecodeAtCounter() 90 assertEquals(EXPECTED_LENGTH, atCounterTooSmall.lengthInBytes); in testAtCounterTooSmallConstructor() 102 assertEquals(EXPECTED_LENGTH, atCounterTooSmall.lengthInBytes); in testDecodeAtCounterTooSmall()
|
D | AtIdReqTest.java | 66 assertEquals(EXPECTED_LENGTH, atPermanentIdReq.lengthInBytes); in testDecodeAtPermanentIdReq() 97 assertEquals(EXPECTED_LENGTH, atAnyIdReq.lengthInBytes); in testDecodeAtAnyIdReq() 128 assertEquals(EXPECTED_LENGTH, atFullauthIdReq.lengthInBytes); in testDecodeAtFullauthIdReq()
|
D | AtKdfInputTest.java | 53 assertEquals(AT_KDF_INPUT.length, atKdfInput.lengthInBytes); in testDecode() 65 assertEquals(AT_KDF_INPUT_EMPTY_NETWORK_NAME.length, atKdfInput.lengthInBytes); in testDecodeEmptyNetworkName()
|
D | AtBiddingTest.java | 56 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()
|
D | AtRandAkaTest.java | 55 assertEquals(AT_RAND_AKA.length, atRandAka.lengthInBytes); in testDecode()
|
D | AtSelectedVersionTest.java | 60 assertEquals(EXPECTED_LENGTH, atSelectedVersion.lengthInBytes); in testDecode()
|
D | AtAutnTest.java | 55 assertEquals(AT_AUTN.length, atAutn.lengthInBytes); in testDecode()
|
D | AtKdfTest.java | 55 assertEquals(AT_KDF.length, atKdf.lengthInBytes); in testDecode()
|
D | AtPaddingTest.java | 58 assertEquals(EXPECTED_LENGTH, atPadding.lengthInBytes); in testDecode()
|
D | AtAutsTest.java | 55 assertEquals(AT_AUTS.length, atAuts.lengthInBytes); in testDecode()
|
D | AtNonceMtTest.java | 69 assertEquals(EXPECTED_LENGTH, atNonceMt.lengthInBytes); in testDecode()
|
D | AtClientErrorCodeTest.java | 60 assertEquals(EXPECTED_LENGTH, atClientErrorCode.lengthInBytes); in testDecode()
|
D | AtVersionListTest.java | 63 assertEquals(EXPECTED_LENGTH, atVersionList.lengthInBytes); in testDecode()
|
D | AtNonceSTest.java | 70 assertEquals(EXPECTED_LENGTH, atNonceS.lengthInBytes); in testDecode()
|
D | AtRandSimTest.java | 63 assertEquals(AT_RAND_SIM.length, atRandSim.lengthInBytes); in testDecode()
|
D | AtNotificationTest.java | 65 assertEquals(EXPECTED_LENGTH, atNotification.lengthInBytes); in testDecode()
|
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/eap/message/simaka/ |
D | EapSimAkaAttributeFactoryTest.java | 62 assertEquals(SKIPPABLE_EXPECTED_LENGTH, unsupportedAttribute.lengthInBytes); in testDecodeInvalidSkippable()
|