Lines Matching +full:bad +full:- +full:key +full:- +full:1

4  * SPDX-License-Identifier: Apache-2.0
23 #define ISSET_FLAG(p, f) (((p)->flags & (f)) == (f))
24 #define SET_FLAG(p, f) ((p)->flags |= (f))
25 #define CLEAR_FLAG(p, f) ((p)->flags &= ~(f))
32 #define GET_CURRENT_PD(p) ((p)->current_pd)
35 (p)->current_pd = osdp_to_pd(p, i); \
38 (uint32_t)((1 << ((ctx)->num_pd)) - 1)
39 #define AES_PAD_LEN(x) ((x + 16 - 1) & (~(16 - 1)))
40 #define NUM_PD(ctx) ((ctx)->num_pd)
105 #define SCS_11 0x11 /* CP -> PD -- CMD_CHLNG */
106 #define SCS_12 0x12 /* PD -> CP -- REPLY_CCRYPT */
107 #define SCS_13 0x13 /* CP -> PD -- CMD_SCRYPT */
108 #define SCS_14 0x14 /* PD -> CP -- REPLY_RMAC_I */
110 #define SCS_15 0x15 /* CP -> PD -- packets w MAC w/o ENC */
111 #define SCS_16 0x16 /* PD -> CP -- packets w MAC w/o ENC */
112 #define SCS_17 0x17 /* CP -> PD -- packets w MAC w ENC*/
113 #define SCS_18 0x18 /* PD -> CP -- packets w MAC w ENC*/
137 * @brief Message check character(s) error (bad cksum/crc)
210 OSDP_ERR_PKT_FMT = -1,
214 OSDP_ERR_PKT_WAIT = -2,
219 OSDP_ERR_PKT_SKIP = -3,
224 OSDP_ERR_PKT_CHECK = -4,
229 OSDP_ERR_PKT_BUSY = -5,
232 * this packet; pd->reply_id is set REPLY_NAK and the reason code is
235 OSDP_ERR_PKT_NACK = -6,
249 * switch using a two-wire electrical connection between the PD and the
288 * emulating character-based display terminals.
317 * @brief This capability indicates the maximum size multi-part message
372 * @param version 3-bytes IEEE assigned OUI
373 * @param model 1-byte Manufacturer's model number
374 * @param vendor_code 1-Byte Manufacturer's version number
375 * @param serial_number 4-byte serial number for the PD
376 * @param firmware_version 3-byte version (major, minor, build)
400 * @retval -ve on errors
411 * @retval -ve on errors
539 void osdp_encrypt(uint8_t *key, uint8_t *iv, uint8_t *data, int len);
540 void osdp_decrypt(uint8_t *key, uint8_t *iv, uint8_t *data, int len);
559 int osdp_setup(struct osdp *ctx, uint8_t *key);
564 return pd->osdp_ctx; in pd_to_osdp()
569 return ctx->pd + pd_idx; in osdp_to_pd()