Searched refs:IpSecAlgorithm (Results 1 – 14 of 14) sorted by relevance
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 …]
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()
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()
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 …]
37 public final class IpSecAlgorithm implements Parcelable { class141 public IpSecAlgorithm(@NonNull @AlgorithmName String algorithm, @NonNull byte[] key) { in IpSecAlgorithm() method in IpSecAlgorithm156 public IpSecAlgorithm( in IpSecAlgorithm() method in IpSecAlgorithm194 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()
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 …]
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()
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()
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()
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()
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()
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()
30043 public final class IpSecAlgorithm implements android.os.Parcelable {30044 ctor public IpSecAlgorithm(@NonNull String, @NonNull byte[]);30045 ctor public IpSecAlgorithm(@NonNull String, @NonNull byte[], int);30057 …field @NonNull public static final android.os.Parcelable.Creator<android.net.IpSecAlgorithm> CREAT…30101 …android.net.IpSecTransform.Builder setAuthenticatedEncryption(@NonNull android.net.IpSecAlgorithm);30102 …l public android.net.IpSecTransform.Builder setAuthentication(@NonNull android.net.IpSecAlgorithm);30103 …nNull public android.net.IpSecTransform.Builder setEncryption(@NonNull android.net.IpSecAlgorithm);
META-INF/ META-INF/MANIFEST.MF javax/ javax/net/ javax/ ...