Skip to contentSkip to conversation

optee-os: replace old pycrypto with pycryptodome - a drop-in replacement

PATCH In review Denys Dmytriyenko 3 participants 9 messages May 15, 2020 – Jul 31, 2020 2 messages not in the archive

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 optee-os: replace old pycrypto with pycryptodome - a drop-in replacement

From: Denys Dmytriyenko <[email protected]>

While pycryptodome is a drop-in replacement for the old pycrypto module, pycryptodomex uses a separate namespace to not confict with pycrypto. Unfortunately, optee-os uses both namespaces, hence both variants of pycryptodome and pycryptodomex are needed.

---
 meta-arm/recipes-security/optee/optee-os_git.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta-arm/recipes-security/optee/optee-os_git.bb +1 -1
index dfff6d1..c9847b5 100644
@@ -10,7 +10,7 @@ PV = "3.8.0+git${SRCPV}"
 inherit deploy python3native
 require optee.inc
 
-DEPENDS = "python3-pycrypto-native python3-pyelftools-native python3-pycryptodomex-native"
+DEPENDS = "python3-pycryptodome-native python3-pycryptodomex-native python3-pyelftools-native"
 
 SRCREV = "023e33656e2c9557ce50ad63a98b2e2c9b51c118"
 SRC_URI = " \
Signature · 1 line
2.7.4
Reviewed-by on v1 1/1
#1 lore raw
Quoted 9 lines · Denys Dmytriyenko

From: Denys Dmytriyenko <[email protected]>

While pycryptodome is a drop-in replacement for the old pycrypto module, pycryptodomex uses a separate namespace to not confict with pycrypto. Unfortunately, optee-os uses both namespaces, hence both variants of pycryptodome and pycryptodomex are needed.

Quoted 24 lines
---
 meta-arm/recipes-security/optee/optee-os_git.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta-arm/recipes-security/optee/optee-os_git.bb +0 -1
index dfff6d1..c9847b5 100644
@@ -10,7 +10,7 @@ PV = "3.8.0+git${SRCPV}"
 inherit deploy python3native
 require optee.inc
 
-DEPENDS = "python3-pycrypto-native python3-pyelftools-native

python3-pycryptodomex-native"
+DEPENDS = "python3-pycryptodome-native python3-pycryptodomex-native python3-pyelftools-native"

SRCREV = "023e33656e2c9557ce50ad63a98b2e2c9b51c118" SRC_URI = " \

Signature · 1 line
2.7.4
#2 lore raw
Quoted 5 lines · Diego Sueiro
Quoted 3 lines · Denys Dmytriyenko

From: Denys Dmytriyenko <[email protected]>

Quoted 8 lines
Quoted 6 lines

While pycryptodome is a drop-in replacement for the old pycrypto module, pycryptodomex uses a separate namespace to not confict with pycrypto. Unfortunately, optee-os uses both namespaces, hence both variants of pycryptodome and pycryptodomex are needed.

Pulled in to the master branch.

Thanks,
Jon

Quoted 27 lines
Quoted 25 lines
---
 meta-arm/recipes-security/optee/optee-os_git.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta-arm/recipes-security/optee/optee-os_git.bb +0 -1
index dfff6d1..c9847b5 100644
@@ -10,7 +10,7 @@ PV = "3.8.0+git${SRCPV}"
 inherit deploy python3native
 require optee.inc
 
-DEPENDS = "python3-pycrypto-native python3-pyelftools-native

python3-pycryptodomex-native"
+DEPENDS = "python3-pycryptodome-native python3-pycryptodomex-native python3-pyelftools-native"

SRCREV = "023e33656e2c9557ce50ad63a98b2e2c9b51c118" SRC_URI = " \

Signature · 1 line
2.7.4
#3 lore raw
Quoted 11 lines · Jon Mason
Quoted 10 lines · Diego Sueiro
Quoted 8 lines · Denys Dmytriyenko

From: Denys Dmytriyenko <[email protected]>

While pycryptodome is a drop-in replacement for the old pycrypto module, pycryptodomex uses a separate namespace to not confict with pycrypto. Unfortunately, optee-os uses both namespaces, hence both variants of pycryptodome and pycryptodomex are needed.

