When using the Pre-Shared Key authentication method for WPA or WPA2, the pre-shared key isused for which two functions?