You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by cc...@apache.org on 2016/06/15 02:27:37 UTC

[15/50] [abbrv] incubator-mynewt-core git commit: BLE Host - SM SC: Log public / private keys.

BLE Host - SM SC: Log public / private keys.


Project: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/commit/4fe1ee7a
Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/tree/4fe1ee7a
Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/diff/4fe1ee7a

Branch: refs/heads/develop
Commit: 4fe1ee7aded29053554b28b480d57971065c3a5c
Parents: ef29171
Author: Christopher Collins <cc...@apache.org>
Authored: Wed Jun 8 15:06:07 2016 +0800
Committer: Christopher Collins <cc...@apache.org>
Committed: Tue Jun 14 19:23:35 2016 -0700

----------------------------------------------------------------------
 net/nimble/host/src/ble_sm_alg.c | 7 +++++++
 1 file changed, 7 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/4fe1ee7a/net/nimble/host/src/ble_sm_alg.c
----------------------------------------------------------------------
diff --git a/net/nimble/host/src/ble_sm_alg.c b/net/nimble/host/src/ble_sm_alg.c
index 1885d09..89d735a 100644
--- a/net/nimble/host/src/ble_sm_alg.c
+++ b/net/nimble/host/src/ble_sm_alg.c
@@ -491,6 +491,13 @@ ble_sm_alg_gen_key_pair(void *pub, uint32_t *priv)
     memcpy(pub + 0, pkey.x, 32);
     memcpy(pub + 32, pkey.y, 32);
 
+    BLE_HS_LOG(DEBUG, "our pubkey=");
+    ble_hs_misc_log_flat_buf(pub, 64);
+    BLE_HS_LOG(DEBUG, "\n");
+    BLE_HS_LOG(DEBUG, "our privkey=");
+    ble_hs_misc_log_flat_buf(priv, 32);
+    BLE_HS_LOG(DEBUG, "\n");
+
     return 0;
 }