Struct GbaKey
#[repr(C)]pub struct GbaKey {
pub result: ErrorCode,
pub indication_token: u32,
pub ks_naf_valid: u8,
pub ks_naf: [u8; 32],
pub encrypted_ks_naf_len: u32,
pub encrypted_ks_naf: [u8; 1024],
pub btid_len: u32,
pub btid: [c_char; 255],
pub lifetime_len: u32,
pub lifetime: [c_char; 255],
pub impi_len: u32,
pub impi: [c_char; 255],
}Fields§
§result: ErrorCodeWhen the key is received from indication, it indicates whether the request is successful.
indication_token: u32When the key is received from indication, it indicates the token of the original request.
ks_naf_valid: u8Whether ks_naf is valid.
ks_naf: [u8; 32]Key shared between the NAF and the UE. Derivation of the key is specified in 3GPP TS 33.220.
encrypted_ks_naf_len: u32Number of elements in encrypted_ks_naf, 0 if invalid.
encrypted_ks_naf: [u8; 1024]Encrypted value of Ks(_ext)_NAF, as specified in 3GPP TS 33.220.
btid_len: u32Number of elements in btid, 0 if invalid.
btid: [c_char; 255]ID that binds the subscriber identity to the keying material. For B-TID formatting, refer to 3GPP TS 33.220.
lifetime_len: u32Number of elements in lifetime, 0 if invalid.
lifetime: [c_char; 255]Lifetime of the BSF-generated key material. The lifetime is expressed in UTC format with the trailing character indicating the timezone. For time formatting, refer to ISO 8601.
impi_len: u32Number of elements in impi, 0 if invalid.
impi: [c_char; 255]Private user identity used for the GBA procedure.