diff options
author | Haoran.Wang <elven.wang@nxp.com> | 2018-08-24 10:50:14 +0800 |
---|---|---|
committer | faqiang.zhu <faqiang.zhu@nxp.com> | 2018-11-12 09:18:36 +0800 |
commit | 41ee143a2d6979ff4960631b0ba0be4b8f63922f (patch) | |
tree | 233c259d94d16ca46e16db9c111500c9653df6b5 | |
parent | 7dc253b8ef36270ae58607ab61d7ab61d3c719b8 (diff) |
[iot] Support at-attest-dh variable
Per security requirement, attestation of keymaster
supported by Trusty OS should support both P256
and curve25519 algorithm for Diffie-Hellman.
TEST: Works on AIY boards by below commands:
$fastboot getvar at-attest-dh
Change-Id: I3244f8d8b677222463b4e8fc75412e54dadeb23e
Signed-off-by: Haoran.Wang <elven.wang@nxp.com>
-rw-r--r-- | drivers/usb/gadget/f_fastboot.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/usb/gadget/f_fastboot.c b/drivers/usb/gadget/f_fastboot.c index df5e458ca33..eefd54b6ace 100644 --- a/drivers/usb/gadget/f_fastboot.c +++ b/drivers/usb/gadget/f_fastboot.c @@ -3036,6 +3036,9 @@ static int get_single_var(char *cmd, char *response) trusty_free(uuid); } } + else if(!strcmp_l1("at-attest-dh", cmd)) { + strncat(response, "1:P256,2:curve25519", chars_left); + } #endif #ifdef CONFIG_FASTBOOT_LOCK else if (!strcmp_l1("secure", cmd)) { |