/frameworks/base/tests/net/java/android/net/ |
D | IpSecAlgorithmTest.java | 51 new SimpleEntry<>(IpSecAlgorithm.AUTH_HMAC_MD5, 128), in testNoTruncLen() 52 new SimpleEntry<>(IpSecAlgorithm.AUTH_HMAC_SHA1, 160), in testNoTruncLen() 53 new SimpleEntry<>(IpSecAlgorithm.AUTH_HMAC_SHA256, 256), in testNoTruncLen() 54 new SimpleEntry<>(IpSecAlgorithm.AUTH_HMAC_SHA384, 384), in testNoTruncLen() 55 new SimpleEntry<>(IpSecAlgorithm.AUTH_HMAC_SHA512, 512), in testNoTruncLen() 56 new SimpleEntry<>(IpSecAlgorithm.AUTH_CRYPT_AES_GCM, 224) in testNoTruncLen() 62 new IpSecAlgorithm( in testNoTruncLen() 70 new IpSecAlgorithm(IpSecAlgorithm.CRYPT_AES_CBC, Arrays.copyOf(KEY_MATERIAL, 256 / 8)); in testNoTruncLen() 76 new IpSecAlgorithm( in testTruncLenValidation() 77 IpSecAlgorithm.AUTH_HMAC_SHA512, in testTruncLenValidation() [all …]
|
D | IpSecConfigTest.java | 61 new IpSecAlgorithm( in getSampleConfig() 62 IpSecAlgorithm.CRYPT_AES_CBC, in getSampleConfig() 65 new IpSecAlgorithm( in getSampleConfig() 66 IpSecAlgorithm.AUTH_HMAC_MD5, in getSampleConfig() 70 new IpSecAlgorithm( in getSampleConfig() 71 IpSecAlgorithm.AUTH_CRYPT_AES_GCM, in getSampleConfig()
|
D | Ikev2VpnProfileTest.java | 171 List<String> allowedAlgorithms = Arrays.asList(IpSecAlgorithm.AUTH_CRYPT_AES_GCM); in testBuildWithAllowedAlgorithmsAead() 184 Arrays.asList(IpSecAlgorithm.AUTH_HMAC_SHA512, IpSecAlgorithm.CRYPT_AES_CBC); in testBuildWithAllowedAlgorithmsNormal() 208 builder.setAllowedAlgorithms(Arrays.asList(IpSecAlgorithm.AUTH_HMAC_SHA256)); in testSetAllowedAlgorithmsInvalidList() 214 builder.setAllowedAlgorithms(Arrays.asList(IpSecAlgorithm.CRYPT_AES_CBC)); in testSetAllowedAlgorithmsInvalidList() 226 builder.setAllowedAlgorithms(Arrays.asList(IpSecAlgorithm.AUTH_HMAC_MD5)); in testSetAllowedAlgorithmsInsecureAlgorithm() 232 builder.setAllowedAlgorithms(Arrays.asList(IpSecAlgorithm.AUTH_HMAC_SHA1)); in testSetAllowedAlgorithmsInsecureAlgorithm()
|
/frameworks/base/core/java/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()); in IpSecConfig() [all …]
|
D | IpSecAlgorithm.java | 37 public final class IpSecAlgorithm implements Parcelable { class 141 public IpSecAlgorithm(@NonNull @AlgorithmName String algorithm, @NonNull byte[] key) { in IpSecAlgorithm() method in IpSecAlgorithm 156 public IpSecAlgorithm( in IpSecAlgorithm() method in IpSecAlgorithm 194 public static final @android.annotation.NonNull Parcelable.Creator<IpSecAlgorithm> CREATOR = 195 new Parcelable.Creator<IpSecAlgorithm>() { 196 public IpSecAlgorithm createFromParcel(Parcel in) { 201 return new IpSecAlgorithm(name, key, truncLenBits); 204 public IpSecAlgorithm[] newArray(int size) { 205 return new IpSecAlgorithm[size]; 301 public static boolean equals(IpSecAlgorithm lhs, IpSecAlgorithm rhs) { in equals()
|
D | Ikev2VpnProfile.java | 78 IpSecAlgorithm.CRYPT_AES_CBC, 79 IpSecAlgorithm.AUTH_HMAC_SHA256, 80 IpSecAlgorithm.AUTH_HMAC_SHA384, 81 IpSecAlgorithm.AUTH_HMAC_SHA512, 82 IpSecAlgorithm.AUTH_CRYPT_AES_GCM)); 205 if (algorithmNames.contains(IpSecAlgorithm.AUTH_HMAC_MD5) in validateAllowedAlgorithms() 206 || algorithmNames.contains(IpSecAlgorithm.AUTH_HMAC_SHA1)) { in validateAllowedAlgorithms() 224 return algorithmNames.contains(IpSecAlgorithm.AUTH_CRYPT_AES_GCM); in hasAeadAlgorithms() 233 final boolean hasCrypt = algorithmNames.contains(IpSecAlgorithm.CRYPT_AES_CBC); in hasNormalModeAlgorithms() 234 final boolean hasAuth = algorithmNames.contains(IpSecAlgorithm.AUTH_HMAC_SHA256) in hasNormalModeAlgorithms() [all …]
|
D | IpSecTransform.java | 359 public IpSecTransform.Builder setEncryption(@NonNull IpSecAlgorithm algo) { in setEncryption() 374 public IpSecTransform.Builder setAuthentication(@NonNull IpSecAlgorithm algo) { in setAuthentication() 395 public IpSecTransform.Builder setAuthenticatedEncryption(@NonNull IpSecAlgorithm algo) { in setAuthenticatedEncryption()
|
/frameworks/base/tests/net/java/com/android/server/ |
D | IpSecServiceTest.java | 39 import android.net.IpSecAlgorithm; 103 private static final IpSecAlgorithm AUTH_ALGO = 104 new IpSecAlgorithm(IpSecAlgorithm.AUTH_HMAC_SHA256, AUTH_KEY, AUTH_KEY.length * 4); 105 private static final IpSecAlgorithm CRYPT_ALGO = 106 new IpSecAlgorithm(IpSecAlgorithm.CRYPT_AES_CBC, CRYPT_KEY); 107 private static final IpSecAlgorithm AEAD_ALGO = 108 new IpSecAlgorithm(IpSecAlgorithm.AUTH_CRYPT_AES_GCM, AEAD_KEY, 128); 319 for (IpSecAlgorithm algo : new IpSecAlgorithm[] {CRYPT_ALGO, AEAD_ALGO}) { in testValidateAlgorithmsAuth() 338 for (IpSecAlgorithm algo : new IpSecAlgorithm[] {AUTH_ALGO, AEAD_ALGO}) { in testValidateAlgorithmsCrypt() 357 for (IpSecAlgorithm algo : new IpSecAlgorithm[] {AUTH_ALGO, CRYPT_ALGO}) { in testValidateAlgorithmsAead()
|
D | IpSecServiceParameterizedTest.java | 37 import android.net.IpSecAlgorithm; 146 private static final IpSecAlgorithm AUTH_ALGO = 147 new IpSecAlgorithm(IpSecAlgorithm.AUTH_HMAC_SHA256, AUTH_KEY, AUTH_KEY.length * 4); 148 private static final IpSecAlgorithm CRYPT_ALGO = 149 new IpSecAlgorithm(IpSecAlgorithm.CRYPT_AES_CBC, CRYPT_KEY); 150 private static final IpSecAlgorithm AEAD_ALGO = 151 new IpSecAlgorithm(IpSecAlgorithm.AUTH_CRYPT_AES_GCM, AEAD_KEY, 128); 305 IpSecAlgorithm auth = config.getAuthentication(); in verifyTransformNetdCalledForCreatingSA() 306 IpSecAlgorithm crypt = config.getEncryption(); in verifyTransformNetdCalledForCreatingSA() 307 IpSecAlgorithm authCrypt = config.getAuthenticatedEncryption(); in verifyTransformNetdCalledForCreatingSA()
|
/frameworks/base/tests/net/java/com/android/internal/net/ |
D | VpnProfileTest.java | 28 import android.net.IpSecAlgorithm; 99 IpSecAlgorithm.AUTH_CRYPT_AES_GCM, in getSampleIkev2Profile() 100 IpSecAlgorithm.AUTH_HMAC_SHA512, in getSampleIkev2Profile() 101 IpSecAlgorithm.CRYPT_AES_CBC)); in getSampleIkev2Profile()
|
/frameworks/base/services/core/java/com/android/server/connectivity/ |
D | VpnIkev2Utils.java | 40 import android.net.IpSecAlgorithm; 213 if (allowedAlgorithms.contains(IpSecAlgorithm.AUTH_HMAC_SHA512)) { in getChildSaProposals() 216 if (allowedAlgorithms.contains(IpSecAlgorithm.AUTH_HMAC_SHA384)) { in getChildSaProposals() 219 if (allowedAlgorithms.contains(IpSecAlgorithm.AUTH_HMAC_SHA256)) { in getChildSaProposals()
|
/frameworks/base/services/core/java/com/android/server/ |
D | IpSecService.java | 34 import android.net.IpSecAlgorithm; 1446 IpSecAlgorithm auth = config.getAuthentication(); in validateAlgorithms() 1447 IpSecAlgorithm crypt = config.getEncryption(); in validateAlgorithms() 1448 IpSecAlgorithm aead = config.getAuthenticatedEncryption(); in validateAlgorithms() 1597 IpSecAlgorithm auth = c.getAuthentication(); in createOrUpdateTransform() 1598 IpSecAlgorithm crypt = c.getEncryption(); in createOrUpdateTransform() 1599 IpSecAlgorithm authCrypt = c.getAuthenticatedEncryption(); in createOrUpdateTransform() 1603 cryptName = (authCrypt == null) ? IpSecAlgorithm.CRYPT_NULL : ""; in createOrUpdateTransform()
|
/frameworks/base/config/ |
D | hiddenapi-greylist-max-o.txt | 43589 Landroid/net/IpSecAlgorithm;->checkValidOrThrow(Ljava/lang/String;II)V 43590 Landroid/net/IpSecAlgorithm;->CRYPT_NULL:Ljava/lang/String; 43591 Landroid/net/IpSecAlgorithm;->equals(Landroid/net/IpSecAlgorithm;Landroid/net/IpSecAlgorithm;)Z 43592 Landroid/net/IpSecAlgorithm;->isAead()Z 43593 Landroid/net/IpSecAlgorithm;->isAuthentication()Z 43594 Landroid/net/IpSecAlgorithm;->isEncryption()Z 43595 Landroid/net/IpSecAlgorithm;->isUnsafeBuild()Z 43596 Landroid/net/IpSecAlgorithm;->mKey:[B 43597 Landroid/net/IpSecAlgorithm;->mName:Ljava/lang/String; 43598 Landroid/net/IpSecAlgorithm;->mTruncLenBits:I [all …]
|
/frameworks/base/non-updatable-api/ |
D | current.txt | 28812 public final class IpSecAlgorithm implements android.os.Parcelable { 28813 ctor public IpSecAlgorithm(@NonNull String, @NonNull byte[]); 28814 ctor public IpSecAlgorithm(@NonNull String, @NonNull byte[], int); 28826 …field @NonNull public static final android.os.Parcelable.Creator<android.net.IpSecAlgorithm> CREAT… 28870 …android.net.IpSecTransform.Builder setAuthenticatedEncryption(@NonNull android.net.IpSecAlgorithm); 28871 …l public android.net.IpSecTransform.Builder setAuthentication(@NonNull android.net.IpSecAlgorithm); 28872 …nNull public android.net.IpSecTransform.Builder setEncryption(@NonNull android.net.IpSecAlgorithm);
|
/frameworks/base/api/ |
D | current.txt | 28942 public final class IpSecAlgorithm implements android.os.Parcelable { 28943 ctor public IpSecAlgorithm(@NonNull String, @NonNull byte[]); 28944 ctor public IpSecAlgorithm(@NonNull String, @NonNull byte[], int); 28956 …field @NonNull public static final android.os.Parcelable.Creator<android.net.IpSecAlgorithm> CREAT… 29000 …android.net.IpSecTransform.Builder setAuthenticatedEncryption(@NonNull android.net.IpSecAlgorithm); 29001 …l public android.net.IpSecTransform.Builder setAuthentication(@NonNull android.net.IpSecAlgorithm); 29002 …nNull public android.net.IpSecTransform.Builder setEncryption(@NonNull android.net.IpSecAlgorithm);
|