summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorHaoran.Wang <elven.wang@nxp.com>2018-08-24 10:50:14 +0800
committerfaqiang.zhu <faqiang.zhu@nxp.com>2018-11-12 09:18:36 +0800
commit41ee143a2d6979ff4960631b0ba0be4b8f63922f (patch)
tree233c259d94d16ca46e16db9c111500c9653df6b5 /drivers
parent7dc253b8ef36270ae58607ab61d7ab61d3c719b8 (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>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/usb/gadget/f_fastboot.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/usb/gadget/f_fastboot.c b/drivers/usb/gadget/f_fastboot.c
index df5e458ca3..eefd54b6ac 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)) {