| /packages/modules/Connectivity/tests/cts/net/src/android/net/cts/ |
| D | IpSecManagerTest.java | 20 import static android.net.IpSecAlgorithm.AUTH_AES_CMAC; 21 import static android.net.IpSecAlgorithm.AUTH_AES_XCBC; 22 import static android.net.IpSecAlgorithm.AUTH_CRYPT_AES_GCM; 23 import static android.net.IpSecAlgorithm.AUTH_CRYPT_CHACHA20_POLY1305; 24 import static android.net.IpSecAlgorithm.AUTH_HMAC_MD5; 25 import static android.net.IpSecAlgorithm.AUTH_HMAC_SHA1; 26 import static android.net.IpSecAlgorithm.AUTH_HMAC_SHA256; 27 import static android.net.IpSecAlgorithm.AUTH_HMAC_SHA384; 28 import static android.net.IpSecAlgorithm.AUTH_HMAC_SHA512; 29 import static android.net.IpSecAlgorithm.CRYPT_AES_CBC; [all …]
|
| D | IpSecAlgorithmImplTest.java | 19 import static android.net.IpSecAlgorithm.AUTH_AES_CMAC; 20 import static android.net.IpSecAlgorithm.AUTH_AES_XCBC; 21 import static android.net.IpSecAlgorithm.AUTH_CRYPT_CHACHA20_POLY1305; 22 import static android.net.IpSecAlgorithm.CRYPT_AES_CTR; 52 import android.net.IpSecAlgorithm; 93 private final IpSecAlgorithm mIpsecEncryptAlgo; 94 private final IpSecAlgorithm mIpsecAuthAlgo; 95 private final IpSecAlgorithm mIpsecAeadAlgo; 100 IpSecAlgorithm ipsecEncryptAlgo, in CheckCryptoImplTest() 101 IpSecAlgorithm ipsecAuthAlgo, in CheckCryptoImplTest() [all …]
|
| D | IpSecBaseTest.java | 19 import static android.net.IpSecAlgorithm.AUTH_CRYPT_AES_GCM; 20 import static android.net.IpSecAlgorithm.AUTH_HMAC_MD5; 21 import static android.net.IpSecAlgorithm.AUTH_HMAC_SHA1; 22 import static android.net.IpSecAlgorithm.AUTH_HMAC_SHA256; 23 import static android.net.IpSecAlgorithm.AUTH_HMAC_SHA384; 24 import static android.net.IpSecAlgorithm.AUTH_HMAC_SHA512; 25 import static android.net.IpSecAlgorithm.CRYPT_AES_CBC; 33 import android.net.IpSecAlgorithm; 177 return IpSecAlgorithm.getSupportedAlgorithms().contains(algorithm); in hasIpSecAlgorithm() 695 .setEncryption(new IpSecAlgorithm(IpSecAlgorithm.CRYPT_AES_CBC, CRYPT_KEY)) in buildIpSecTransform() [all …]
|
| D | IpSecManagerTunnelTest.java | 51 import android.net.IpSecAlgorithm; 705 new IpSecAlgorithm(IpSecAlgorithm.CRYPT_AES_CBC, CRYPT_KEY)); 707 new IpSecAlgorithm( 708 IpSecAlgorithm.AUTH_HMAC_SHA256, AUTH_KEY, AUTH_KEY.length * 4)); 1119 new IpSecAlgorithm(IpSecAlgorithm.CRYPT_AES_CBC, CRYPT_KEY)); 1121 new IpSecAlgorithm( 1122 IpSecAlgorithm.AUTH_HMAC_SHA256, AUTH_KEY, AUTH_KEY.length * 4));
|
| D | Ikev2VpnTest.java | 48 import android.net.IpSecAlgorithm; 175 Arrays.asList(IpSecAlgorithm.AUTH_CRYPT_AES_GCM);
|
| /packages/modules/Connectivity/tests/unit/java/android/net/ |
| D | IpSecAlgorithmTest.java | 19 import static android.net.IpSecAlgorithm.ALGO_TO_REQUIRED_FIRST_SDK; 70 new SimpleEntry<>(IpSecAlgorithm.AUTH_HMAC_MD5, 128), in testNoTruncLen() 71 new SimpleEntry<>(IpSecAlgorithm.AUTH_HMAC_SHA1, 160), in testNoTruncLen() 72 new SimpleEntry<>(IpSecAlgorithm.AUTH_HMAC_SHA256, 256), in testNoTruncLen() 73 new SimpleEntry<>(IpSecAlgorithm.AUTH_HMAC_SHA384, 384), in testNoTruncLen() 74 new SimpleEntry<>(IpSecAlgorithm.AUTH_HMAC_SHA512, 512), in testNoTruncLen() 75 new SimpleEntry<>(IpSecAlgorithm.AUTH_CRYPT_AES_GCM, 224), in testNoTruncLen() 81 new IpSecAlgorithm( in testNoTruncLen() 89 new IpSecAlgorithm(IpSecAlgorithm.CRYPT_AES_CBC, Arrays.copyOf(KEY_MATERIAL, 256 / 8)); in testNoTruncLen() 94 new IpSecAlgorithm(algoName, generateKey(keyLen), truncLen); in checkAuthKeyAndTruncLenValidation() [all …]
|
| D | IpSecConfigTest.java | 66 new IpSecAlgorithm( in getSampleConfig() 67 IpSecAlgorithm.CRYPT_AES_CBC, in getSampleConfig() 70 new IpSecAlgorithm( in getSampleConfig() 71 IpSecAlgorithm.AUTH_HMAC_MD5, in getSampleConfig() 75 new IpSecAlgorithm( in getSampleConfig() 76 IpSecAlgorithm.AUTH_CRYPT_AES_GCM, in getSampleConfig()
|
| /packages/modules/Connectivity/framework-t/src/android/net/ |
| D | IpSecConfig.java | 52 private IpSecAlgorithm mEncryption; 55 private IpSecAlgorithm mAuthentication; 58 private IpSecAlgorithm mAuthenticatedEncryption; 97 public void setEncryption(IpSecAlgorithm encryption) { in setEncryption() 102 public void setAuthentication(IpSecAlgorithm authentication) { in setAuthentication() 107 public void setAuthenticatedEncryption(IpSecAlgorithm authenticatedEncryption) { in setAuthenticatedEncryption() 173 public IpSecAlgorithm getEncryption() { in getEncryption() 177 public IpSecAlgorithm getAuthentication() { in getAuthentication() 181 public IpSecAlgorithm getAuthenticatedEncryption() { in getAuthenticatedEncryption() 273 …(IpSecAlgorithm) in.readParcelable(IpSecAlgorithm.class.getClassLoader(), android.net.IpSecAlgorit… in IpSecConfig() [all …]
|
| D | IpSecAlgorithm.java | 44 public final class IpSecAlgorithm implements Parcelable { class 259 public IpSecAlgorithm(@NonNull @AlgorithmName String algorithm, @NonNull byte[] key) { in IpSecAlgorithm() method in IpSecAlgorithm 275 public IpSecAlgorithm( in IpSecAlgorithm() method in IpSecAlgorithm 313 public static final @android.annotation.NonNull Parcelable.Creator<IpSecAlgorithm> CREATOR = 314 new Parcelable.Creator<IpSecAlgorithm>() { 315 public IpSecAlgorithm createFromParcel(Parcel in) { 320 return new IpSecAlgorithm(name, key, truncLenBits); 323 public IpSecAlgorithm[] newArray(int size) { 324 return new IpSecAlgorithm[size]; 489 public static boolean equals(IpSecAlgorithm lhs, IpSecAlgorithm rhs) { in equals()
|
| D | IpSecTransform.java | 291 public IpSecTransform.Builder setEncryption(@NonNull IpSecAlgorithm algo) { in setEncryption() 306 public IpSecTransform.Builder setAuthentication(@NonNull IpSecAlgorithm algo) { in setAuthentication() 327 public IpSecTransform.Builder setAuthenticatedEncryption(@NonNull IpSecAlgorithm algo) { in setAuthenticatedEncryption()
|
| /packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/ipsec/ike/crypto/ |
| D | IkeMacIntegrityTest.java | 19 import static android.net.IpSecAlgorithm.AUTH_AES_XCBC; 28 import android.net.IpSecAlgorithm; 159 IpSecAlgorithm ipsecAlgorithm = in testBuildIpSecAlgorithm() 162 IpSecAlgorithm expectedIpSecAlgorithm = in testBuildIpSecAlgorithm() 163 new IpSecAlgorithm(IpSecAlgorithm.AUTH_HMAC_SHA1, mHmacSha1IntegrityKey, 96); in testBuildIpSecAlgorithm() 165 assertTrue(IpSecAlgorithm.equals(expectedIpSecAlgorithm, ipsecAlgorithm)); in testBuildIpSecAlgorithm() 213 if (IpSecAlgorithm.getSupportedAlgorithms().contains(AUTH_AES_XCBC)) { in testBuildIpSecAlgorithmFromAuthAes128XCbcMac() 214 IpSecAlgorithm algo = mAes128XCbcIntgerityMac.buildIpSecAlgorithmWithKey(keyBytes); in testBuildIpSecAlgorithmFromAuthAes128XCbcMac() 229 IpSecAlgorithm.AUTH_HMAC_SHA1, in testGetIpSecAlgorithmName() 232 IpSecAlgorithm.AUTH_AES_XCBC, in testGetIpSecAlgorithmName() [all …]
|
| D | IkeNormalModeCipherTest.java | 26 import android.net.IpSecAlgorithm; 179 IpSecAlgorithm ipsecAlgorithm = mAesCbcCipher.buildIpSecAlgorithmWithKey(mAesCbcKey); in testBuildIpSecAlgorithm() 181 IpSecAlgorithm expectedIpSecAlgorithm = in testBuildIpSecAlgorithm() 182 new IpSecAlgorithm(IpSecAlgorithm.CRYPT_AES_CBC, mAesCbcKey); in testBuildIpSecAlgorithm() 184 assertTrue(IpSecAlgorithm.equals(expectedIpSecAlgorithm, ipsecAlgorithm)); in testBuildIpSecAlgorithm() 203 IpSecAlgorithm.CRYPT_AES_CBC, in testGetIpSecAlgorithmName() 206 IpSecAlgorithm.CRYPT_AES_CTR, in testGetIpSecAlgorithmName() 209 IpSecAlgorithm.AUTH_CRYPT_AES_GCM, in testGetIpSecAlgorithmName() 212 IpSecAlgorithm.AUTH_CRYPT_AES_GCM, in testGetIpSecAlgorithmName() 215 IpSecAlgorithm.AUTH_CRYPT_AES_GCM, in testGetIpSecAlgorithmName() [all …]
|
| D | IkeCombinedModeCipherTest.java | 25 import android.net.IpSecAlgorithm; 195 IpSecAlgorithm ipsecAlgorithm = mAesGcm16Cipher.buildIpSecAlgorithmWithKey(mAesGcmKey); in testBuildIpSecAlgorithm() 197 IpSecAlgorithm expectedIpSecAlgorithm = in testBuildIpSecAlgorithm() 198 new IpSecAlgorithm( in testBuildIpSecAlgorithm() 199 IpSecAlgorithm.AUTH_CRYPT_AES_GCM, mAesGcmKey, AES_GCM_16_CHECKSUM_LEN); in testBuildIpSecAlgorithm() 201 assertTrue(IpSecAlgorithm.equals(expectedIpSecAlgorithm, ipsecAlgorithm)); in testBuildIpSecAlgorithm()
|
| /packages/modules/IPsec/src/java/com/android/internal/net/ipsec/ike/crypto/ |
| D | IkeMacIntegrity.java | 22 import android.net.IpSecAlgorithm; 50 SaProposal.INTEGRITY_ALGORITHM_HMAC_SHA1_96, IpSecAlgorithm.AUTH_HMAC_SHA1); in IKE_ALGO_TO_IPSEC_ALGO.put() 52 SaProposal.INTEGRITY_ALGORITHM_AES_XCBC_96, IpSecAlgorithm.AUTH_AES_XCBC); in IKE_ALGO_TO_IPSEC_ALGO.put() 54 SaProposal.INTEGRITY_ALGORITHM_AES_CMAC_96, IpSecAlgorithm.AUTH_AES_CMAC); in IKE_ALGO_TO_IPSEC_ALGO.put() 56 SaProposal.INTEGRITY_ALGORITHM_HMAC_SHA2_256_128, IpSecAlgorithm.AUTH_HMAC_SHA256); in IKE_ALGO_TO_IPSEC_ALGO.put() 58 SaProposal.INTEGRITY_ALGORITHM_HMAC_SHA2_384_192, IpSecAlgorithm.AUTH_HMAC_SHA384); in IKE_ALGO_TO_IPSEC_ALGO.put() 60 SaProposal.INTEGRITY_ALGORITHM_HMAC_SHA2_512_256, IpSecAlgorithm.AUTH_HMAC_SHA512); in IKE_ALGO_TO_IPSEC_ALGO.put() 196 public IpSecAlgorithm buildIpSecAlgorithmWithKey(byte[] key) { in buildIpSecAlgorithmWithKey() 208 return new IpSecAlgorithm( in buildIpSecAlgorithmWithKey()
|
| D | IkeCipher.java | 20 import android.net.IpSecAlgorithm; 63 SaProposal.ENCRYPTION_ALGORITHM_AES_CBC, IpSecAlgorithm.CRYPT_AES_CBC); in IKE_ALGO_TO_IPSEC_ALGO.put() 65 SaProposal.ENCRYPTION_ALGORITHM_AES_CTR, IpSecAlgorithm.CRYPT_AES_CTR); in IKE_ALGO_TO_IPSEC_ALGO.put() 67 SaProposal.ENCRYPTION_ALGORITHM_AES_GCM_8, IpSecAlgorithm.AUTH_CRYPT_AES_GCM); in IKE_ALGO_TO_IPSEC_ALGO.put() 69 SaProposal.ENCRYPTION_ALGORITHM_AES_GCM_12, IpSecAlgorithm.AUTH_CRYPT_AES_GCM); in IKE_ALGO_TO_IPSEC_ALGO.put() 71 SaProposal.ENCRYPTION_ALGORITHM_AES_GCM_16, IpSecAlgorithm.AUTH_CRYPT_AES_GCM); in IKE_ALGO_TO_IPSEC_ALGO.put() 74 IpSecAlgorithm.AUTH_CRYPT_CHACHA20_POLY1305); in IKE_ALGO_TO_IPSEC_ALGO.put() 223 protected abstract IpSecAlgorithm buildIpSecAlgorithmWithKeyImpl(byte[] key); in buildIpSecAlgorithmWithKeyImpl() 234 public IpSecAlgorithm buildIpSecAlgorithmWithKey(byte[] key) { in buildIpSecAlgorithmWithKey()
|
| D | IkeNormalModeCipher.java | 19 import android.net.IpSecAlgorithm; 133 protected IpSecAlgorithm buildIpSecAlgorithmWithKeyImpl(byte[] key) { in buildIpSecAlgorithmWithKeyImpl() 134 return new IpSecAlgorithm(getIpSecAlgorithmName(getAlgorithmId()), key); in buildIpSecAlgorithmWithKeyImpl()
|
| D | IkeCombinedModeCipher.java | 19 import android.net.IpSecAlgorithm; 205 protected IpSecAlgorithm buildIpSecAlgorithmWithKeyImpl(byte[] key) { in buildIpSecAlgorithmWithKeyImpl() 206 return new IpSecAlgorithm(getIpSecAlgorithmName(getAlgorithmId()), key, mChecksumLen * 8); in buildIpSecAlgorithmWithKeyImpl()
|
| /packages/modules/Connectivity/tests/unit/java/com/android/server/ |
| D | IpSecServiceTest.java | 40 import android.net.IpSecAlgorithm; 109 private static final IpSecAlgorithm AUTH_ALGO = 110 new IpSecAlgorithm(IpSecAlgorithm.AUTH_HMAC_SHA256, AUTH_KEY, AUTH_KEY.length * 4); 111 private static final IpSecAlgorithm CRYPT_ALGO = 112 new IpSecAlgorithm(IpSecAlgorithm.CRYPT_AES_CBC, CRYPT_KEY); 113 private static final IpSecAlgorithm AEAD_ALGO = 114 new IpSecAlgorithm(IpSecAlgorithm.AUTH_CRYPT_AES_GCM, AEAD_KEY, 128); 321 for (IpSecAlgorithm algo : new IpSecAlgorithm[] {CRYPT_ALGO, AEAD_ALGO}) { in testValidateAlgorithmsAuth() 340 for (IpSecAlgorithm algo : new IpSecAlgorithm[] {AUTH_ALGO, AEAD_ALGO}) { in testValidateAlgorithmsCrypt() 359 for (IpSecAlgorithm algo : new IpSecAlgorithm[] {AUTH_ALGO, CRYPT_ALGO}) { in testValidateAlgorithmsAead()
|
| D | IpSecServiceParameterizedTest.java | 56 import android.net.IpSecAlgorithm; 221 private static final IpSecAlgorithm AUTH_ALGO = 222 new IpSecAlgorithm(IpSecAlgorithm.AUTH_HMAC_SHA256, AUTH_KEY, AUTH_KEY.length * 4); 223 private static final IpSecAlgorithm CRYPT_ALGO = 224 new IpSecAlgorithm(IpSecAlgorithm.CRYPT_AES_CBC, CRYPT_KEY); 225 private static final IpSecAlgorithm AEAD_ALGO = 226 new IpSecAlgorithm(IpSecAlgorithm.AUTH_CRYPT_AES_GCM, AEAD_KEY, 128); 381 IpSecAlgorithm auth = config.getAuthentication(); in verifyTransformNetdCalledForCreatingSA() 382 IpSecAlgorithm crypt = config.getEncryption(); in verifyTransformNetdCalledForCreatingSA() 383 IpSecAlgorithm authCrypt = config.getAuthenticatedEncryption(); in verifyTransformNetdCalledForCreatingSA()
|
| /packages/modules/IPsec/tests/cts/src/android/ipsec/ike/cts/ |
| D | SaProposalTest.java | 19 import static android.net.IpSecAlgorithm.AUTH_AES_CMAC; 20 import static android.net.IpSecAlgorithm.AUTH_AES_XCBC; 21 import static android.net.IpSecAlgorithm.AUTH_CRYPT_AES_GCM; 22 import static android.net.IpSecAlgorithm.AUTH_CRYPT_CHACHA20_POLY1305; 23 import static android.net.IpSecAlgorithm.AUTH_HMAC_MD5; 24 import static android.net.IpSecAlgorithm.AUTH_HMAC_SHA1; 25 import static android.net.IpSecAlgorithm.AUTH_HMAC_SHA256; 26 import static android.net.IpSecAlgorithm.AUTH_HMAC_SHA384; 27 import static android.net.IpSecAlgorithm.AUTH_HMAC_SHA512; 28 import static android.net.IpSecAlgorithm.CRYPT_AES_CBC; [all …]
|
| /packages/modules/Connectivity/framework-t/hiddenapi/ |
| D | hiddenapi-max-target-o-low-priority-tiramisu.txt | 228 Landroid/net/IpSecAlgorithm;->checkValidOrThrow(Ljava/lang/String;II)V 229 Landroid/net/IpSecAlgorithm;->CRYPT_NULL:Ljava/lang/String; 230 Landroid/net/IpSecAlgorithm;->equals(Landroid/net/IpSecAlgorithm;Landroid/net/IpSecAlgorithm;)Z 231 Landroid/net/IpSecAlgorithm;->isAead()Z 232 Landroid/net/IpSecAlgorithm;->isAuthentication()Z 233 Landroid/net/IpSecAlgorithm;->isEncryption()Z 234 Landroid/net/IpSecAlgorithm;->isUnsafeBuild()Z 235 Landroid/net/IpSecAlgorithm;->mKey:[B 236 Landroid/net/IpSecAlgorithm;->mName:Ljava/lang/String; 237 Landroid/net/IpSecAlgorithm;->mTruncLenBits:I [all …]
|
| /packages/modules/IPsec/src/java/android/net/ipsec/ike/ |
| D | ChildSaProposal.java | 23 import android.net.IpSecAlgorithm; 178 if (IpSecAlgorithm.getSupportedAlgorithms().contains(ipSecAlgoName)) { in getSupportedEncryptionAlgorithms() 205 if (IpSecAlgorithm.getSupportedAlgorithms().contains(ipSecAlgoName)) { in getSupportedIntegrityAlgorithms()
|
| /packages/modules/Connectivity/framework-t/api/ |
| D | current.txt | 72 public final class IpSecAlgorithm implements android.os.Parcelable { 73 ctor public IpSecAlgorithm(@NonNull String, @NonNull byte[]); 74 ctor public IpSecAlgorithm(@NonNull String, @NonNull byte[], int); 90 …field @NonNull public static final android.os.Parcelable.Creator<android.net.IpSecAlgorithm> CREAT… 136 …android.net.IpSecTransform.Builder setAuthenticatedEncryption(@NonNull android.net.IpSecAlgorithm); 137 …l public android.net.IpSecTransform.Builder setAuthentication(@NonNull android.net.IpSecAlgorithm); 138 …nNull public android.net.IpSecTransform.Builder setEncryption(@NonNull android.net.IpSecAlgorithm);
|
| D | lint-baseline.txt | 52 MissingNullability: android.net.IpSecAlgorithm#writeToParcel(android.os.Parcel, int) parameter #0:
|
| /packages/modules/Connectivity/service-t/src/com/android/server/ |
| D | IpSecService.java | 38 import android.net.IpSecAlgorithm; 1579 IpSecAlgorithm auth = config.getAuthentication(); in validateAlgorithms() 1580 IpSecAlgorithm crypt = config.getEncryption(); in validateAlgorithms() 1581 IpSecAlgorithm aead = config.getAuthenticatedEncryption(); in validateAlgorithms() 1738 IpSecAlgorithm auth = c.getAuthentication(); in createOrUpdateTransform() 1739 IpSecAlgorithm crypt = c.getEncryption(); in createOrUpdateTransform() 1740 IpSecAlgorithm authCrypt = c.getAuthenticatedEncryption(); in createOrUpdateTransform() 1744 cryptName = (authCrypt == null) ? IpSecAlgorithm.CRYPT_NULL : ""; in createOrUpdateTransform()
|