Home
last modified time | relevance | path

Searched refs:spi (Results 1 – 25 of 102) sorted by relevance

12345

/aosp12/hardware/nxp/secure_element/pn8x/
H A DAndroid.bp20 "libese-spi/p73/pal/phNxpEsePal.cpp",
21 "libese-spi/p73/pal/spi/phNxpEsePal_spi.cpp",
24 "libese-spi/p73/utils/config.cpp",
30 "libese-spi/p73/lib",
31 "libese-spi/p73/pal/spi",
32 "libese-spi/p73/utils",
33 "libese-spi/src/include",
37 "libese-spi/common/include",
38 "libese-spi/p73/common",
39 "libese-spi/p73/inc",
[all …]
/aosp12/packages/modules/Connectivity/tests/cts/net/src/android/net/cts/
H A DTunUtils.java150 public byte[] awaitEspPacket(int spi, boolean useEncap) throws Exception { in awaitEspPacket() argument
151 return awaitPacket((pkt) -> isEsp(pkt, spi, useEncap)); in awaitEspPacket()
154 private static boolean isSpiEqual(byte[] pkt, int espOffset, int spi) { in isSpiEqual() argument
156 return pkt[espOffset] == (byte) ((spi >>> 24) & 0xff) in isSpiEqual()
157 && pkt[espOffset + 1] == (byte) ((spi >>> 16) & 0xff) in isSpiEqual()
158 && pkt[espOffset + 2] == (byte) ((spi >>> 8) & 0xff) in isSpiEqual()
159 && pkt[espOffset + 3] == (byte) (spi & 0xff); in isSpiEqual()
172 byte[] pkt, int spi, boolean encap, byte[] plaintext) { in isEspFailIfSpecifiedPlaintextFound() argument
177 return isEsp(pkt, spi, encap); in isEspFailIfSpecifiedPlaintextFound()
180 private static boolean isEsp(byte[] pkt, int spi, boolean encap) { in isEsp() argument
[all …]
H A DIpSecManagerTunnelTest.java303 int spi, in getIpSecTunnelTestRunnable() argument
319 int spi, in getIpSecTunnelTestRunnable() argument
367 int spi,
412 int spi,
490 int spi,
727 spi,
815 int spi,
909 spi,
916 int spi,
928 spi,
[all …]
H A DPacketUtils.java357 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()
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
631 public byte[] getCipherText(int nextHeader, byte[] payload, int spi, int seqNum) in getCipherText() argument
[all …]
/aosp12/hardware/nxp/secure_element/snxxx/
H A DAndroid.bp45 "libese-spi/common/include",
46 "libese-spi/p73/common",
47 "libese-spi/p73/inc",
48 "libese-spi/p73/lib",
49 "libese-spi/p73/pal",
50 "libese-spi/p73/pal/spi",
51 "libese-spi/p73/utils",
52 "libese-spi/p73/spm",
53 "libese-spi/src/include",
/aosp12/packages/modules/IPsec/tests/cts/src/android/ipsec/ike/cts/
H A DTunUtils.java139 public byte[] getEspPacket(int spi, boolean encap, int startIndex) { in getEspPacket() argument
142 return isEsp(pkt, spi, encap); in getEspPacket()
154 byte[] espPkt = getEspPacket(spi, useEncap, startIndex); in awaitEspPacketNoPlaintext()
173 fail("No such ESP packet found with SPI " + spi); in awaitEspPacketNoPlaintext()
178 private static boolean isSpiEqual(byte[] pkt, int espOffset, int spi) { in isSpiEqual() argument
180 return pkt[espOffset] == (byte) ((spi >>> 24) & 0xff) in isSpiEqual()
181 && pkt[espOffset + 1] == (byte) ((spi >>> 16) & 0xff) in isSpiEqual()
182 && pkt[espOffset + 2] == (byte) ((spi >>> 8) & 0xff) in isSpiEqual()
183 && pkt[espOffset + 3] == (byte) (spi & 0xff); in isSpiEqual()
186 private static boolean isEsp(byte[] pkt, int spi, boolean encap) { in isEsp() argument
[all …]
H A DIkeExceptionTest.java83 final int spi = 0xc9d8d742; in testInvalidSelectorsException() local
85 final InvalidSelectorsException exception = new InvalidSelectorsException(spi, packetInfo); in testInvalidSelectorsException()
87 assertEquals(spi, exception.getIpSecSpi()); in testInvalidSelectorsException()
/aosp12/packages/modules/IPsec/src/java/com/android/internal/net/ipsec/ike/utils/
H A DIkeSpiGenerator.java48 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()
/aosp12/frameworks/base/core/java/android/net/
H A DIpSecSpiResponse.java32 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()
H A DIpSecTransform.java348 @NonNull IpSecManager.SecurityParameterIndex spi) in buildTransportModeTransform() argument
352 Preconditions.checkNotNull(spi); in buildTransportModeTransform()
353 if (spi.getResourceId() == INVALID_RESOURCE_ID) { in buildTransportModeTransform()
358 mConfig.setSpiResourceId(spi.getResourceId()); in buildTransportModeTransform()
387 @NonNull IpSecManager.SecurityParameterIndex spi) in buildTunnelModeTransform() argument
391 Preconditions.checkNotNull(spi); in buildTunnelModeTransform()
392 if (spi.getResourceId() == INVALID_RESOURCE_ID) { in buildTunnelModeTransform()
397 mConfig.setSpiResourceId(spi.getResourceId()); in buildTunnelModeTransform()
/aosp12/frameworks/base/services/core/java/com/android/server/pm/
H A DShortcutUser.java96 return new PackageWithUser(spi.getPackageUserId(), spi.getPackageName()); in of()
269 forAllPackageItems(spi -> { in forPackageItem()
270 if ((spi.getPackageUserId() == packageUserId) in forPackageItem()
272 callback.accept(spi); in forPackageItem()
347 forPackageItem(packageName, packageUserId, spi -> { in attemptToRestoreIfNeededAndSave()
348 spi.attemptToRestoreIfNeededAndSave(); in attemptToRestoreIfNeededAndSave()
397 if (spi.getPackageUserId() != spi.getOwnerUserId()) { in saveShortcutPackageItem()
400 spi.saveToXml(out, forBackup); in saveShortcutPackageItem()
409 spi.saveToFile(path, forBackup); in saveShortcutPackageItem()
423 fileName = spi.getPackageName() + spi.getPackageUserId() + ".xml"; in getShortcutPackageItemFile()
[all …]
/aosp12/packages/modules/IPsec/src/java/android/net/ipsec/ike/exceptions/
H A DChildSaNotFoundException.java44 public ChildSaNotFoundException(int spi) { in ChildSaNotFoundException() argument
46 mIpSecSpi = spi; in ChildSaNotFoundException()
56 public ChildSaNotFoundException(int spi, byte[] notifyData) { in ChildSaNotFoundException() argument
58 mIpSecSpi = spi; in ChildSaNotFoundException()
H A DInvalidSelectorsException.java52 public InvalidSelectorsException(int spi, @NonNull byte[] packetInfo) { in InvalidSelectorsException() argument
55 mIpSecSpi = spi; in InvalidSelectorsException()
/aosp12/packages/modules/IPsec/src/java/com/android/internal/net/ipsec/ike/message/
H A DIkeNotifyPayload.java257 public final int spi; field in IkeNotifyPayload
282 spi = inputBuffer.getInt(); in IkeNotifyPayload()
287 spi = SPI_NOT_INCLUDED; in IkeNotifyPayload()
400 byteBuffer.putInt(spi); in encodeToByteBuffer()
416 @ProtocolId int protocolId, byte spiSize, int spi, int notifyType, byte[] notifyData) { in IkeNotifyPayload() argument
420 this.spi = spi; in IkeNotifyPayload()
460 @ProtocolId int protocolId, int spi, int notifyType, byte[] notifyData) { in IkeNotifyPayload() argument
461 this(protocolId, SPI_LEN_IPSEC, spi, notifyType, notifyData); in IkeNotifyPayload()
533 return new InvalidSelectorsException(spi, notifyData); in validateAndBuildIkeException()
537 return new ChildSaNotFoundException(spi, notifyData); in validateAndBuildIkeException()
H A DIkeSaPayload.java559 public final long spi; field in IkeSaPayload.Proposal
568 long spi, in Proposal() argument
573 this.spi = spi; in Proposal()
596 long spi = SPI_NOT_INCLUDED; in readFrom() local
602 spi = Integer.toUnsignedLong(inputBuffer.getInt()); in readFrom()
605 spi = inputBuffer.getLong(); in readFrom()
719 byteBuffer.putInt((int) spi); in encodeToByteBuffer()
722 byteBuffer.putLong((long) spi); in encodeToByteBuffer()
771 long spi, in IkeProposal() argument
860 long spi, in ChildProposal() argument
[all …]
/aosp12/frameworks/base/keystore/java/android/security/keystore2/
H A DAndroidKeyStoreProvider.java168 Object spi; in getKeyStoreOperationHandle() local
170 spi = ((Signature) cryptoPrimitive).getCurrentSpi(); in getKeyStoreOperationHandle()
172 spi = ((Mac) cryptoPrimitive).getCurrentSpi(); in getKeyStoreOperationHandle()
174 spi = ((Cipher) cryptoPrimitive).getCurrentSpi(); in getKeyStoreOperationHandle()
179 if (spi == null) { in getKeyStoreOperationHandle()
181 } else if (!(spi instanceof KeyStoreCryptoOperation)) { in getKeyStoreOperationHandle()
184 + ", spi: " + spi); in getKeyStoreOperationHandle()
186 return ((KeyStoreCryptoOperation) spi).getOperationHandle(); in getKeyStoreOperationHandle()
/aosp12/system/netd/server/
H A DXfrmController.h119 int spi; member
222 const std::string& destinationAddress, int32_t underlyingNetId, int32_t spi,
233 int32_t spi, int32_t markValue,
241 int32_t spi);
248 const std::string& tmplDstAddress, int32_t spi,
256 int32_t spi, int32_t markValue,
368 const std::string& destinationAddress, int32_t spi,
372 static netdutils::Status fillXfrmCommonInfo(int32_t spi, int32_t markValue, int32_t markMask,
417 const std::string& tmplDstAddress, int32_t spi,
H A DXfrmController.cpp540 ALOGD("spi=%0.8x", spi); in ipSecAddSecurityAssociation()
622 ALOGD("spi=%0.8x", spi); in ipSecDeleteSecurityAssociation()
748 info->spi = htonl(spi); in fillXfrmCommonInfo()
768 ALOGD("spi=%0.8x", spi); in ipSecApplyTransportModeTransform()
1115 usersa->id.spi = record.spi; in fillUserSaInfo()
1139 said->spi = record.spi; in fillUserSaId()
1217 int spi; in allocateSpi() local
1220 spiInfo.min = spi; in allocateSpi()
1221 spiInfo.max = spi; in allocateSpi()
1229 *outSpi = spi; in allocateSpi()
[all …]
/aosp12/packages/modules/IPsec/src/java/com/android/internal/net/ipsec/ike/
H A DIkeSocket.java215 public final void registerIke(long spi, IkeSessionStateMachine ikeSession) { in registerIke() argument
216 mSpiToIkeSession.put(spi, ikeSession); in registerIke()
224 public final void unregisterIke(long spi) { in unregisterIke() argument
225 mSpiToIkeSession.remove(spi); in unregisterIke()
/aosp12/system/netd/server/aidl_api/netd_aidl_interface/1/android/net/
H A DINetd.aidl22 …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
/aosp12/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/data/
H A DLightAppPermGroupLiveData.kt147 for (spi in permissionManager.splitPermissions) {
148 val splitPerm = spi.splitPermission
162 val newPerms = spi.newPermissions
171 if (packageInfo.targetSdkVersion < spi.targetSdk) {
/aosp12/frameworks/base/services/core/java/com/android/server/
H A DIpSecService.java605 mSpi = spi; in TransformRecord()
608 spi.setOwnedByTransform(); in TransformRecord()
626 int spi = mSpi.getSpi(); in freeUnderlyingResources() local
634 spi, in freeUnderlyingResources()
688 mSpi = spi; in SpiRecord()
1137 int spi = IpSecManager.INVALID_SECURITY_PARAMETER_INDEX; in allocateSecurityParameterIndex() local
1144 spi = in allocateSecurityParameterIndex()
1148 Log.d(TAG, "Allocated SPI " + spi); in allocateSecurityParameterIndex()
1162 return new IpSecSpiResponse(IpSecManager.Status.OK, resourceId, spi); in allocateSecurityParameterIndex()
1853 int spi = IpSecManager.INVALID_SECURITY_PARAMETER_INDEX; in applyTunnelModeTransform() local
[all …]
/aosp12/system/netd/server/aidl_api/netd_aidl_interface/2/android/net/
H A DINetd.aidl39 …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
/aosp12/system/netd/server/aidl_api/netd_aidl_interface/3/android/net/
H A DINetd.aidl40 …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
/aosp12/bionic/libc/kernel/uapi/linux/netfilter/
H A Dxt_policy.h37 __u8 saddr : 1, daddr : 1, proto : 1, mode : 1, spi : 1, reqid : 1; member
52 __be32 spi; member

12345