diff options
author | Daisuke Nojiri <dnojiri@chromium.org> | 2020-08-12 15:46:30 -0700 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-08-19 02:09:02 +0000 |
commit | 053592bd3d5fcb79b8fa3a6f6193ffedfc041dba (patch) | |
tree | 6088a6910490013226292fdb570f0dcd992d8739 /firmware/lib20 | |
parent | faf9cd3bbbc133487c272d81771b8bbf4d439915 (diff) | |
download | vboot-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 'firmware/lib20')
-rw-r--r-- | firmware/lib20/include/vb2_common.h | 4 | ||||
-rw-r--r-- | firmware/lib20/kernel.c | 2 | ||||
-rw-r--r-- | firmware/lib20/packed_key.c | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/firmware/lib20/include/vb2_common.h b/firmware/lib20/include/vb2_common.h index 20e0014d..53a077f3 100644 --- a/firmware/lib20/include/vb2_common.h +++ b/firmware/lib20/include/vb2_common.h @@ -48,7 +48,7 @@ vb2_error_t vb2_unpack_key(struct vb2_public_key *key, /** * Verify a keyblock using its hash. * - * Header fields are also checked for sanity. Does not verify key index or key + * Header fields are also checked for validity. Does not verify key index or key * block flags. Use this for self-signed keyblocks in developer mode. * * @param block Keyblock to verify @@ -62,7 +62,7 @@ vb2_error_t vb2_verify_keyblock_hash(const struct vb2_keyblock *block, const struct vb2_workbuf *wb); /** - * Check the sanity of a kernel preamble using a public key. + * Check the validity of a kernel preamble using a public key. * * The signature in the preamble is destroyed during the check. * diff --git a/firmware/lib20/kernel.c b/firmware/lib20/kernel.c index ed04c6f3..e1422a40 100644 --- a/firmware/lib20/kernel.c +++ b/firmware/lib20/kernel.c @@ -46,7 +46,7 @@ vb2_error_t vb2_verify_keyblock_hash(const struct vb2_keyblock *block, uint8_t *digest; uint32_t digest_size; - /* Sanity check keyblock before attempting hash check of data */ + /* Validity check keyblock before attempting hash check of data */ VB2_TRY(vb2_check_keyblock(block, size, sig)); VB2_DEBUG("Checking keyblock hash...\n"); diff --git a/firmware/lib20/packed_key.c b/firmware/lib20/packed_key.c index 6d8fdebe..e2e9b22b 100644 --- a/firmware/lib20/packed_key.c +++ b/firmware/lib20/packed_key.c @@ -46,7 +46,7 @@ vb2_error_t vb2_unpack_key_buffer(struct vb2_public_key *key, if (!vb2_aligned(buf32, sizeof(uint32_t))) return VB2_ERROR_UNPACK_KEY_ALIGN; - /* Sanity check key array size */ + /* Validity check key array size */ key->arrsize = buf32[0]; if (key->arrsize * sizeof(uint32_t) != vb2_rsa_sig_size(key->sig_alg)) return VB2_ERROR_UNPACK_KEY_ARRAY_SIZE; |