commit | e5790c2834fa64e57990218986bfde6eefcffdee | [log] [tgz] |
---|---|---|
author | Will Angley <willangley@google.com> | Wed Jan 11 15:13:18 2017 -0500 |
committer | Will Angley <willangley@google.com> | Wed Jan 11 15:13:18 2017 -0500 |
tree | bc70bf47e3bbc043dbb2db9708040731c6e16053 | |
parent | 46602fcd6e08ec2fdd2c0e78b8d5eb0d23c045cb [diff] |
Make `wifi setclient` fast again. PyCrypto's PBKDF2 implementation does a lot of work in Python. This is OK on a powerful workstation, but not OK (it takes 8 seconds!) on a TV box. Use OpenSSL's PBKDF2 implementation instead, via ctypes. This takes 0.25 seconds in a microbenchmark, of which ~half is the time to load the Python interpreter. Change-Id: I7ae4805f4aa9971d59c495037aa8b7a3e61352d3