blob: 32e84098d4e9f8627266e7eee9779e181cd43c06 [file] [log] [blame]
/*
* Copyright (C) 2022 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package android.hardware.wifi;
import android.hardware.wifi.NanCipherSuiteType;
import android.hardware.wifi.NanPairingAkm;
/**
* The security sssociation info after Aware Pairing setup.
*/
@VintfStability
parcelable NpkSecurityAssociation {
/**
* The Aware pairing identity from the peer
*/
byte[16] peerNanIdentityKey;
/**
* The Aware pairing identity for local device
*/
byte[16] localNanIdentityKey;
/**
* The PMK is used in this security association
*/
byte[32] npk;
/**
* The AKM is used for key exchange in this security sssociation
*/
NanPairingAkm akm;
/**
* Cipher type for pairing. Need to one of the |NanCipherSuiteType.PUBLIC_KEY_PASN_128_MASK| or
* |NanCipherSuiteType.PUBLIC_KEY_PASN_256_MASK|
*/
NanCipherSuiteType cipherType;
}