Petri Hintukainen pushed to branch master at VideoLAN / libaacs
Commits:
8e8b84c7 by Dimitri Papadopoulos at 2021-10-25T21:47:13+02:00
Typos found by codespell
- - - - -
8 changed files:
- KEYDB.cfg
- configure.ac
- m4/libgcrypt.m4
- src/file/mmc_device_darwin.c
- src/libaacs/aacs.c
- src/libaacs/crypto.c
- src/libaacs/mkb.h
- src/libaacs/unit_key.c
Changes:
=====================================
KEYDB.cfg
=====================================
@@ -22,7 +22,7 @@
; ignored.
;
; Whitespace in this file is referred to as a single space (' ') or
-; a tab ('\t'). Whitespace can be present/ommitted except in the case of
+; a tab ('\t'). Whitespace can be present/omitted except in the case of
; keywords. Keywords must be delimited by at least one whitespace.
;
; Newlines may be escaped. To escape a newline, prepend a '\' character before
=====================================
configure.ac
=====================================
@@ -18,7 +18,7 @@ m4_define([lt_current], 7)
m4_define([lt_age], 7)
m4_define([lt_revision], 1)
-dnl initilization
+dnl initialization
AC_INIT([libaacs], aacs_version,
[http://www.videolan.org/developers/libaacs.html])
AC_CONFIG_AUX_DIR([build-aux])
AC_CONFIG_MACRO_DIR([m4])
=====================================
m4/libgcrypt.m4
=====================================
@@ -13,7 +13,7 @@ dnl implied warranty of MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.
dnl AM_PATH_LIBGCRYPT([MINIMUM-VERSION,
dnl [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND ]]])
dnl Test for libgcrypt and define LIBGCRYPT_CFLAGS and LIBGCRYPT_LIBS.
-dnl MINIMUN-VERSION is a string with the version number optionalliy prefixed
+dnl MINIMUN-VERSION is a string with the version number optionally prefixed
dnl with the API version to also check the API compatibility. Example:
dnl a MINIMUN-VERSION of 1:1.2.5 won't pass the test unless the installed
dnl version of libgcrypt is at least 1.2.5 *and* the API number is 1. Using
=====================================
src/file/mmc_device_darwin.c
=====================================
@@ -548,7 +548,7 @@ void device_close(MMCDEV **pp)
* a USB BD drive which sometimes can take really long to
* be in a mountable state again.
* For internal drives this is probably much faster
- * so the long timeout shouldnt do much harm for thse
+ * so the long timeout shouldn't do much harm for thse
* cases.
*/
dispatch_time_t timeout = dispatch_time(DISPATCH_TIME_NOW, 20 * 1E+9);
=====================================
src/libaacs/aacs.c
=====================================
@@ -1220,7 +1220,7 @@ static int _decrypt_unit(AACS *aacs, uint8_t *out_buf,
const uint8_t *in_buf, ui
}
for (a = 0; a < 16; a++) {
- key[a] ^= out_buf[a]; /* here out_buf is plain data fron in_buf */
+ key[a] ^= out_buf[a]; /* here out_buf is plain data from in_buf */
}
if (BD_UNLIKELY(in_buf != NULL)) {
@@ -1271,7 +1271,7 @@ const char *aacs_error_str(int err)
return str[err];
}
-/* aacs_open2() wrapper for backwards compability */
+/* aacs_open2() wrapper for backwards compatibility */
AACS *aacs_open(const char *path, const char *configfile_path)
{
int error_code;
@@ -1286,7 +1286,7 @@ AACS *aacs_open(const char *path, const char
*configfile_path)
return NULL;
}
-/* aacs_open_device() wrapper for backward compability */
+/* aacs_open_device() wrapper for backward compatibility */
AACS *aacs_open2(const char *path, const char *configfile_path, int
*error_code)
{
AACS *aacs = aacs_init();
=====================================
src/libaacs/crypto.c
=====================================
@@ -248,7 +248,7 @@ int crypto_aes_cmac_16(const unsigned char *data, const
unsigned char *aes_key,
int err;
/*
- * Simplified version of AES CMAC. Spports only 16-byte input data.
+ * Simplified version of AES CMAC. Supports only 16-byte input data.
*/
/* generate CMAC keys */
@@ -568,7 +568,7 @@ int crypto_aacs_sign(const uint8_t *cert, const uint8_t
*priv_key, uint8_t *sign
GCRY_VERIFY("_aacs_sexp_key",
_aacs_sexp_key(&sexp_key, cert + 12, cert + 32, priv_key,
_aacs1_curve(), 20));
- /* Calculate the sha1 hash from the nonce and host key point and covert
+ /* Calculate the sha1 hash from the nonce and host key point and convert
* the hash into an MPI.
*/
memcpy(&block[0], nonce, 20);
=====================================
src/libaacs/mkb.h
=====================================
@@ -77,7 +77,7 @@ BD_PRIVATE int mkb_drive_cert_is_revoked(MKB *mkb, const
uint8_t *cert_id);
* 0 | type = 0x21
* 1-3 | length
* 4-7 | total entries
- * 8-11 | entires in signature block 1 (N1)
+ * 8-11 | entries in signature block 1 (N1)
* 12-19 | host revokation list entry 0
* .
* .
@@ -93,7 +93,7 @@ BD_PRIVATE int mkb_drive_cert_is_revoked(MKB *mkb, const
uint8_t *cert_id);
* 0 | type = 0x20
* 1-3 | length
* 4-7 | total entries
- * 8-11 | entires in signature block 1 (N1)
+ * 8-11 | entries in signature block 1 (N1)
* 12-19 | drive revokation list entry 0
* .
* .
=====================================
src/libaacs/unit_key.c
=====================================
@@ -66,7 +66,7 @@ static int _parse_header(AACS_UK *uk, const uint8_t *p,
size_t size)
uk->num_bdmv_dir = p[17];
uk->use_skb_mkb = p[18] >> 7;
- /* check if suported */
+ /* check if supported */
if (uk->num_bdmv_dir < 1) {
BD_DEBUG(DBG_UK | DBG_CRIT, "No BDMV directories\n");
View it on GitLab:
https://code.videolan.org/videolan/libaacs/-/commit/8e8b84c77ea0b59ca01fc1e07857e070c7796457
--
View it on GitLab:
https://code.videolan.org/videolan/libaacs/-/commit/8e8b84c77ea0b59ca01fc1e07857e070c7796457
You're receiving this email because of your account on code.videolan.org.
_______________________________________________
libaacs-devel mailing list
[email protected]
https://mailman.videolan.org/listinfo/libaacs-devel