Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
VideoLAN
libaacs
Commits
8e8b84c7
Unverified
Commit
8e8b84c7
authored
Oct 25, 2021
by
Dimitri Papadopoulos
Browse files
Typos found by codespell
parent
0dfda858
Pipeline
#152082
passed with stage
in 1 minute and 18 seconds
Changes
8
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
KEYDB.cfg
View file @
8e8b84c7
...
...
@@ -22,7 +22,7 @@
; ignored.
;
; Whitespace in this file is referred to as a single space (' ') or
; a tab ('\t'). Whitespace can be present/om
m
itted 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
View file @
8e8b84c7
...
...
@@ -18,7 +18,7 @@ m4_define([lt_current], 7)
m4_define([lt_age], 7)
m4_define([lt_revision], 1)
dnl initilization
dnl initi
a
lization
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
View file @
8e8b84c7
...
...
@@ -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 optionall
i
y 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
View file @
8e8b84c7
...
...
@@ -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
View file @
8e8b84c7
...
...
@@ -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 fro
n
in_buf */
key
[
a
]
^=
out_buf
[
a
];
/* here out_buf is plain data fro
m
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 compa
ti
bility */
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 compa
ti
bility */
AACS
*
aacs_open2
(
const
char
*
path
,
const
char
*
configfile_path
,
int
*
error_code
)
{
AACS
*
aacs
=
aacs_init
();
...
...
src/libaacs/crypto.c
View file @
8e8b84c7
...
...
@@ -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. S
u
pports 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 co
n
vert
* the hash into an MPI.
*/
memcpy
(
&
block
[
0
],
nonce
,
20
);
...
...
src/libaacs/mkb.h
View file @
8e8b84c7
...
...
@@ -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 | ent
i
res in signature block 1 (N1)
* 8-11 | entr
i
es 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 | ent
i
res in signature block 1 (N1)
* 8-11 | entr
i
es in signature block 1 (N1)
* 12-19 | drive revokation list entry 0
* .
* .
...
...
src/libaacs/unit_key.c
View file @
8e8b84c7
...
...
@@ -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 sup
p
orted */
if
(
uk
->
num_bdmv_dir
<
1
)
{
BD_DEBUG
(
DBG_UK
|
DBG_CRIT
,
"No BDMV directories
\n
"
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment