GbaKey

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: ErrorCode

When the key is received from indication, it indicates whether the request is successful.

§indication_token: u32

When the key is received from indication, it indicates the token of the original request.

§ks_naf_valid: u8

Whether 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: u32

Number 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: u32

Number 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: u32

Number 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: u32

Number of elements in impi, 0 if invalid.

§impi: [c_char; 255]

Private user identity used for the GBA procedure.

Auto Trait Implementations§

§

impl Freeze for GbaKey

§

impl RefUnwindSafe for GbaKey

§

impl Send for GbaKey

§

impl Sync for GbaKey

§

impl Unpin for GbaKey

§

impl UnwindSafe for GbaKey

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.