Home
last modified time | relevance | path

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

/frameworks/base/services/core/java/com/android/server/connectivity/
DVpnIkev2Utils.java113 static ChildSessionParams buildChildSessionParams(List<String> allowedAlgorithms) { in buildChildSessionParams() argument
117 for (final ChildSaProposal childProposal : getChildSaProposals(allowedAlgorithms)) { in buildChildSessionParams()
198 private static List<ChildSaProposal> getChildSaProposals(List<String> allowedAlgorithms) { in getChildSaProposals() argument
202 if (Ikev2VpnProfile.hasNormalModeAlgorithms(allowedAlgorithms)) { in getChildSaProposals()
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()
233 if (Ikev2VpnProfile.hasAeadAlgorithms(allowedAlgorithms)) { in getChildSaProposals()
/frameworks/base/tests/net/java/android/net/
DIkev2VpnProfileTest.java171 List<String> allowedAlgorithms = Arrays.asList(IpSecAlgorithm.AUTH_CRYPT_AES_GCM); in testBuildWithAllowedAlgorithmsAead() local
172 builder.setAllowedAlgorithms(allowedAlgorithms); in testBuildWithAllowedAlgorithmsAead()
175 assertEquals(allowedAlgorithms, profile.getAllowedAlgorithms()); in testBuildWithAllowedAlgorithmsAead()
183 List<String> allowedAlgorithms = in testBuildWithAllowedAlgorithmsNormal() local
185 builder.setAllowedAlgorithms(allowedAlgorithms); in testBuildWithAllowedAlgorithmsNormal()
188 assertEquals(allowedAlgorithms, profile.getAllowedAlgorithms()); in testBuildWithAllowedAlgorithmsNormal()
205 List<String> allowedAlgorithms = new ArrayList<>(); in testSetAllowedAlgorithmsInvalidList() local
223 List<String> allowedAlgorithms = new ArrayList<>(); in testSetAllowedAlgorithmsInsecureAlgorithm() local
/frameworks/base/core/java/com/android/internal/net/
DVpnProfile.java201 public void setAllowedAlgorithms(List<String> allowedAlgorithms) { in setAllowedAlgorithms() argument
202 validateAllowedAlgorithms(allowedAlgorithms); in setAllowedAlgorithms()
203 mAllowedAlgorithms = allowedAlgorithms; in setAllowedAlgorithms()
430 public static void validateAllowedAlgorithms(List<String> allowedAlgorithms) { in validateAllowedAlgorithms() argument
431 for (final String alg : allowedAlgorithms) { in validateAllowedAlgorithms()
/frameworks/base/core/java/android/net/
DIkev2VpnProfile.java119 @NonNull List<String> allowedAlgorithms, in Ikev2VpnProfile() argument
128 checkNotNull(allowedAlgorithms, MISSING_PARAM_MSG_TMPL, "Allowed Algorithms"); in Ikev2VpnProfile()
142 mAllowedAlgorithms = Collections.unmodifiableList(new ArrayList<>(allowedAlgorithms)); in Ikev2VpnProfile()