Home
last modified time | relevance | path

Searched refs:osdp_pd (Results 1 – 8 of 8) sorted by relevance

/Zephyr-Core-3.7.0/subsys/mgmt/osdp/src/
Dosdp_common.h444 struct osdp_pd { struct
494 struct osdp_pd *current_pd; /* current operational pd's pointer */ argument
495 struct osdp_pd *pd;
505 static inline void cp_keyset_complete(struct osdp_pd *pd) { } in cp_keyset_complete()
507 void cp_keyset_complete(struct osdp_pd *pd);
510 void osdp_keyset_complete(struct osdp_pd *pd);
513 int osdp_phy_packet_init(struct osdp_pd *p, uint8_t *buf, int max_len);
514 int osdp_phy_packet_finalize(struct osdp_pd *p, uint8_t *buf,
516 int osdp_phy_check_packet(struct osdp_pd *pd, uint8_t *buf, int len,
518 int osdp_phy_decode_packet(struct osdp_pd *p, uint8_t *buf, int len,
[all …]
Dosdp_sc.c35 void osdp_compute_scbk(struct osdp_pd *pd, uint8_t *master_key, uint8_t *scbk) in osdp_compute_scbk()
46 void osdp_compute_session_keys(struct osdp_pd *pd) in osdp_compute_session_keys()
84 void osdp_compute_cp_cryptogram(struct osdp_pd *pd) in osdp_compute_cp_cryptogram()
110 int osdp_verify_cp_cryptogram(struct osdp_pd *pd) in osdp_verify_cp_cryptogram()
125 void osdp_compute_pd_cryptogram(struct osdp_pd *pd) in osdp_compute_pd_cryptogram()
133 int osdp_verify_pd_cryptogram(struct osdp_pd *pd) in osdp_verify_pd_cryptogram()
148 void osdp_compute_rmac_i(struct osdp_pd *pd) in osdp_compute_rmac_i()
156 int osdp_decrypt_data(struct osdp_pd *pd, int is_cmd, uint8_t *data, int length) in osdp_decrypt_data()
184 int osdp_encrypt_data(struct osdp_pd *pd, int is_cmd, uint8_t *data, int length) in osdp_encrypt_data()
204 int osdp_compute_mac(struct osdp_pd *pd, int is_cmd, in osdp_compute_mac()
[all …]
Dosdp_phy.c28 static inline bool packet_has_mark(struct osdp_pd *pd) in packet_has_mark()
33 static inline void packet_set_mark(struct osdp_pd *pd, bool mark) in packet_set_mark()
55 static int osdp_phy_get_seq_number(struct osdp_pd *pd, int do_inc) in osdp_phy_get_seq_number()
67 int osdp_phy_packet_get_data_offset(struct osdp_pd *pd, const uint8_t *buf) in osdp_phy_packet_get_data_offset()
84 uint8_t *osdp_phy_packet_get_smb(struct osdp_pd *pd, const uint8_t *buf) in osdp_phy_packet_get_smb()
108 int osdp_phy_packet_init(struct osdp_pd *pd, uint8_t *buf, int max_len) in osdp_phy_packet_init()
158 int osdp_phy_packet_finalize(struct osdp_pd *pd, uint8_t *buf, in osdp_phy_packet_finalize()
258 int osdp_phy_check_packet(struct osdp_pd *pd, uint8_t *buf, int len, in osdp_phy_check_packet()
390 int osdp_phy_decode_packet(struct osdp_pd *pd, uint8_t *buf, int len, in osdp_phy_decode_packet()
524 void osdp_phy_state_reset(struct osdp_pd *pd) in osdp_phy_state_reset()
Dosdp_pd.c117 static struct osdp_event *pd_event_alloc(struct osdp_pd *pd) in pd_event_alloc()
128 static void pd_event_free(struct osdp_pd *pd, struct osdp_event *event) in pd_event_free()
133 static void pd_event_enqueue(struct osdp_pd *pd, struct osdp_event *event) in pd_event_enqueue()
138 static int pd_event_dequeue(struct osdp_pd *pd, struct osdp_event **event) in pd_event_dequeue()
151 static int pd_translate_event(struct osdp_pd *pd, struct osdp_event *event) in pd_translate_event()
182 static bool do_command_callback(struct osdp_pd *pd, struct osdp_cmd *cmd) in do_command_callback()
195 static int pd_cmd_cap_ok(struct osdp_pd *pd, struct osdp_cmd *cmd) in pd_cmd_cap_ok()
258 static int pd_decode_command(struct osdp_pd *pd, uint8_t *buf, int len) in pd_decode_command()
573 static int pd_build_reply(struct osdp_pd *pd, uint8_t *buf, int max_len) in pd_build_reply()
807 static int pd_send_reply(struct osdp_pd *pd) in pd_send_reply()
[all …]
Dosdp_cp.c62 static struct osdp_cmd *cp_cmd_alloc(struct osdp_pd *pd) in cp_cmd_alloc()
73 static void cp_cmd_free(struct osdp_pd *pd, struct osdp_cmd *cmd) in cp_cmd_free()
78 static void cp_cmd_enqueue(struct osdp_pd *pd, struct osdp_cmd *cmd) in cp_cmd_enqueue()
83 static int cp_cmd_dequeue(struct osdp_pd *pd, struct osdp_cmd **cmd) in cp_cmd_dequeue()
126 static int cp_build_command(struct osdp_pd *pd, uint8_t *buf, int max_len) in cp_build_command()
345 static int cp_decode_response(struct osdp_pd *pd, uint8_t *buf, int len) in cp_decode_response()
563 static int cp_build_packet(struct osdp_pd *pd) in cp_build_packet()
591 static int cp_send_command(struct osdp_pd *pd) in cp_send_command()
617 static int cp_process_reply(struct osdp_pd *pd) in cp_process_reply()
671 static void cp_flush_command_queue(struct osdp_pd *pd) in cp_flush_command_queue()
[all …]
Dosdp_common.c44 void osdp_keyset_complete(struct osdp_pd *pd) in osdp_keyset_complete()
154 struct osdp_pd *pd; in osdp_get_sc_status_mask()
Dosdp.c44 static struct osdp_pd osdp_pd_ctx[CONFIG_OSDP_NUM_CONNECTED_PD];
133 struct osdp_pd *pd; in osdp_build_ctx()
/Zephyr-Core-3.7.0/subsys/mgmt/osdp/
DCMakeLists.txt10 zephyr_library_sources_ifdef(CONFIG_OSDP_MODE_PD src/osdp_pd.c)