Quoted 5 lines
Quoted 3 lines
Quoted 1 line

Pulled in to the master branch.

Can you please also backport this to dunfell - it is also needed to fully drop dependency on meta-python in dunfell. Thanks!

http://git.yoctoproject.org/cgit/cgit.cgi/meta-arm/commit/?id=06b648821aa3fbbdf7c00724cf3c3cedbb4f0546

Quoted 29 lines
Quoted 26 lines
Quoted 24 lines
---
 meta-arm/recipes-security/optee/optee-os_git.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta-arm/recipes-security/optee/optee-os_git.bb +0 -1
index dfff6d1..c9847b5 100644
@@ -10,7 +10,7 @@ PV = "3.8.0+git${SRCPV}"
 inherit deploy python3native
 require optee.inc
 
-DEPENDS = "python3-pycrypto-native python3-pyelftools-native

python3-pycryptodomex-native"
+DEPENDS = "python3-pycryptodome-native python3-pycryptodomex-native python3-pyelftools-native"

SRCREV = "023e33656e2c9557ce50ad63a98b2e2c9b51c118" SRC_URI = " \

Signature · 1 line
2.7.4

A message that is not in the archive (sent off-list or not yet received): [email protected]

#5 lore raw
Quoted 14 lines · Denys Dmytriyenko
Quoted 13 lines · Jon Mason
Quoted 12 lines · Diego Sueiro
Quoted 9 lines · Denys Dmytriyenko

From: Denys Dmytriyenko <[email protected]>

While pycryptodome is a drop-in replacement for the old pycrypto module, pycryptodomex uses a separate namespace to not confict with pycrypto. Unfortunately, optee-os uses both namespaces, hence both variants of pycryptodome and pycryptodomex are needed.

Quoted 8 lines
Quoted 3 lines
Quoted 1 line

Pulled in to the master branch.

Can you please also backport this to dunfell - it is also needed to fully drop dependency on meta-python in dunfell. Thanks!

http://git.yoctoproject.org/cgit/cgit.cgi/meta-arm/commit/?id=06b648821aa3fbbdf7c00724cf3c3cedbb4f0546

Ping.

Quoted 32 lines
Quoted 29 lines
Quoted 26 lines
Quoted 24 lines
---
 meta-arm/recipes-security/optee/optee-os_git.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta-arm/recipes-security/optee/optee-os_git.bb +0 -1
index dfff6d1..c9847b5 100644
@@ -10,7 +10,7 @@ PV = "3.8.0+git${SRCPV}"
 inherit deploy python3native
 require optee.inc
 
-DEPENDS = "python3-pycrypto-native python3-pyelftools-native

python3-pycryptodomex-native"
+DEPENDS = "python3-pycryptodome-native python3-pycryptodomex-native python3-pyelftools-native"

SRCREV = "023e33656e2c9557ce50ad63a98b2e2c9b51c118" SRC_URI = " \

Signature · 1 line
2.7.4

A message that is not in the archive (sent off-list or not yet received): [email protected]

#7 lore raw
Quoted 17 lines · Denys Dmytriyenko
Quoted 16 lines · Denys Dmytriyenko
Quoted 15 lines · Jon Mason
Quoted 13 lines · Diego Sueiro
Quoted 9 lines · Denys Dmytriyenko

From: Denys Dmytriyenko <[email protected]>

While pycryptodome is a drop-in replacement for the old pycrypto module, pycryptodomex uses a separate namespace to not confict with pycrypto. Unfortunately, optee-os uses both namespaces, hence both variants of pycryptodome and pycryptodomex are needed.

Quoted 8 lines
Quoted 6 lines
Quoted 1 line

Pulled in to the master branch.

Can you please also backport this to dunfell - it is also needed to fully drop dependency on meta-python in dunfell. Thanks!

http://git.yoctoproject.org/cgit/cgit.cgi/meta-arm/commit/?id=06b648821aa3fbbdf7c00724cf3c3cedbb4f0546

Ping.

Just wanted to check if there are any concerns with this backport. Thanks.

Denys

