Lines Matching refs:osdp_pd
444 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,
520 void osdp_phy_state_reset(struct osdp_pd *pd);
521 int osdp_phy_packet_get_data_offset(struct osdp_pd *p, const uint8_t *buf);
522 uint8_t *osdp_phy_packet_get_smb(struct osdp_pd *p, const uint8_t *buf);
544 void osdp_compute_scbk(struct osdp_pd *pd, uint8_t *master_key, uint8_t *scbk);
545 void osdp_compute_session_keys(struct osdp_pd *pd);
546 void osdp_compute_cp_cryptogram(struct osdp_pd *pd);
547 int osdp_verify_cp_cryptogram(struct osdp_pd *pd);
548 void osdp_compute_pd_cryptogram(struct osdp_pd *pd);
549 int osdp_verify_pd_cryptogram(struct osdp_pd *pd);
550 void osdp_compute_rmac_i(struct osdp_pd *pd);
551 int osdp_decrypt_data(struct osdp_pd *pd, int is_cmd, uint8_t *data, int len);
552 int osdp_encrypt_data(struct osdp_pd *pd, int is_cmd, uint8_t *data, int len);
553 int osdp_compute_mac(struct osdp_pd *pd, int is_cmd,
555 void osdp_sc_setup(struct osdp_pd *pd);
562 static inline struct osdp *pd_to_osdp(struct osdp_pd *pd) in pd_to_osdp()
567 static inline struct osdp_pd *osdp_to_pd(struct osdp *ctx, int pd_idx) in osdp_to_pd()
572 static inline bool is_pd_mode(struct osdp_pd *pd) in is_pd_mode()
577 static inline bool is_cp_mode(struct osdp_pd *pd) in is_cp_mode()
582 static inline bool sc_is_capable(struct osdp_pd *pd) in sc_is_capable()
587 static inline bool sc_is_active(struct osdp_pd *pd) in sc_is_active()
592 static inline void sc_activate(struct osdp_pd *pd) in sc_activate()
597 static inline void sc_deactivate(struct osdp_pd *pd) in sc_deactivate()