From 798a36db104ebd4e526ce4034dc9410723dac343 Mon Sep 17 00:00:00 2001 From: Cody Kesting Date: Tue, 15 Oct 2019 14:13:30 -0700 Subject: Implement AT_BIDDING for EAP-AKA'. EAP-AKA' defines AT_BIDDING in RFC 5448#4 for use by EAP-AKA to prevent bidding down attacks. This attribute is defined in EapAkaAttributeFactory as it will be received in the EAP-AKA protocol (not during EAP-AKA'). Bug: 142663198 Test: added AtBiddingTest. Test: atest FrameworksIkeTests Change-Id: Ib9f2befab1c4338f30b0dfa28905be32a703084e --- .../eap/message/simaka/attributes/EapTestAttributeDefinitions.java | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'tests/iketests/src/java/com/android/ike/eap/message/simaka/attributes/EapTestAttributeDefinitions.java') diff --git a/tests/iketests/src/java/com/android/ike/eap/message/simaka/attributes/EapTestAttributeDefinitions.java b/tests/iketests/src/java/com/android/ike/eap/message/simaka/attributes/EapTestAttributeDefinitions.java index b9007131..01a7da1d 100644 --- a/tests/iketests/src/java/com/android/ike/eap/message/simaka/attributes/EapTestAttributeDefinitions.java +++ b/tests/iketests/src/java/com/android/ike/eap/message/simaka/attributes/EapTestAttributeDefinitions.java @@ -73,6 +73,9 @@ public class EapTestAttributeDefinitions { public static final String AUTS = "112233445566778899AABBCCDDEE"; public static final byte[] AUTS_BYTES = hexStringToByteArray(AUTS); public static final byte[] AT_AUTS = hexStringToByteArray("0404" + AUTS); + public static final byte[] AT_BIDDING_SUPPORTS_AKA_PRIME = hexStringToByteArray("88018000"); + public static final byte[] AT_BIDDING_DOES_NOT_SUPPORT_AKA_PRIME = + hexStringToByteArray("88010000"); // Network Name = "android.net" public static final String NETWORK_NAME_HEX = "616E64726F69642E6E6574"; @@ -113,4 +116,5 @@ public class EapTestAttributeDefinitions { hexStringToByteArray("0306008800112233445566778899AABBCCDDEEFF11000000"); public static final byte[] AT_AUTS_INVALID_LENGTH = hexStringToByteArray("03010000"); public static final byte[] AT_KDF_INVALID_LENGTH = hexStringToByteArray("18020001"); + public static final byte[] AT_BIDDING_INVALID_LENGTH = hexStringToByteArray("88020000"); } -- cgit v1.2.3