Quoted 35 lines
Quoted 32 lines
Quoted 29 lines
Quoted 26 lines
Quoted 24 lines
---
 meta-arm/recipes-security/optee/optee-os_git.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta-arm/recipes-security/optee/optee-os_git.bb +0 -1
index dfff6d1..c9847b5 100644
@@ -10,7 +10,7 @@ PV = "3.8.0+git${SRCPV}"
 inherit deploy python3native
 require optee.inc
 
-DEPENDS = "python3-pycrypto-native python3-pyelftools-native

python3-pycryptodomex-native"
+DEPENDS = "python3-pycryptodome-native python3-pycryptodomex-native python3-pyelftools-native"

SRCREV = "023e33656e2c9557ce50ad63a98b2e2c9b51c118" SRC_URI = " \

Signature · 1 line
2.7.4
#8 lore raw
Quoted 23 lines · Denys Dmytriyenko
Quoted 22 lines · Denys Dmytriyenko
Quoted 21 lines · Denys Dmytriyenko
Quoted 11 lines · Jon Mason
Quoted 10 lines · Diego Sueiro
Quoted 8 lines · Denys Dmytriyenko

From: Denys Dmytriyenko <[email protected]>

While pycryptodome is a drop-in replacement for the old pycrypto module, pycryptodomex uses a separate namespace to not confict with pycrypto. Unfortunately, optee-os uses both namespaces, hence both variants of pycryptodome and pycryptodomex are needed.

Quoted 5 lines
Quoted 3 lines
Quoted 1 line

Pulled in to the master branch.

Can you please also backport this to dunfell - it is also needed to fully drop dependency on meta-python in dunfell. Thanks!

Quoted 7 lines
Quoted 3 lines
Quoted 1 line

http://git.yoctoproject.org/cgit/cgit.cgi/meta-arm/commit/?id=06b648821aa3fbbdf7c00724cf3c3cedbb4f0546

Ping.

Just wanted to check if there are any concerns with this backport. Thanks.

Denys

Terribly sorry in the delay. This caused a discussion internally and got lost in the shuffle. I'll sanity check agin shortly, but there was no issues on dunfell with the patch. However in testing it, we found that there are still python dependencies in master. So, I think we can apply to dunfell, but need to revert in master. I'm currently looking for alternatives to the revert in master.

Thanks,
Jon

Quoted 40 lines
Quoted 37 lines
Quoted 34 lines
Quoted 31 lines
Quoted 28 lines
Quoted 26 lines

---
 meta-arm/recipes-security/optee/optee-os_git.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta-arm/recipes-security/optee/optee-os_git.bb +0 -1
index dfff6d1..c9847b5 100644
@@ -10,7 +10,7 @@ PV = "3.8.0+git${SRCPV}"
 inherit deploy python3native
 require optee.inc
 
-DEPENDS = "python3-pycrypto-native python3-pyelftools-native

python3-pycryptodomex-native"
+DEPENDS = "python3-pycryptodome-native python3-pycryptodomex-native python3-pyelftools-native"

SRCREV = "023e33656e2c9557ce50ad63a98b2e2c9b51c118" SRC_URI = " \

Signature · 1 line
2.7.4
#9 lore raw
Quoted 30 lines · Jon Mason
Quoted 29 lines · Denys Dmytriyenko
Quoted 17 lines · Denys Dmytriyenko
Quoted 16 lines · Denys Dmytriyenko
Quoted 15 lines · Jon Mason
Quoted 13 lines · Diego Sueiro
Quoted 9 lines · Denys Dmytriyenko

From: Denys Dmytriyenko <[email protected]>

While pycryptodome is a drop-in replacement for the old pycrypto module, pycryptodomex uses a separate namespace to not confict with pycrypto. Unfortunately, optee-os uses both namespaces, hence both variants of pycryptodome and pycryptodomex are needed.

Quoted 8 lines
Quoted 6 lines
Quoted 1 line

Pulled in to the master branch.

Can you please also backport this to dunfell - it is also needed to fully drop dependency on meta-python in dunfell. Thanks!

http://git.yoctoproject.org/cgit/cgit.cgi/meta-arm/commit/?id=06b648821aa3fbbdf7c00724cf3c3cedbb4f0546

Ping.

