1sequence! { procedure, context, 2 // ACL Connection Established 3 Upper Tester -> IUT: AuthenticationRequested { 4 connection_handle: context.peer_handle() 5 } 6 IUT -> Upper Tester: AuthenticationRequestedStatus { 7 num_hci_command_packets: 1, 8 status: ErrorCode::Success, 9 } 10 IUT -> Upper Tester: LinkKeyRequest { 11 bd_addr: context.peer_address(), 12 } 13 Upper Tester -> IUT: LinkKeyRequestNegativeReply { 14 bd_addr: context.peer_address(), 15 } 16 IUT -> Upper Tester: LinkKeyRequestNegativeReplyComplete { 17 num_hci_command_packets: 1, 18 status: ErrorCode::Success, 19 bd_addr: context.peer_address(), 20 } 21 IUT -> Upper Tester: IoCapabilityRequest { 22 bd_addr: context.peer_address(), 23 } 24 Upper Tester -> IUT: IoCapabilityRequestReply { 25 bd_addr: context.peer_address(), 26 io_capability: IoCapability::DisplayYesNo, 27 oob_present: OobDataPresent::NotPresent, 28 authentication_requirements: AuthenticationRequirements::NoBondingMitmProtection, 29 } 30 IUT -> Upper Tester: IoCapabilityRequestReplyComplete { 31 num_hci_command_packets: 1, 32 status: ErrorCode::Success, 33 bd_addr: context.peer_address(), 34 } 35 IUT -> Lower Tester: IoCapabilityReq { 36 transaction_id: 0, 37 io_capabilities: 0x01, 38 oob_authentication_data: 0x00, 39 authentication_requirement: 0x01, 40 } 41 Lower Tester -> IUT: IoCapabilityRes { 42 transaction_id: 0, 43 io_capabilities: 0x01, 44 oob_authentication_data: 0x00, 45 authentication_requirement: 0x01, 46 } 47 IUT -> Upper Tester: IoCapabilityResponse { 48 bd_addr: context.peer_address(), 49 io_capability: IoCapability::DisplayYesNo, 50 oob_data_present: OobDataPresent::NotPresent, 51 authentication_requirements: AuthenticationRequirements::NoBondingMitmProtection, 52 } 53 // Public Key Exchange 54 IUT -> Lower Tester: EncapsulatedHeader { 55 transaction_id: 0, 56 major_type: 1, 57 minor_type: 1, 58 payload_length: 48, 59 } 60 Lower Tester -> IUT: Accepted { 61 transaction_id: 0, 62 accepted_opcode: Opcode::EncapsulatedHeader, 63 } 64 repeat 3 times with (part in local_p192_public_key(&context)) { 65 IUT -> Lower Tester: EncapsulatedPayload { 66 transaction_id: 0, 67 data: part, 68 } 69 Lower Tester -> IUT: Accepted { 70 transaction_id: 0, 71 accepted_opcode: Opcode::EncapsulatedPayload, 72 } 73 } 74 Lower Tester -> IUT: EncapsulatedHeader { 75 transaction_id: 0, 76 major_type: 1, 77 minor_type: 1, 78 payload_length: 48, 79 } 80 IUT -> Lower Tester: Accepted { 81 transaction_id: 0, 82 accepted_opcode: Opcode::EncapsulatedHeader, 83 } 84 repeat 3 times with (part in peer_p192_public_key()) { 85 Lower Tester -> IUT: EncapsulatedPayload { 86 transaction_id: 0, 87 data: part, 88 } 89 IUT -> Lower Tester: Accepted { 90 transaction_id: 0, 91 accepted_opcode: Opcode::EncapsulatedPayload, 92 } 93 } 94 // Authentication Stage 1: Numeric Comparison Protocol 95 Lower Tester -> IUT: SimplePairingConfirm { 96 transaction_id: 0, 97 commitment_value: [0; 16], 98 } 99 IUT -> Lower Tester: SimplePairingNumber { 100 transaction_id: 0, 101 nonce: [0; 16], 102 } 103 Lower Tester -> IUT: Accepted { 104 transaction_id: 0, 105 accepted_opcode: Opcode::SimplePairingNumber, 106 } 107 Lower Tester -> IUT: SimplePairingNumber { 108 transaction_id: 0, 109 nonce: [0; 16], 110 } 111 IUT -> Upper Tester: UserConfirmationRequest { bd_addr: context.peer_address(), numeric_value: 0 } 112 IUT -> Lower Tester: Accepted { 113 transaction_id: 0, 114 accepted_opcode: Opcode::SimplePairingNumber, 115 } 116 Upper Tester -> IUT: UserConfirmationRequestReply { bd_addr: context.peer_address() } 117 IUT -> Upper Tester: UserConfirmationRequestReplyComplete { 118 num_hci_command_packets: 1, 119 status: ErrorCode::Success, 120 bd_addr: context.peer_address(), 121 } 122 // Authentication Stage 2 123 IUT -> Lower Tester: DhkeyCheck { 124 transaction_id: 0, 125 confirmation_value: [0; 16], 126 } 127 Lower Tester -> IUT: Accepted { transaction_id: 0, accepted_opcode: Opcode::DhkeyCheck } 128 Lower Tester -> IUT: DhkeyCheck { 129 transaction_id: 0, 130 confirmation_value: [0; 16], 131 } 132 IUT -> Lower Tester: Accepted { transaction_id: 0, accepted_opcode: Opcode::DhkeyCheck } 133 IUT -> Upper Tester: SimplePairingComplete { 134 status: ErrorCode::Success, 135 bd_addr: context.peer_address(), 136 } 137 // Link Key Calculation 138 IUT -> Lower Tester: AuRand { 139 transaction_id: 0, 140 random_number: [0; 16], 141 } 142 Lower Tester -> IUT: Sres { 143 transaction_id: 0, 144 authentication_rsp: [0; 4], 145 } 146 Lower Tester -> IUT: AuRand { 147 transaction_id: 0, 148 random_number: [0; 16], 149 } 150 IUT -> Lower Tester: Sres { 151 transaction_id: 0, 152 authentication_rsp: [0; 4], 153 } 154 IUT -> Upper Tester: LinkKeyNotification { 155 bd_addr: context.peer_address(), 156 key_type: KeyType::AuthenticatedP192, 157 link_key: [0; 16], 158 } 159 IUT -> Upper Tester: AuthenticationComplete { 160 status: ErrorCode::Success, 161 connection_handle: context.peer_handle(), 162 } 163} 164