/packages/modules/IPsec/tests/cts/src/android/ipsec/ike/cts/ |
D | TunUtils.java | 154 public byte[] getEspPacket(int spi, boolean encap, int startIndex) { in getEspPacket() argument 157 return isEsp(pkt, spi, encap); in getEspPacket() 163 int spi, byte[] plaintext, boolean useEncap, int expectedPacketSize) throws Exception { in awaitEspPacketNoPlaintext() argument 169 byte[] espPkt = getEspPacket(spi, useEncap, startIndex); in awaitEspPacketNoPlaintext() 188 fail("No such ESP packet found with SPI " + spi); in awaitEspPacketNoPlaintext() 193 private static boolean isSpiEqual(byte[] pkt, int espOffset, int spi) { in isSpiEqual() argument 195 return pkt[espOffset] == (byte) ((spi >>> 24) & 0xff) in isSpiEqual() 196 && pkt[espOffset + 1] == (byte) ((spi >>> 16) & 0xff) in isSpiEqual() 197 && pkt[espOffset + 2] == (byte) ((spi >>> 8) & 0xff) in isSpiEqual() 198 && pkt[espOffset + 3] == (byte) (spi & 0xff); in isSpiEqual() [all …]
|
/packages/modules/Connectivity/tests/cts/net/src/android/net/cts/ |
D | TunUtils.java | 141 int spi, byte[] plaintext, boolean useEncap, int expectedPacketSize) throws Exception { in awaitEspPacketNoPlaintext() argument 144 && isEspFailIfSpecifiedPlaintextFound(pkt, spi, useEncap, plaintext)); in awaitEspPacketNoPlaintext() 149 public byte[] awaitEspPacket(int spi, boolean useEncap) throws Exception { in awaitEspPacket() argument 150 return awaitPacket((pkt) -> isEsp(pkt, spi, useEncap)); in awaitEspPacket() 153 private static boolean isSpiEqual(byte[] pkt, int espOffset, int spi) { in isSpiEqual() argument 158 return actualSpi == spi; in isSpiEqual() 171 byte[] pkt, int spi, boolean encap, byte[] plaintext) { in isEspFailIfSpecifiedPlaintextFound() argument 176 return isEsp(pkt, spi, encap); in isEspFailIfSpecifiedPlaintextFound() 179 private static boolean isEsp(byte[] pkt, int spi, boolean encap) { in isEsp() argument 183 && isSpiEqual(pkt, IP6_HDRLEN + UDP_HDRLEN, spi); in isEsp() [all …]
|
D | IpSecManagerTunnelTest.java | 252 try (IpSecManager.SecurityParameterIndex spi = in testSecurityExceptionBuildTunnelTransformWithoutAppop() argument 256 .buildTunnelModeTransform(REMOTE_INNER_4, spi)) { in testSecurityExceptionBuildTunnelTransformWithoutAppop() 354 int spi, in getIpSecTunnelTestRunnable() argument 367 int spi, in getIpSecTunnelTestRunnable() argument 411 spi, TEST_DATA, useEncap, expectedPacketSize); in getIpSecTunnelTestRunnable() 438 int spi, 487 int spi, 523 spi, 524 spi, 535 spi, [all …]
|
D | PacketUtils.java | 357 public final int spi; field in PacketUtils.EspHeader 371 public EspHeader(int nextHeader, int spi, int seqNum, byte[] key, byte[] payload) { in EspHeader() argument 372 this(nextHeader, spi, seqNum, payload, getDefaultCipher(key), getDefaultAuth(key)); in EspHeader() 386 int spi, in EspHeader() argument 392 this.spi = spi; in EspHeader() 436 espPayloadBuffer.putInt(spi); in addPacketBytes() 439 espPayloadBuffer.put(cipher.getCipherText(nextHeader, payload, spi, seqNum)); in addPacketBytes() 545 public abstract byte[] getCipherText(int nextHeader, byte[] payload, int spi, int seqNum) in getCipherText() argument 565 public byte[] getCipherText(int nextHeader, byte[] payload, int spi, int seqNum) in getCipherText() argument 581 public byte[] getCipherText(int nextHeader, byte[] payload, int spi, int seqNum) in getCipherText() argument [all …]
|
/packages/modules/Connectivity/staticlibs/device/com/android/net/module/util/netlink/xfrm/ |
D | StructXfrmId.java | 47 public final long spi; field in StructXfrmId 55 public StructXfrmId(@NonNull final byte[] nestedStructDAddr, long spi, short proto) { in StructXfrmId() argument 57 this.spi = spi; in StructXfrmId() 64 public StructXfrmId(@NonNull final InetAddress destAddress, long spi, short proto) { in StructXfrmId() argument 65 this(new StructXfrmAddressT(destAddress).writeToBytes(), spi, proto); in StructXfrmId()
|
D | StructXfrmUsersaId.java | 50 public final long spi; field in StructXfrmUsersaId 62 @NonNull final byte[] nestedStructDAddr, long spi, int family, short proto) { in StructXfrmUsersaId() argument 64 this.spi = spi; in StructXfrmUsersaId() 73 @NonNull final InetAddress destAddress, long spi, int family, short proto) { in StructXfrmUsersaId() argument 74 this(new StructXfrmAddressT(destAddress).writeToBytes(), spi, family, proto); in StructXfrmUsersaId()
|
D | XfrmNetlinkGetSaMessage.java | 60 long spi, in XfrmNetlinkGetSaMessage() argument 66 mXfrmUsersaId = new StructXfrmUsersaId(destAddress, spi, family, proto); in XfrmNetlinkGetSaMessage() 99 @NonNull final InetAddress destAddress, long spi, short proto) { in newXfrmNetlinkGetSaMessage() argument 105 new XfrmNetlinkGetSaMessage(nlmsghdr, destAddress, spi, proto); in newXfrmNetlinkGetSaMessage()
|
D | StructXfrmUsersaInfo.java | 132 long spi, in StructXfrmUsersaInfo() argument 147 mXfrmId = new StructXfrmId(dAddr, spi, proto); in StructXfrmUsersaInfo() 172 long spi, in StructXfrmUsersaInfo() argument 187 spi, in StructXfrmUsersaInfo() 208 return mXfrmId.spi; in getSpi()
|
/packages/modules/IPsec/src/java/com/android/internal/net/ipsec/ike/utils/ |
D | IkeSpiGenerator.java | 48 long spi; in allocateSpi() local 50 spi = mRandom.nextLong(); in allocateSpi() 51 } while (spi == 0L in allocateSpi() 53 new Pair<InetAddress, Long>(sourceAddress, spi))); in allocateSpi() 54 return new IkeSecurityParameterIndex(sourceAddress, spi); in allocateSpi()
|
/packages/modules/Connectivity/framework-t/src/android/net/ |
D | IpSecSpiResponse.java | 32 public final int spi; field in IpSecSpiResponse 44 out.writeInt(spi); in writeToParcel() 50 spi = inSpi; in IpSecSpiResponse() 59 spi = IpSecManager.INVALID_SECURITY_PARAMETER_INDEX; in IpSecSpiResponse() 65 spi = in.readInt(); in IpSecSpiResponse()
|
D | IpSecTransform.java | 383 @NonNull IpSecManager.SecurityParameterIndex spi) in buildTransportModeTransform() argument 387 Objects.requireNonNull(spi); in buildTransportModeTransform() 388 if (spi.getResourceId() == INVALID_RESOURCE_ID) { in buildTransportModeTransform() 393 mConfig.setSpiResourceId(spi.getResourceId()); in buildTransportModeTransform() 422 @NonNull IpSecManager.SecurityParameterIndex spi) in buildTunnelModeTransform() argument 426 Objects.requireNonNull(spi); in buildTunnelModeTransform() 427 if (spi.getResourceId() == INVALID_RESOURCE_ID) { in buildTunnelModeTransform() 432 mConfig.setSpiResourceId(spi.getResourceId()); in buildTunnelModeTransform()
|
/packages/modules/IPsec/src/java/android/net/ipsec/ike/exceptions/ |
D | ChildSaNotFoundException.java | 46 public ChildSaNotFoundException(int spi) { in ChildSaNotFoundException() argument 48 mIpSecSpi = spi; in ChildSaNotFoundException() 58 public ChildSaNotFoundException(int spi, byte[] notifyData) { in ChildSaNotFoundException() argument 60 mIpSecSpi = spi; in ChildSaNotFoundException()
|
/packages/modules/IPsec/src/java/com/android/internal/net/ipsec/ike/message/ |
D | IkeNotifyPayload.java | 267 public final int spi; field in IkeNotifyPayload 292 spi = inputBuffer.getInt(); in IkeNotifyPayload() 297 spi = SPI_NOT_INCLUDED; in IkeNotifyPayload() 410 byteBuffer.putInt(spi); in encodeToByteBuffer() 426 @ProtocolId int protocolId, byte spiSize, int spi, int notifyType, byte[] notifyData) { in IkeNotifyPayload() argument 430 this.spi = spi; in IkeNotifyPayload() 470 @ProtocolId int protocolId, int spi, int notifyType, byte[] notifyData) { in IkeNotifyPayload() argument 471 this(protocolId, SPI_LEN_IPSEC, spi, notifyType, notifyData); in IkeNotifyPayload() 543 return new InvalidSelectorsException(spi, notifyData); in validateAndBuildIkeException() 547 return new ChildSaNotFoundException(spi, notifyData); in validateAndBuildIkeException()
|
D | IkeSaPayload.java | 626 public final long spi; field in IkeSaPayload.Proposal 635 long spi, in Proposal() argument 640 this.spi = spi; in Proposal() 663 long spi = SPI_NOT_INCLUDED; in readFrom() local 669 spi = Integer.toUnsignedLong(inputBuffer.getInt()); in readFrom() 672 spi = inputBuffer.getLong(); in readFrom() 722 return new IkeProposal(number, spiSize, spi, saProposal, hasUnrecognizedTransform); in readFrom() 731 return new ChildProposal(number, spi, saProposal, hasUnrecognizedTransform); in readFrom() 786 byteBuffer.putInt((int) spi); in encodeToByteBuffer() 789 byteBuffer.putLong((long) spi); in encodeToByteBuffer() [all …]
|
/packages/modules/Connectivity/service-t/src/com/android/server/ |
D | IpSecService.java | 623 int resourceId, IpSecConfig config, SpiRecord spi, EncapSocketRecord socket) { in TransformRecord() argument 626 mSpi = spi; in TransformRecord() 629 spi.setOwnedByTransform(); in TransformRecord() 692 int spi = mSpi.getSpi(); in freeUnderlyingResources() local 698 spi, in freeUnderlyingResources() 749 String destinationAddress, int spi) { in SpiRecord() argument 753 mSpi = spi; in SpiRecord() 1178 int spi = IpSecManager.INVALID_SECURITY_PARAMETER_INDEX; in allocateSecurityParameterIndex() local 1182 IpSecManager.Status.RESOURCE_UNAVAILABLE, INVALID_RESOURCE_ID, spi); in allocateSecurityParameterIndex() 1185 spi = mNetd.ipSecAllocateSpi(callingUid, "", destinationAddress, requestedSpi); in allocateSecurityParameterIndex() [all …]
|
/packages/modules/IPsec/src/java/com/android/internal/net/ipsec/ike/ |
D | IkeSocket.java | 216 public final void registerIke(long spi, Callback callback) { in registerIke() argument 217 mSpiToCallback.put(spi, callback); in registerIke() 225 public final void unregisterIke(long spi) { in unregisterIke() argument 226 mSpiToCallback.remove(spi); in unregisterIke()
|
/packages/modules/Connectivity/staticlibs/netd/aidl_api/netd_aidl_interface/1/android/net/ |
D | INetd.aidl | 22 …transformId, in @utf8InCpp String sourceAddress, in @utf8InCpp String destinationAddress, int spi); in ipSecAllocateSpi() argument 23 …Address, in @utf8InCpp String destinationAddress, int underlyingNetId, int spi, int markValue, int… in ipSecAddSecurityAssociation() argument 24 …f8InCpp String sourceAddress, in @utf8InCpp String destinationAddress, int spi, int markValue, int… in ipSecDeleteSecurityAssociation() argument 25 …t direction, in @utf8InCpp String sourceAddress, in @utf8InCpp String destinationAddress, int spi); in ipSecApplyTransportModeTransform() argument 27 …@utf8InCpp String tmplSrcAddress, in @utf8InCpp String tmplDstAddress, int spi, int markValue, int… in ipSecAddSecurityPolicy() argument 28 …@utf8InCpp String tmplSrcAddress, in @utf8InCpp String tmplDstAddress, int spi, int markValue, int… in ipSecUpdateSecurityPolicy() argument
|
/packages/modules/Connectivity/staticlibs/netd/aidl_api/netd_aidl_interface/3/android/net/ |
D | INetd.aidl | 40 …transformId, in @utf8InCpp String sourceAddress, in @utf8InCpp String destinationAddress, int spi); in ipSecAllocateSpi() argument 41 …Address, in @utf8InCpp String destinationAddress, int underlyingNetId, int spi, int markValue, int… in ipSecAddSecurityAssociation() argument 42 …f8InCpp String sourceAddress, in @utf8InCpp String destinationAddress, int spi, int markValue, int… in ipSecDeleteSecurityAssociation() argument 43 …t direction, in @utf8InCpp String sourceAddress, in @utf8InCpp String destinationAddress, int spi); in ipSecApplyTransportModeTransform() argument 45 …@utf8InCpp String tmplSrcAddress, in @utf8InCpp String tmplDstAddress, int spi, int markValue, int… in ipSecAddSecurityPolicy() argument 46 …@utf8InCpp String tmplSrcAddress, in @utf8InCpp String tmplDstAddress, int spi, int markValue, int… in ipSecUpdateSecurityPolicy() argument
|
/packages/modules/Connectivity/staticlibs/netd/aidl_api/netd_aidl_interface/2/android/net/ |
D | INetd.aidl | 39 …transformId, in @utf8InCpp String sourceAddress, in @utf8InCpp String destinationAddress, int spi); in ipSecAllocateSpi() argument 40 …Address, in @utf8InCpp String destinationAddress, int underlyingNetId, int spi, int markValue, int… in ipSecAddSecurityAssociation() argument 41 …f8InCpp String sourceAddress, in @utf8InCpp String destinationAddress, int spi, int markValue, int… in ipSecDeleteSecurityAssociation() argument 42 …t direction, in @utf8InCpp String sourceAddress, in @utf8InCpp String destinationAddress, int spi); in ipSecApplyTransportModeTransform() argument 44 …@utf8InCpp String tmplSrcAddress, in @utf8InCpp String tmplDstAddress, int spi, int markValue, int… in ipSecAddSecurityPolicy() argument 45 …@utf8InCpp String tmplSrcAddress, in @utf8InCpp String tmplDstAddress, int spi, int markValue, int… in ipSecUpdateSecurityPolicy() argument
|
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/data/ |
D | LightAppPermGroupLiveData.kt | 161 for (spi in permissionManager.splitPermissions) { in <lambda>() constant 162 val splitPerm = spi.splitPermission in <lambda>() 177 val newPerms = spi.newPermissions in <lambda>() 186 if (packageInfo.targetSdkVersion < spi.targetSdk) { in <lambda>()
|
/packages/modules/Connectivity/staticlibs/netd/aidl_api/netd_aidl_interface/13/android/net/ |
D | INetd.aidl | 62 …transformId, in @utf8InCpp String sourceAddress, in @utf8InCpp String destinationAddress, int spi); in ipSecAllocateSpi() argument 63 …Address, in @utf8InCpp String destinationAddress, int underlyingNetId, int spi, int markValue, int… in ipSecAddSecurityAssociation() argument 64 …f8InCpp String sourceAddress, in @utf8InCpp String destinationAddress, int spi, int markValue, int… in ipSecDeleteSecurityAssociation() argument 65 …t direction, in @utf8InCpp String sourceAddress, in @utf8InCpp String destinationAddress, int spi); in ipSecApplyTransportModeTransform() argument 67 …@utf8InCpp String tmplSrcAddress, in @utf8InCpp String tmplDstAddress, int spi, int markValue, int… in ipSecAddSecurityPolicy() argument 68 …@utf8InCpp String tmplSrcAddress, in @utf8InCpp String tmplDstAddress, int spi, int markValue, int… in ipSecUpdateSecurityPolicy() argument
|
/packages/modules/Connectivity/staticlibs/netd/aidl_api/netd_aidl_interface/7/android/net/ |
D | INetd.aidl | 62 …transformId, in @utf8InCpp String sourceAddress, in @utf8InCpp String destinationAddress, int spi); in ipSecAllocateSpi() argument 63 …Address, in @utf8InCpp String destinationAddress, int underlyingNetId, int spi, int markValue, int… in ipSecAddSecurityAssociation() argument 64 …f8InCpp String sourceAddress, in @utf8InCpp String destinationAddress, int spi, int markValue, int… in ipSecDeleteSecurityAssociation() argument 65 …t direction, in @utf8InCpp String sourceAddress, in @utf8InCpp String destinationAddress, int spi); in ipSecApplyTransportModeTransform() argument 67 …@utf8InCpp String tmplSrcAddress, in @utf8InCpp String tmplDstAddress, int spi, int markValue, int… in ipSecAddSecurityPolicy() argument 68 …@utf8InCpp String tmplSrcAddress, in @utf8InCpp String tmplDstAddress, int spi, int markValue, int… in ipSecUpdateSecurityPolicy() argument
|
/packages/modules/Connectivity/staticlibs/netd/aidl_api/netd_aidl_interface/6/android/net/ |
D | INetd.aidl | 62 …transformId, in @utf8InCpp String sourceAddress, in @utf8InCpp String destinationAddress, int spi); in ipSecAllocateSpi() argument 63 …Address, in @utf8InCpp String destinationAddress, int underlyingNetId, int spi, int markValue, int… in ipSecAddSecurityAssociation() argument 64 …f8InCpp String sourceAddress, in @utf8InCpp String destinationAddress, int spi, int markValue, int… in ipSecDeleteSecurityAssociation() argument 65 …t direction, in @utf8InCpp String sourceAddress, in @utf8InCpp String destinationAddress, int spi); in ipSecApplyTransportModeTransform() argument 67 …@utf8InCpp String tmplSrcAddress, in @utf8InCpp String tmplDstAddress, int spi, int markValue, int… in ipSecAddSecurityPolicy() argument 68 …@utf8InCpp String tmplSrcAddress, in @utf8InCpp String tmplDstAddress, int spi, int markValue, int… in ipSecUpdateSecurityPolicy() argument
|
/packages/modules/Connectivity/staticlibs/netd/binder/android/net/ |
D | INetd.aidl | 267 int spi); in ipSecAllocateSpi() argument 304 int spi, in ipSecAddSecurityAssociation() argument 330 int spi, in ipSecDeleteSecurityAssociation() argument 351 int spi); in ipSecApplyTransportModeTransform() argument 381 int spi, in ipSecAddSecurityPolicy() argument 405 int spi, in ipSecUpdateSecurityPolicy() argument
|
/packages/modules/Connectivity/staticlibs/netd/aidl_api/netd_aidl_interface/10/android/net/ |
D | INetd.aidl | 62 …transformId, in @utf8InCpp String sourceAddress, in @utf8InCpp String destinationAddress, int spi); in ipSecAllocateSpi() argument 63 …Address, in @utf8InCpp String destinationAddress, int underlyingNetId, int spi, int markValue, int… in ipSecAddSecurityAssociation() argument 64 …f8InCpp String sourceAddress, in @utf8InCpp String destinationAddress, int spi, int markValue, int… in ipSecDeleteSecurityAssociation() argument 65 …t direction, in @utf8InCpp String sourceAddress, in @utf8InCpp String destinationAddress, int spi); in ipSecApplyTransportModeTransform() argument 67 …@utf8InCpp String tmplSrcAddress, in @utf8InCpp String tmplDstAddress, int spi, int markValue, int… in ipSecAddSecurityPolicy() argument 68 …@utf8InCpp String tmplSrcAddress, in @utf8InCpp String tmplDstAddress, int spi, int markValue, int… in ipSecUpdateSecurityPolicy() argument
|