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.java123 static ChildSessionParams buildChildSessionParams(List<String> allowedAlgorithms) { in buildChildSessionParams() argument
127 for (final ChildSaProposal childProposal : getChildSaProposals(allowedAlgorithms)) { in buildChildSessionParams()
220 private static List<ChildSaProposal> getChildSaProposals(List<String> allowedAlgorithms) { in getChildSaProposals() argument
227 if (Ikev2VpnProfile.hasNormalModeAlgorithms(allowedAlgorithms)) { in getChildSaProposals()
233 if (allowedAlgorithms.contains(IpSecAlgorithm.CRYPT_AES_CTR)) { in getChildSaProposals()
236 if (allowedAlgorithms.contains(IpSecAlgorithm.CRYPT_AES_CBC)) { in getChildSaProposals()
243 if (allowedAlgorithms.contains(IpSecAlgorithm.AUTH_HMAC_SHA512)) { in getChildSaProposals()
246 if (allowedAlgorithms.contains(IpSecAlgorithm.AUTH_HMAC_SHA384)) { in getChildSaProposals()
249 if (allowedAlgorithms.contains(IpSecAlgorithm.AUTH_HMAC_SHA256)) { in getChildSaProposals()
252 if (allowedAlgorithms.contains(IpSecAlgorithm.AUTH_AES_XCBC)) { in getChildSaProposals()
[all …]
/frameworks/base/services/tests/VpnTests/java/android/net/
DIkev2VpnProfileTest.java171 List<String> allowedAlgorithms = in testBuildWithAllowedAlgorithmsAead() local
175 builder.setAllowedAlgorithms(allowedAlgorithms); in testBuildWithAllowedAlgorithmsAead()
178 assertEquals(allowedAlgorithms, profile.getAllowedAlgorithms()); in testBuildWithAllowedAlgorithmsAead()
186 List<String> allowedAlgorithms = in testBuildWithAllowedAlgorithmsNormal() local
193 builder.setAllowedAlgorithms(allowedAlgorithms); in testBuildWithAllowedAlgorithmsNormal()
196 assertEquals(allowedAlgorithms, profile.getAllowedAlgorithms()); in testBuildWithAllowedAlgorithmsNormal()
/frameworks/base/core/java/android/net/
DIkev2VpnProfile.java155 @NonNull List<String> allowedAlgorithms, in Ikev2VpnProfile() argument
167 checkNotNull(allowedAlgorithms, MISSING_PARAM_MSG_TMPL, "Allowed Algorithms"); in Ikev2VpnProfile()
181 mAllowedAlgorithms = Collections.unmodifiableList(new ArrayList<>(allowedAlgorithms)); in Ikev2VpnProfile()
/frameworks/base/core/java/com/android/internal/net/
DVpnProfile.java241 public void setAllowedAlgorithms(List<String> allowedAlgorithms) { in setAllowedAlgorithms() argument
242 mAllowedAlgorithms = allowedAlgorithms; in setAllowedAlgorithms()