class
Matter::Session::Pase::PaseCommissioner
- Matter::Session::Pase::PaseCommissioner
- Reference
- Object
Overview
PASE session establishment (initiator side - commissioner)
Defined in:
matter/session/pase/pase.crConstructors
Instance Method Summary
- #context : Bytes
- #context=(context : Bytes)
-
#create_pbkdf_param_request : Bytes
Step 1: Request PBKDF parameters from responder
- #crypto : Crypto::CryptoBase
- #crypto=(crypto : Crypto::CryptoBase)
-
#derive_session_keys : NamedTuple(encryption: Bytes, decryption: Bytes)
Derive session keys after successful PASE
-
#generate_pake1 : Bytes
Step 3: Generate pA (our public value)
- #pbkdf_params : PbkdfParameters | Nil
- #pbkdf_params=(pbkdf_params : PbkdfParameters | Nil)
- #pin_code : UInt32
- #pin_code=(pin_code : UInt32)
-
#process_pake2(p_b : Bytes) : Bytes
Step 4: Process pB (responder's public value) and generate verifier
-
#process_pake3(confirmation : Bytes) : Bool
Step 5: Verify responder's confirmation
-
#process_pbkdf_param_response(response : Bytes, params : PbkdfParameters)
Step 2: Process PBKDF parameters from responder
- #spake : Crypto::Spake2p | Nil
- #spake=(spake : Crypto::Spake2p | Nil)
Constructor Detail
def self.new(pin_code : UInt32, crypto : Crypto::CryptoBase = Crypto::StandardCrypto.new, context : Bytes = "CHIP PAKE V1 Commissioning".to_slice)
#
Instance Method Detail
def derive_session_keys : NamedTuple(encryption: Bytes, decryption: Bytes)
#
Derive session keys after successful PASE
def process_pake2(p_b : Bytes) : Bytes
#
Step 4: Process pB (responder's public value) and generate verifier
def process_pbkdf_param_response(response : Bytes, params : PbkdfParameters)
#
Step 2: Process PBKDF parameters from responder