summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorEtan Cohen <etancohen@google.com>2017-06-06 17:03:41 -0700
committerEtan Cohen <etancohen@google.com>2017-06-07 12:09:05 -0700
commit46f30cdced5319c794b3f5d4afd3f6794264718d (patch)
tree32bd1ccb84aeff2e1c1616b1c2f792092b4f92ce /tests
parentf72e85a9bc4cb54b489e6c72dba122b7c8a22df5 (diff)
[AWARE] Add length checks on PMK/Passphrase
Bug: 62376042 Test: unit tests + integrated (sl4a) tests Change-Id: Idcf3aeae369c5dad28db79f208747d9da43561f0
Diffstat (limited to 'tests')
-rw-r--r--tests/wifitests/src/com/android/server/wifi/aware/WifiAwareDataPathStateManagerTest.java10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/wifitests/src/com/android/server/wifi/aware/WifiAwareDataPathStateManagerTest.java b/tests/wifitests/src/com/android/server/wifi/aware/WifiAwareDataPathStateManagerTest.java
index 425787897..ceed26661 100644
--- a/tests/wifitests/src/com/android/server/wifi/aware/WifiAwareDataPathStateManagerTest.java
+++ b/tests/wifitests/src/com/android/server/wifi/aware/WifiAwareDataPathStateManagerTest.java
@@ -260,7 +260,7 @@ public class WifiAwareDataPathStateManagerTest {
public void testDataPathPmkWithoutPermission() throws Exception {
final int clientId = 123;
final byte pubSubId = 55;
- final byte[] pmk = "some bytes".getBytes();
+ final byte[] pmk = "01234567890123456789012345678901".getBytes();
final PeerHandle peerHandle = new PeerHandle(1341234);
final byte[] peerDiscoveryMac = HexEncoding.decode("000102030405".toCharArray(), false);
@@ -498,7 +498,7 @@ public class WifiAwareDataPathStateManagerTest {
final int clientId = 123;
final byte pubSubId = 55;
final int ndpId = 2;
- final byte[] pmk = "some bytes".getBytes();
+ final byte[] pmk = "01234567890123456789012345678901".getBytes();
final PeerHandle peerHandle = new PeerHandle(1341234);
final byte[] peerDiscoveryMac = HexEncoding.decode("000102030405".toCharArray(), false);
@@ -553,7 +553,7 @@ public class WifiAwareDataPathStateManagerTest {
final int clientId = 123;
final byte pubSubId = 56;
final int ndpId = 2;
- final byte[] pmk = "some bytes".getBytes();
+ final byte[] pmk = "01234567890123456789012345678901".getBytes();
final PeerHandle peerHandle = new PeerHandle(1341234);
final byte[] peerDiscoveryMac = HexEncoding.decode("000102030405".toCharArray(), false);
@@ -611,7 +611,7 @@ public class WifiAwareDataPathStateManagerTest {
final byte pubSubId = 58;
final PeerHandle peerHandle = new PeerHandle(1341234);
final int ndpId = 2;
- final byte[] pmk = "some bytes".getBytes();
+ final byte[] pmk = "01234567890123456789012345678901".getBytes();
final String passphrase = "some passphrase";
final String peerToken = "let's go!";
final byte[] peerDiscoveryMac = HexEncoding.decode("000102030405".toCharArray(), false);
@@ -712,7 +712,7 @@ public class WifiAwareDataPathStateManagerTest {
final byte pubSubId = 60;
final PeerHandle peerHandle = new PeerHandle(1341234);
final int ndpId = 2;
- final byte[] pmk = "some bytes".getBytes();
+ final byte[] pmk = "01234567890123456789012345678901".getBytes();
final String passphrase = "some passphrase";
final String peerToken = "let's go!";
final byte[] peerDiscoveryMac = HexEncoding.decode("000102030405".toCharArray(), false);