sm.h (6c39055a9f52ec0aebce92afc92fd87779a30e43) sm.h (4b8c611fad8a61a6dc6beab3a7a10f746bfd7c41)
1/*
2 * Copyright (C) 2014 BlueKitchen GmbH
3 *
4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions
6 * are met:
7 *
8 * 1. Redistributions of source code must retain the above copyright

--- 277 unchanged lines hidden (view full) ---

286 * @note Using the same key for more than one device is not recommended.
287 * @param qx 32 bytes
288 * @param qy 32 bytes
289 * @param d 32 bytes
290 */
291void sm_use_fixed_ec_keypair(uint8_t * qx, uint8_t * qy, uint8_t * d);
292
293/**
1/*
2 * Copyright (C) 2014 BlueKitchen GmbH
3 *
4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions
6 * are met:
7 *
8 * 1. Redistributions of source code must retain the above copyright

--- 277 unchanged lines hidden (view full) ---

286 * @note Using the same key for more than one device is not recommended.
287 * @param qx 32 bytes
288 * @param qy 32 bytes
289 * @param d 32 bytes
290 */
291void sm_use_fixed_ec_keypair(uint8_t * qx, uint8_t * qy, uint8_t * d);
292
293/**
294 * @brief Set passkey used with LE Legacy Pairing when we generate and show it instead of random number
294 * @brief Use fixec passkey for Legacy and SC instead of generating a random number
295 * @note Can be used to improve security over Just Works if no keyboard or displary are present and
296 * individual random passkey can be printed on the device during production
297 * @param passkey
298 */
295 * @note Can be used to improve security over Just Works if no keyboard or displary are present and
296 * individual random passkey can be printed on the device during production
297 * @param passkey
298 */
299void sm_use_fixed_legacy_pairing_passkey_in_display_role(uint32_t passkey);
299void sm_use_fixed_passkey_in_display_role(uint32_t passkey);
300
301/**
302 * @brief Allow connection re-encryption in Peripheral (Responder) role for LE Legacy Pairing
303 * without entry for Central device stored in LE Device DB
304 * @note BTstack in Peripheral Role (Responder) supports LE Legacy Pairing without a persistent LE Device DB as
305 * the LTK is reconstructed from a local secret IRK and EDIV + Random stored on Central (Initiator) device
306 * On the downside, it's not really possible to delete a pairing if this is enabled.
307 * @param allow encryption using reconstructed LTK without stored entry (Default: 1)

--- 15 unchanged lines hidden ---
300
301/**
302 * @brief Allow connection re-encryption in Peripheral (Responder) role for LE Legacy Pairing
303 * without entry for Central device stored in LE Device DB
304 * @note BTstack in Peripheral Role (Responder) supports LE Legacy Pairing without a persistent LE Device DB as
305 * the LTK is reconstructed from a local secret IRK and EDIV + Random stored on Central (Initiator) device
306 * On the downside, it's not really possible to delete a pairing if this is enabled.
307 * @param allow encryption using reconstructed LTK without stored entry (Default: 1)

--- 15 unchanged lines hidden ---