Just wanted to check if there are any concerns with this backport. Thanks.

Quoted 8 lines
Quoted 1 line

Denys

Terribly sorry in the delay. This caused a discussion internally and got lost in the shuffle. I'll sanity check agin shortly, but there was no issues on dunfell with the patch. However in testing it, we found that there are still python dependencies in master. So, I think we can apply to dunfell, but need to revert in master. I'm currently looking for alternatives to the revert in master.

Where does the dependency on meta-python in master come from? Is it still from optee? Or is there something else?

Denys

Quoted 44 lines

Thanks,
Jon

Quoted 40 lines
Quoted 37 lines
Quoted 34 lines
Quoted 31 lines
Quoted 28 lines
Quoted 26 lines

---
 meta-arm/recipes-security/optee/optee-os_git.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta-arm/recipes-security/optee/optee-os_git.bb +0 -1
index dfff6d1..c9847b5 100644
@@ -10,7 +10,7 @@ PV = "3.8.0+git${SRCPV}"
 inherit deploy python3native
 require optee.inc
 
-DEPENDS = "python3-pycrypto-native python3-pyelftools-native

python3-pycryptodomex-native"
+DEPENDS = "python3-pycryptodome-native python3-pycryptodomex-native python3-pyelftools-native"

SRCREV = "023e33656e2c9557ce50ad63a98b2e2c9b51c118" SRC_URI = " \

Signature · 1 line
2.7.4
#10 lore raw
Quoted 40 lines · Denys Dmytriyenko
Quoted 30 lines · Jon Mason
Quoted 29 lines · Denys Dmytriyenko
Quoted 17 lines · Denys Dmytriyenko
Quoted 16 lines · Denys Dmytriyenko
Quoted 15 lines · Jon Mason
Quoted 13 lines · Diego Sueiro
Quoted 9 lines · Denys Dmytriyenko

From: Denys Dmytriyenko <[email protected]>

While pycryptodome is a drop-in replacement for the old pycrypto module, pycryptodomex uses a separate namespace to not confict with pycrypto. Unfortunately, optee-os uses both namespaces, hence both variants of pycryptodome and pycryptodomex are needed.

Quoted 8 lines
Quoted 6 lines
Quoted 1 line

Pulled in to the master branch.

Can you please also backport this to dunfell - it is also needed to fully drop dependency on meta-python in dunfell. Thanks!

http://git.yoctoproject.org/cgit/cgit.cgi/meta-arm/commit/?id=06b648821aa3fbbdf7c00724cf3c3cedbb4f0546

Ping.

Just wanted to check if there are any concerns with this backport. Thanks.

Quoted 8 lines
Quoted 1 line

Denys

Terribly sorry in the delay. This caused a discussion internally and got lost in the shuffle. I'll sanity check agin shortly, but there was no issues on dunfell with the patch. However in testing it, we found that there are still python dependencies in master. So, I think we can apply to dunfell, but need to revert in master. I'm currently looking for alternatives to the revert in master.

Quoted 2 lines

Where does the dependency on meta-python in master come from? Is it still from optee? Or is there something else?

TF-M and OPTEE (and GEM5, which is now its own layer). We know its an issue and will work on it.

Anyway, the patch is now in dunfell.

Thanks,
Jon

Quoted 50 lines

Denys

Quoted 44 lines

Thanks,
Jon

Quoted 40 lines
Quoted 37 lines
Quoted 34 lines
Quoted 31 lines
Quoted 28 lines
Quoted 26 lines

---
 meta-arm/recipes-security/optee/optee-os_git.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta-arm/recipes-security/optee/optee-os_git.bb +0 -1
index dfff6d1..c9847b5 100644
@@ -10,7 +10,7 @@ PV = "3.8.0+git${SRCPV}"
 inherit deploy python3native
 require optee.inc
 
-DEPENDS = "python3-pycrypto-native python3-pyelftools-native

python3-pycryptodomex-native"
+DEPENDS = "python3-pycryptodome-native python3-pycryptodomex-native python3-pyelftools-native"

SRCREV = "023e33656e2c9557ce50ad63a98b2e2c9b51c118" SRC_URI = " \

Signature · 1 line
2.7.4