Searched refs:IpSecAlgorithm (Results 1 – 10 of 10) sorted by relevance
/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()
|
/frameworks/base/core/java/android/net/ |
D | IpSecConfig.java | 51 private IpSecAlgorithm mEncryption; 54 private IpSecAlgorithm mAuthentication; 57 private IpSecAlgorithm mAuthenticatedEncryption; 96 public void setEncryption(IpSecAlgorithm encryption) { in setEncryption() 101 public void setAuthentication(IpSecAlgorithm authentication) { in setAuthentication() 106 public void setAuthenticatedEncryption(IpSecAlgorithm authenticatedEncryption) { in setAuthenticatedEncryption() 172 public IpSecAlgorithm getEncryption() { in getEncryption() 176 public IpSecAlgorithm getAuthentication() { in getAuthentication() 180 public IpSecAlgorithm getAuthenticatedEncryption() { in getAuthenticatedEncryption() 272 (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 | IpSecTransform.java | 361 public IpSecTransform.Builder setEncryption(@NonNull IpSecAlgorithm algo) { in setEncryption() 376 public IpSecTransform.Builder setAuthentication(@NonNull IpSecAlgorithm algo) { in setAuthentication() 397 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; 102 private static final IpSecAlgorithm AUTH_ALGO = 103 new IpSecAlgorithm(IpSecAlgorithm.AUTH_HMAC_SHA256, AUTH_KEY, AUTH_KEY.length * 4); 104 private static final IpSecAlgorithm CRYPT_ALGO = 105 new IpSecAlgorithm(IpSecAlgorithm.CRYPT_AES_CBC, CRYPT_KEY); 106 private static final IpSecAlgorithm AEAD_ALGO = 107 new IpSecAlgorithm(IpSecAlgorithm.AUTH_CRYPT_AES_GCM, AEAD_KEY, 128); 316 for (IpSecAlgorithm algo : new IpSecAlgorithm[] {CRYPT_ALGO, AEAD_ALGO}) { in testValidateAlgorithmsAuth() 335 for (IpSecAlgorithm algo : new IpSecAlgorithm[] {AUTH_ALGO, AEAD_ALGO}) { in testValidateAlgorithmsCrypt() 354 for (IpSecAlgorithm algo : new IpSecAlgorithm[] {AUTH_ALGO, CRYPT_ALGO}) { in testValidateAlgorithmsAead()
|
D | IpSecServiceParameterizedTest.java | 37 import android.net.IpSecAlgorithm; 144 private static final IpSecAlgorithm AUTH_ALGO = 145 new IpSecAlgorithm(IpSecAlgorithm.AUTH_HMAC_SHA256, AUTH_KEY, AUTH_KEY.length * 4); 146 private static final IpSecAlgorithm CRYPT_ALGO = 147 new IpSecAlgorithm(IpSecAlgorithm.CRYPT_AES_CBC, CRYPT_KEY); 148 private static final IpSecAlgorithm AEAD_ALGO = 149 new IpSecAlgorithm(IpSecAlgorithm.AUTH_CRYPT_AES_GCM, AEAD_KEY, 128); 302 IpSecAlgorithm auth = config.getAuthentication(); in verifyTransformNetdCalledForCreatingSA() 303 IpSecAlgorithm crypt = config.getEncryption(); in verifyTransformNetdCalledForCreatingSA() 304 IpSecAlgorithm authCrypt = config.getAuthenticatedEncryption(); in verifyTransformNetdCalledForCreatingSA()
|
/frameworks/base/services/core/java/com/android/server/ |
D | IpSecService.java | 36 import android.net.IpSecAlgorithm; 1431 IpSecAlgorithm auth = config.getAuthentication(); in validateAlgorithms() 1432 IpSecAlgorithm crypt = config.getEncryption(); in validateAlgorithms() 1433 IpSecAlgorithm aead = config.getAuthenticatedEncryption(); in validateAlgorithms() 1582 IpSecAlgorithm auth = c.getAuthentication(); in createOrUpdateTransform() 1583 IpSecAlgorithm crypt = c.getEncryption(); in createOrUpdateTransform() 1584 IpSecAlgorithm authCrypt = c.getAuthenticatedEncryption(); in createOrUpdateTransform() 1588 cryptName = (authCrypt == null) ? IpSecAlgorithm.CRYPT_NULL : ""; in createOrUpdateTransform()
|
/frameworks/base/config/ |
D | hiddenapi-greylist-max-o.txt | 46767 Landroid/net/IpSecAlgorithm$AlgorithmName; 46768 Landroid/net/IpSecAlgorithm;->checkValidOrThrow(Ljava/lang/String;II)V 46769 Landroid/net/IpSecAlgorithm;->CRYPT_NULL:Ljava/lang/String; 46770 Landroid/net/IpSecAlgorithm;->equals(Landroid/net/IpSecAlgorithm;Landroid/net/IpSecAlgorithm;)Z 46771 Landroid/net/IpSecAlgorithm;->isAead()Z 46772 Landroid/net/IpSecAlgorithm;->isAuthentication()Z 46773 Landroid/net/IpSecAlgorithm;->isEncryption()Z 46774 Landroid/net/IpSecAlgorithm;->isUnsafeBuild()Z 46775 Landroid/net/IpSecAlgorithm;->mKey:[B 46776 Landroid/net/IpSecAlgorithm;->mName:Ljava/lang/String; [all …]
|
/frameworks/base/api/ |
D | current.txt | 28573 public final class IpSecAlgorithm implements android.os.Parcelable { 28574 ctor public IpSecAlgorithm(@NonNull String, @NonNull byte[]); 28575 ctor public IpSecAlgorithm(@NonNull String, @NonNull byte[], int); 28587 …field @NonNull public static final android.os.Parcelable.Creator<android.net.IpSecAlgorithm> CREAT… 28631 …android.net.IpSecTransform.Builder setAuthenticatedEncryption(@NonNull android.net.IpSecAlgorithm); 28632 …l public android.net.IpSecTransform.Builder setAuthentication(@NonNull android.net.IpSecAlgorithm); 28633 …nNull public android.net.IpSecTransform.Builder setEncryption(@NonNull android.net.IpSecAlgorithm);
|