/packages/modules/IPsec/src/java/com/android/internal/net/ipsec/ike/message/ |
D | IkeNotifyPayload.java | 268 public final byte[] notifyData; field in IkeNotifyPayload 303 notifyData = new byte[payloadBody.length - NOTIFY_HEADER_LEN - spiSize]; in IkeNotifyPayload() 304 inputBuffer.get(notifyData); in IkeNotifyPayload() 372 byte[] notifyData = cookie2Notify.notifyData; in handleCookieAndGenerateCopy() 373 if (notifyData.length < minLen || notifyData.length > maxLen) { in handleCookieAndGenerateCopy() 380 + notifyData.length); in handleCookieAndGenerateCopy() 383 return new IkeNotifyPayload(cookie2Notify.notifyType, notifyData); in handleCookieAndGenerateCopy() 412 byteBuffer.put(notifyData); in encodeToByteBuffer() 422 return GENERIC_HEADER_LENGTH + NOTIFY_HEADER_LEN + spiSize + notifyData.length; in getPayloadLength() 426 @ProtocolId int protocolId, byte spiSize, int spi, int notifyType, byte[] notifyData) { in IkeNotifyPayload() argument [all …]
|
D | IkeAuthDigitalSignPayload.java | 374 int dataLen = notifyPayload.notifyData.length; in getSignatureHashAlgorithmsFromIkeNotifyPayload() 381 ByteBuffer serializedHashAlgos = ByteBuffer.wrap(notifyPayload.notifyData); in getSignatureHashAlgorithmsFromIkeNotifyPayload()
|
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/ipsec/ike/message/ |
D | IkeNotifyPayloadTest.java | 100 byte[] notifyData = TestUtils.hexStringToByteArray(NAT_DETECTION_DATA_HEX_STRING); in testDecodeNotifyPayloadSpiUnset() 107 assertArrayEquals(notifyData, payload.notifyData); in testDecodeNotifyPayloadSpiUnset() 119 assertArrayEquals(new byte[0], payload.notifyData); in testDecodeNotifyPayloadSpiSet() 148 assertArrayEquals(cookieData, outboundCookieNotify.notifyData); in verifyHandleCookieAndGenerateCopy() 190 assertArrayEquals(new byte[] {(byte) payloadType}, notifyPayload.notifyData); in testBuildIkeErrorNotifyWithData() 200 assertArrayEquals(new byte[0], notifyPayload.notifyData); in testBuildIkeErrorNotifyWithoutData() 210 assertArrayEquals(new byte[0], notifyPayload.notifyData); in testBuildChildConfigNotify() 220 assertArrayEquals(new byte[0], notifyPayload.notifyData); in testBuildChildErrorNotify()
|
/packages/modules/IPsec/src/java/android/net/ipsec/ike/exceptions/ |
D | InvalidMajorVersionException.java | 57 public InvalidMajorVersionException(byte[] notifyData) { in InvalidMajorVersionException() argument 58 super(ERROR_TYPE_INVALID_MAJOR_VERSION, notifyData); in InvalidMajorVersionException() 59 mVersion = notifyData[0]; in InvalidMajorVersionException()
|
D | IkeProtocolException.java | 137 protected IkeProtocolException(@ErrorType int code, byte[] notifyData) { in IkeProtocolException() argument 140 if (!isValidDataLength(notifyData.length)) { in IkeProtocolException() 145 + notifyData.length); in IkeProtocolException() 149 mErrorData = notifyData.clone(); in IkeProtocolException()
|
D | UnsupportedCriticalPayloadException.java | 63 public UnsupportedCriticalPayloadException(byte[] notifyData) { in UnsupportedCriticalPayloadException() argument 64 super(ERROR_TYPE_UNSUPPORTED_CRITICAL_PAYLOAD, notifyData); in UnsupportedCriticalPayloadException() 65 mPayloadTypeList = Collections.singletonList(byteArrayToInteger(notifyData)); in UnsupportedCriticalPayloadException()
|
D | TsUnacceptableException.java | 53 public TsUnacceptableException(byte[] notifyData) { in TsUnacceptableException() argument 54 super(ERROR_TYPE_TS_UNACCEPTABLE, notifyData); in TsUnacceptableException()
|
D | NoAdditionalSasException.java | 52 public NoAdditionalSasException(byte[] notifyData) { in NoAdditionalSasException() argument 53 super(ERROR_TYPE_NO_ADDITIONAL_SAS, notifyData); in NoAdditionalSasException()
|
D | FailedCpRequiredException.java | 53 public FailedCpRequiredException(byte[] notifyData) { in FailedCpRequiredException() argument 54 super(ERROR_TYPE_FAILED_CP_REQUIRED, notifyData); in FailedCpRequiredException()
|
D | InvalidIkeSpiException.java | 52 public InvalidIkeSpiException(byte[] notifyData) { in InvalidIkeSpiException() argument 53 super(ERROR_TYPE_INVALID_IKE_SPI, notifyData); in InvalidIkeSpiException()
|
D | SinglePairRequiredException.java | 53 public SinglePairRequiredException(byte[] notifyData) { in SinglePairRequiredException() argument 54 super(ERROR_TYPE_SINGLE_PAIR_REQUIRED, notifyData); in SinglePairRequiredException()
|
D | InternalAddressFailureException.java | 52 public InternalAddressFailureException(byte[] notifyData) { in InternalAddressFailureException() argument 53 super(ERROR_TYPE_INTERNAL_ADDRESS_FAILURE, notifyData); in InternalAddressFailureException()
|
D | TemporaryFailureException.java | 56 public TemporaryFailureException(byte[] notifyData) { in TemporaryFailureException() argument 57 super(ERROR_TYPE_TEMPORARY_FAILURE, notifyData); in TemporaryFailureException()
|
D | InvalidMessageIdException.java | 56 public InvalidMessageIdException(byte[] notifyData) { in InvalidMessageIdException() argument 57 super(ERROR_TYPE_INVALID_MESSAGE_ID, notifyData); in InvalidMessageIdException()
|
D | InvalidKeException.java | 57 public InvalidKeException(byte[] notifyData) { in InvalidKeException() argument 58 super(ERROR_TYPE_INVALID_KE_PAYLOAD, notifyData); in InvalidKeException()
|
D | ChildSaNotFoundException.java | 58 public ChildSaNotFoundException(int spi, byte[] notifyData) { in ChildSaNotFoundException() argument 59 super(ERROR_TYPE_CHILD_SA_NOT_FOUND, notifyData); in ChildSaNotFoundException()
|
D | AuthenticationFailedException.java | 66 public AuthenticationFailedException(byte[] notifyData) { in AuthenticationFailedException() argument 67 super(ERROR_TYPE_AUTHENTICATION_FAILED, notifyData); in AuthenticationFailedException()
|
D | NoValidProposalChosenException.java | 73 public NoValidProposalChosenException(byte[] notifyData) { in NoValidProposalChosenException() argument 74 super(ERROR_TYPE_NO_PROPOSAL_CHOSEN, notifyData); in NoValidProposalChosenException()
|
D | InvalidSyntaxException.java | 86 public InvalidSyntaxException(byte[] notifyData) { in InvalidSyntaxException() argument 87 super(ERROR_TYPE_INVALID_SYNTAX, notifyData); in InvalidSyntaxException()
|
/packages/modules/IPsec/src/java/com/android/internal/net/ipsec/ike/ike3gpp/ |
D | Ike3gppN1ModeUtils.java | 58 static byte[] getSnssaiFromNotifyData(byte[] notifyData) throws InvalidSyntaxException { in getSnssaiFromNotifyData() argument 59 ByteBuffer buffer = ByteBuffer.wrap(notifyData); in getSnssaiFromNotifyData() 63 if (snssaiLen != notifyData.length - 1) { in getSnssaiFromNotifyData()
|
D | Ike3gppBackoffTimerUtils.java | 40 static byte getBackoffTimerfromNotifyData(byte[] notifyData) throws InvalidSyntaxException { in getBackoffTimerfromNotifyData() argument 41 ByteBuffer buffer = ByteBuffer.wrap(notifyData); in getBackoffTimerfromNotifyData()
|
D | Ike3gppIkeAuth.java | 126 Ike3gppN1ModeUtils.getSnssaiFromNotifyData(notifyPayload.notifyData); in handleAuthResp() 153 backoffTimerPayload.notifyData); in handleAuthResp()
|
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/ipsec/ike/ike3gpp/ |
D | Ike3gppExtensionExchangeTest.java | 102 assertArrayEquals(DEVICE_IDENTITY_PAYLOAD_IMEI, deviceIdentity.notifyData); in testGetRequestPayloadsInEapIkeAuthServerAuthenticatedAndNetworkRequested() 144 assertArrayEquals(N1_MODE_CAPABILITY_DATA, n1ModeCapability.notifyData); in testGetRequestPayloadsIkeAuth() 158 assertArrayEquals(DEVICE_IDENTITY_PAYLOAD_IMEI, deviceIdentity.notifyData); in testGetResponsePayloadsIkeInfo() 228 assertArrayEquals(N1_MODE_INFORMATION_DATA, n1ModeInformation.notifyData); in testExtract3gppResponsePayloadsIkeAuth() 229 assertArrayEquals(BACKOFF_TIMER_DATA, backoffTimer.notifyData); in testExtract3gppResponsePayloadsIkeAuth() 230 assertArrayEquals(DEVICE_IDENTITY_PAYLOAD_IMEI, deviceIdentity.notifyData); in testExtract3gppResponsePayloadsIkeAuth()
|
D | Ike3gppDeviceIdentityUtilsTest.java | 49 assertArrayEquals(DEVICE_IDENTITY_PAYLOAD_IMEISV, deviceIdentityPayload.notifyData); in testGenerateDeviceIdentityWithImeisv() 60 assertArrayEquals(DEVICE_IDENTITY_PAYLOAD_IMEI, deviceIdentityPayload.notifyData); in testGenerateDeviceIdentityWithImei()
|
/packages/modules/IPsec/tests/iketests/src/java/android/net/ipsec/ike/exceptions/ |
D | IkeProtocolExceptionTest.java | 44 assertArrayEquals(new byte[] {(byte) 0x37}, payload.notifyData); in buildNotifyPayloadWithData() 54 assertArrayEquals(new byte[0], payload.notifyData); in buildNotifyPayloadWithoutData()
|