Searched refs:IpSecAlgorithm (Results 1 – 10 of 10) sorted by relevance
/frameworks/base/tests/net/java/android/net/ |
D | IpSecAlgorithmTest.java | 50 new SimpleEntry<>(IpSecAlgorithm.AUTH_HMAC_MD5, 128), in testNoTruncLen() 51 new SimpleEntry<>(IpSecAlgorithm.AUTH_HMAC_SHA1, 160), in testNoTruncLen() 52 new SimpleEntry<>(IpSecAlgorithm.AUTH_HMAC_SHA256, 256), in testNoTruncLen() 53 new SimpleEntry<>(IpSecAlgorithm.AUTH_HMAC_SHA384, 384), in testNoTruncLen() 54 new SimpleEntry<>(IpSecAlgorithm.AUTH_HMAC_SHA512, 512), in testNoTruncLen() 55 new SimpleEntry<>(IpSecAlgorithm.AUTH_CRYPT_AES_GCM, 224) in testNoTruncLen() 61 new IpSecAlgorithm( in testNoTruncLen() 69 new IpSecAlgorithm(IpSecAlgorithm.CRYPT_AES_CBC, Arrays.copyOf(KEY_MATERIAL, 256 / 8)); in testNoTruncLen() 75 new IpSecAlgorithm( in testTruncLenValidation() 76 IpSecAlgorithm.AUTH_HMAC_SHA512, in testTruncLenValidation() [all …]
|
D | IpSecConfigTest.java | 59 new IpSecAlgorithm( in getSampleConfig() 60 IpSecAlgorithm.CRYPT_AES_CBC, in getSampleConfig() 63 new IpSecAlgorithm( in getSampleConfig() 64 IpSecAlgorithm.AUTH_HMAC_MD5, in getSampleConfig() 68 new IpSecAlgorithm( in getSampleConfig() 69 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; 93 public void setEncryption(IpSecAlgorithm encryption) { in setEncryption() 98 public void setAuthentication(IpSecAlgorithm authentication) { in setAuthentication() 103 public void setAuthenticatedEncryption(IpSecAlgorithm authenticatedEncryption) { in setAuthenticatedEncryption() 153 public IpSecAlgorithm getEncryption() { in getEncryption() 157 public IpSecAlgorithm getAuthentication() { in getAuthentication() 161 public IpSecAlgorithm getAuthenticatedEncryption() { in getAuthenticatedEncryption() 247 (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 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 | 358 public IpSecTransform.Builder setEncryption(@NonNull IpSecAlgorithm algo) { in setEncryption() 373 public IpSecTransform.Builder setAuthentication(@NonNull IpSecAlgorithm algo) { in setAuthentication() 394 public IpSecTransform.Builder setAuthenticatedEncryption(@NonNull IpSecAlgorithm algo) { in setAuthenticatedEncryption()
|
/frameworks/base/tests/net/java/com/android/server/ |
D | IpSecServiceTest.java | 38 import android.net.IpSecAlgorithm; 101 private static final IpSecAlgorithm AUTH_ALGO = 102 new IpSecAlgorithm(IpSecAlgorithm.AUTH_HMAC_SHA256, AUTH_KEY, AUTH_KEY.length * 4); 103 private static final IpSecAlgorithm CRYPT_ALGO = 104 new IpSecAlgorithm(IpSecAlgorithm.CRYPT_AES_CBC, CRYPT_KEY); 105 private static final IpSecAlgorithm AEAD_ALGO = 106 new IpSecAlgorithm(IpSecAlgorithm.AUTH_CRYPT_AES_GCM, AEAD_KEY, 128); 309 for (IpSecAlgorithm algo : new IpSecAlgorithm[] {CRYPT_ALGO, AEAD_ALGO}) { in testValidateAlgorithmsAuth() 328 for (IpSecAlgorithm algo : new IpSecAlgorithm[] {AUTH_ALGO, AEAD_ALGO}) { in testValidateAlgorithmsCrypt() 347 for (IpSecAlgorithm algo : new IpSecAlgorithm[] {AUTH_ALGO, CRYPT_ALGO}) { in testValidateAlgorithmsAead()
|
D | IpSecServiceParameterizedTest.java | 33 import android.net.IpSecAlgorithm; 124 private static final IpSecAlgorithm AUTH_ALGO = 125 new IpSecAlgorithm(IpSecAlgorithm.AUTH_HMAC_SHA256, AUTH_KEY, AUTH_KEY.length * 4); 126 private static final IpSecAlgorithm CRYPT_ALGO = 127 new IpSecAlgorithm(IpSecAlgorithm.CRYPT_AES_CBC, CRYPT_KEY); 128 private static final IpSecAlgorithm AEAD_ALGO = 129 new IpSecAlgorithm(IpSecAlgorithm.AUTH_CRYPT_AES_GCM, AEAD_KEY, 128); 280 eq(IpSecAlgorithm.AUTH_HMAC_SHA256), in testCreateTransform() 283 eq(IpSecAlgorithm.CRYPT_AES_CBC), in testCreateTransform() 321 eq(IpSecAlgorithm.AUTH_CRYPT_AES_GCM), in testCreateTransformAead()
|
/frameworks/base/services/core/java/com/android/server/ |
D | IpSecService.java | 33 import android.net.IpSecAlgorithm; 1398 IpSecAlgorithm auth = config.getAuthentication(); in validateAlgorithms() 1399 IpSecAlgorithm crypt = config.getEncryption(); in validateAlgorithms() 1400 IpSecAlgorithm aead = config.getAuthenticatedEncryption(); in validateAlgorithms() 1510 IpSecAlgorithm auth = c.getAuthentication(); in createOrUpdateTransform() 1511 IpSecAlgorithm crypt = c.getEncryption(); in createOrUpdateTransform() 1512 IpSecAlgorithm authCrypt = c.getAuthenticatedEncryption(); in createOrUpdateTransform() 1516 cryptName = (authCrypt == null) ? IpSecAlgorithm.CRYPT_NULL : ""; in createOrUpdateTransform()
|
/frameworks/base/config/ |
D | hiddenapi-public-dex.txt | 25338 Landroid/net/IpSecAlgorithm; 25339 Landroid/net/IpSecAlgorithm;-><init>(Ljava/lang/String;[B)V 25340 Landroid/net/IpSecAlgorithm;-><init>(Ljava/lang/String;[BI)V 25341 Landroid/net/IpSecAlgorithm;->AUTH_CRYPT_AES_GCM:Ljava/lang/String; 25342 Landroid/net/IpSecAlgorithm;->AUTH_HMAC_MD5:Ljava/lang/String; 25343 Landroid/net/IpSecAlgorithm;->AUTH_HMAC_SHA1:Ljava/lang/String; 25344 Landroid/net/IpSecAlgorithm;->AUTH_HMAC_SHA256:Ljava/lang/String; 25345 Landroid/net/IpSecAlgorithm;->AUTH_HMAC_SHA384:Ljava/lang/String; 25346 Landroid/net/IpSecAlgorithm;->AUTH_HMAC_SHA512:Ljava/lang/String; 25347 Landroid/net/IpSecAlgorithm;->CREATOR:Landroid/os/Parcelable$Creator; [all …]
|
/frameworks/base/api/ |
D | current.txt | 27001 public final class IpSecAlgorithm implements android.os.Parcelable { 27002 ctor public IpSecAlgorithm(java.lang.String, byte[]); 27003 ctor public IpSecAlgorithm(java.lang.String, byte[], int); 27015 field public static final android.os.Parcelable.Creator<android.net.IpSecAlgorithm> CREATOR; 27059 …d public android.net.IpSecTransform.Builder setAuthenticatedEncryption(android.net.IpSecAlgorithm); 27060 method public android.net.IpSecTransform.Builder setAuthentication(android.net.IpSecAlgorithm); 27061 method public android.net.IpSecTransform.Builder setEncryption(android.net.IpSecAlgorithm);
|