summaryrefslogtreecommitdiff
path: root/host
diff options
context:
space:
mode:
authorDaisuke Nojiri <dnojiri@chromium.org>2020-08-12 15:46:30 -0700
committerCommit Bot <commit-bot@chromium.org>2020-08-19 02:09:02 +0000
commit053592bd3d5fcb79b8fa3a6f6193ffedfc041dba (patch)
tree6088a6910490013226292fdb570f0dcd992d8739 /host
parentfaf9cd3bbbc133487c272d81771b8bbf4d439915 (diff)
downloadvboot-053592bd3d5fcb79b8fa3a6f6193ffedfc041dba.tar.gz
inclusive: change usage of sanity
Google is working to change its source code to use more inclusive language. To that end, replace the term "sanity" with inclusive alternatives. BUG=b:163883397 BRANCH=None TEST=grep -ir sanity TEST=make runtests Signed-off-by: Daisuke Nojiri <dnojiri@chromium.org> Change-Id: I708a044d89050c442f14fb11a8ae5e98490d56af Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/vboot_reference/+/2353420 Reviewed-by: Julius Werner <jwerner@chromium.org>
Diffstat (limited to 'host')
-rw-r--r--host/lib/host_key2.c2
-rw-r--r--host/lib/include/host_key.h2
-rw-r--r--host/lib21/host_key.c2
-rw-r--r--host/lib21/include/host_common21.h2
4 files changed, 4 insertions, 4 deletions
diff --git a/host/lib/host_key2.c b/host/lib/host_key2.c
index 6984c67f..913c6dfa 100644
--- a/host/lib/host_key2.c
+++ b/host/lib/host_key2.c
@@ -315,7 +315,7 @@ vb2_error_t vb2_unpack_key_data(struct vb2_public_key *key,
key->arrsize = buf32[0];
- /* Sanity check key array size */
+ /* Validity check key array size */
if (key->arrsize * sizeof(uint32_t) != vb2_rsa_sig_size(key->sig_alg))
return VB2_ERROR_UNPACK_KEY_ARRAY_SIZE;
diff --git a/host/lib/include/host_key.h b/host/lib/include/host_key.h
index 9b594c62..c6fea5b4 100644
--- a/host/lib/include/host_key.h
+++ b/host/lib/include/host_key.h
@@ -113,7 +113,7 @@ vb2_error_t vb2_copy_packed_key(struct vb2_packed_key *dest,
struct vb2_packed_key *vb2_read_packed_key(const char *filename);
/**
- * Sanity-check a packed key structure.
+ * Validity-check a packed key structure.
*
* @param key Key to check
* @param size Size of key buffer in bytes
diff --git a/host/lib21/host_key.c b/host/lib21/host_key.c
index cfa99419..c880d451 100644
--- a/host/lib21/host_key.c
+++ b/host/lib21/host_key.c
@@ -399,7 +399,7 @@ vb2_error_t vb21_packed_key_read(struct vb21_packed_key **key_ptr,
if (vb2_read_file(filename, &buf, &size))
return VB2_ERROR_READ_PACKED_KEY_DATA;
- /* Sanity check: make sure key unpacks properly */
+ /* Validity check: make sure key unpacks properly */
if (vb21_unpack_key(&key, buf, size))
return VB2_ERROR_READ_PACKED_KEY;
diff --git a/host/lib21/include/host_common21.h b/host/lib21/include/host_common21.h
index fa8086b8..55b623d3 100644
--- a/host/lib21/include/host_common21.h
+++ b/host/lib21/include/host_common21.h
@@ -21,7 +21,7 @@ extern "C" {
* Return the description of an object starting with a vb21_struct_common
* header.
*
- * Does not sanity-check the buffer; merely returns the pointer.
+ * Does not validity-check the buffer; merely returns the pointer.
*
* @param buf Pointer to common object
* @return A pointer to description or an empty string if none.