Expand description
The Security Manager’s cryptographic toolbox (Core Vol 3, Part H, 2.2), on RustCrypto’s AES, CMAC and P-256.
Values are u128 (and 32-byte big-endian arrays for P-256 coordinates):
the specification writes them as numbers, most significant octet first,
and its test vectors read the same way here. SMP PDUs carry them least
significant octet first; le and from_le convert at that boundary.
Structs§
- EcdhKey
- An ephemeral P-256 key pair for one pairing.
Constants§
- DEBUG_
PUBLIC_ X - The private key the specification publishes for debugging. A peer that sends its public key is not secure, and pairing refuses it.
Functions§
- addr56
- An address as f5 and f6 take it: 56 bits, the type octet most significant.
- ah
- The random address hash function ah:
e(k, padding || r) mod 2^24. - c1
- LE legacy pairing’s confirm value function c1.
- e
- The security function e: AES-128 of
plaintextunderkey. - f4
- LE Secure Connections confirm value function f4.
- f5
- LE Secure Connections key generation function f5: (MacKey, LTK).
- f6
- LE Secure Connections check value function f6.
- from_le
- A value from its wire form.
- g2
- LE Secure Connections numeric comparison value function g2 (the six digits shown are this mod 1 000 000).
- h6
- Link key conversion function h6.
- h7
- Link key conversion function h7.
- le
- A value’s wire form, least significant octet first.
- new_rpa
- A fresh resolvable private address for
irk(bytes least significant first). - random_
bytes - Fills
buffrom the operating system’s random number generator. - random_
u128 - A random 128-bit value.
- resolves
- Whether a resolvable private address (bytes least significant first) was
made with
irk. - s1
- LE legacy pairing’s key generation function s1 (the STK).