Skip to content
GitLab
Explore
Sign in
Register
Commits on Source (2)
biss: missing bissca prefix
· b6d9ffeb
Rafaël Carré
authored
Jan 15, 2019
b6d9ffeb
Merge branch 'funman-biss'
· b3b6b53e
Christophe Massiot
authored
Jan 15, 2019
b3b6b53e
Hide whitespace changes
Inline
Side-by-side
ebu/biss.h
View file @
b3b6b53e
...
...
@@ -89,7 +89,7 @@ static inline uint8_t bissca_emm_get_last_table_id(const uint8_t *p_emm)
static
inline
void
bissca_emm_set_emm_cipher_type
(
uint8_t
*
p_emm
,
uint8_t
bissca_emm_cipher_type
)
{
p_emm
[
BISSCA_EMM_HEADER_SIZE
+
3
]
&=
0x0f
;
p_emm
[
BISSCA_EMM_HEADER_SIZE
+
3
]
|=
(
emm_cipher_type
<<
5
);
p_emm
[
BISSCA_EMM_HEADER_SIZE
+
3
]
|=
(
bissca_
emm_cipher_type
<<
5
);
}
static
inline
uint8_t
bissca_emm_get_emm_cipher_type
(
const
uint8_t
*
p_emm
)
...
...
@@ -195,7 +195,7 @@ static inline bool bissca_emm_validate(const uint8_t *p_emm)
||
i_section_size
<
BISSCA_EMM_HEADER_SIZE
+
6
+
bissca_emm_get_desclength
(
p_emm
))
return
false
;
if
(
!
descl_validate
(
emm_get_descl_const
(
p_emm
),
bissca_emm_get_desclength
(
p_emm
)))
if
(
!
descl_validate
(
bissca_
emm_get_descl_const
(
p_emm
),
bissca_emm_get_desclength
(
p_emm
)))
return
false
;
// TODO: validate RSA loop ?
...
...