summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVadim Sukhomlinov <sukhomlinov@chromium.org>2021-10-14 03:33:58 +0000
committerCommit Bot <commit-bot@chromium.org>2021-10-14 22:43:36 +0000
commitae34db53d8ba83f863dcab808c2569491ceec848 (patch)
tree1df9fcb18fde264cb417f73a8c92dc385610135d
parent5c95b1abffdb48495ea0f0309e3fa66e88074be7 (diff)
downloadchrome-ec-ae34db53d8ba83f863dcab808c2569491ceec848.tar.gz
cr50: update comments authTimeSecret -> authTimeSecretHash
BUG=None TEST=make buildall -j Change-Id: Ief14c16e37842794a60c7d10e068db94083aa359 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3221960 Reviewed-by: Vadim Sukhomlinov <sukhomlinov@chromium.org> Reviewed-by: Howard Yang <hcyang@google.com> Reviewed-by: Andrey Pronin <apronin@chromium.org> Tested-by: Vadim Sukhomlinov <sukhomlinov@chromium.org> Auto-Submit: Vadim Sukhomlinov <sukhomlinov@chromium.org> Commit-Queue: Andrey Pronin <apronin@chromium.org>
-rw-r--r--include/u2f.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/u2f.h b/include/u2f.h
index cb422db3bf..a9d42db03a 100644
--- a/include/u2f.h
+++ b/include/u2f.h
@@ -142,7 +142,8 @@ struct u2f_key_handle_v1 {
uint8_t authorization_salt[U2F_AUTHORIZATION_SALT_SIZE];
/**
* HMAC(u2f_hmac_key,
- * auth_salt || version || origin_seed || kh_hmac || authTimeSecret)
+ * auth_salt || version || origin_seed
+ * || kh_hmac || authTimeSecretHash)
*/
uint8_t authorization_hmac[SHA256_DIGEST_SIZE];
};
@@ -156,7 +157,7 @@ struct u2f_key_handle_v2 {
/**
* HMAC(u2f_hmac_key,
* auth_salt || version || origin_seed || origin ||
- * user || authTimeSecret)
+ * user || authTimeSecretHash)
*/
uint8_t authorization_hmac[SHA256_DIGEST_SIZE];
};