diff options
author | Brian Gix <brian.gix@intel.com> | 2020-09-29 13:45:49 -0700 |
---|---|---|
committer | Brian Gix <brian.gix@gmail.com> | 2023-01-30 16:14:41 -0800 |
commit | 9923c09de57e558a8b85df12bed31b9be4d2ec9f (patch) | |
tree | 7cba79e252172f088d4ce2f50d4e51cbf4ca2938 /mesh/crypto.c | |
parent | c50ecca56654f3c1c4b3cc9f9402a64cca9164f8 (diff) | |
download | bluez-9923c09de57e558a8b85df12bed31b9be4d2ec9f.tar.gz |
mesh: Rename parameter list per crypto usage
The derived key generated by the "nkpk" salt and network master key is
used to create Private Beacons as of Mesh Profile Specification v1.1
Diffstat (limited to 'mesh/crypto.c')
-rw-r--r-- | mesh/crypto.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mesh/crypto.c b/mesh/crypto.c index 668d16877..3754cb012 100644 --- a/mesh/crypto.c +++ b/mesh/crypto.c @@ -251,9 +251,9 @@ bool mesh_crypto_nkbk(const uint8_t n[16], uint8_t beacon_key[16]) return crypto_128(n, "nkbk", beacon_key); } -bool mesh_crypto_nkpk(const uint8_t n[16], uint8_t proxy_key[16]) +bool mesh_crypto_nkpk(const uint8_t n[16], uint8_t private_key[16]) { - return crypto_128(n, "nkpk", proxy_key); + return crypto_128(n, "nkpk", private_key); } bool mesh_crypto_k3(const uint8_t n[16], uint8_t out64[8]) |