Lines Matching refs:psk
193 def __init__(self, psk='', wpa_mode=MODE_DEFAULT, wpa_ciphers=[],
199 @param psk string a passphrase (64 hex characters or an ASCII phrase up
215 super(WPAConfig, self).__init__(security='psk')
216 self.psk = psk
224 if len(psk) > 64:
228 if len(psk) == 64:
229 for c in psk:
231 raise error.TestFail('Invalid PMK: %r' % psk)
249 'wpa_key_mgmt': 'WPA-PSK'}
250 if len(self.psk) == 64:
251 ret['wpa_psk'] = self.psk
253 ret['wpa_passphrase'] = self.psk
272 return {self.SERVICE_PROPERTY_PASSPHRASE: self.psk}
283 properties.update({'psk': '\\"%s\\"' % self.psk,
284 'key_mgmt': 'WPA-PSK',