Home
last modified time | relevance | path

Searched refs:algorithmNames (Results 1 – 1 of 1) sorted by relevance

/frameworks/base/core/java/android/net/
DIkev2VpnProfile.java244 private static void validateAllowedAlgorithms(@NonNull List<String> algorithmNames) { in validateAllowedAlgorithms() argument
246 if (algorithmNames.contains(IpSecAlgorithm.AUTH_HMAC_MD5) in validateAllowedAlgorithms()
247 || algorithmNames.contains(IpSecAlgorithm.AUTH_HMAC_SHA1)) { in validateAllowedAlgorithms()
252 if (hasAeadAlgorithms(algorithmNames) || hasNormalModeAlgorithms(algorithmNames)) { in validateAllowedAlgorithms()
264 public static boolean hasAeadAlgorithms(@NonNull List<String> algorithmNames) { in hasAeadAlgorithms() argument
265 return algorithmNames.contains(IpSecAlgorithm.AUTH_CRYPT_AES_GCM); in hasAeadAlgorithms()
273 public static boolean hasNormalModeAlgorithms(@NonNull List<String> algorithmNames) { in hasNormalModeAlgorithms() argument
274 final boolean hasCrypt = algorithmNames.contains(IpSecAlgorithm.CRYPT_AES_CBC); in hasNormalModeAlgorithms()
275 final boolean hasAuth = algorithmNames.contains(IpSecAlgorithm.AUTH_HMAC_SHA256) in hasNormalModeAlgorithms()
276 || algorithmNames.contains(IpSecAlgorithm.AUTH_HMAC_SHA384) in hasNormalModeAlgorithms()
[all …]