Rename variables and funcions

Signed-off-by: gabor-mezei-arm <gabor.mezei@arm.com>
This commit is contained in:
gabor-mezei-arm 2021-06-28 17:40:32 +02:00
parent 2710bb1d82
commit 5df1dee0c6
No known key found for this signature in database
GPG key ID: 106F5A41ECC305BD
2 changed files with 12 additions and 13 deletions

View file

@ -123,7 +123,7 @@ class Key:
bits: int,
usage: Exprable, alg: Exprable, alg2: Exprable,
material: bytes, #pylint: disable=used-before-assignment
usage_extension: bool = True
implicit_usage: bool = True
) -> None:
self.version = self.LATEST_VERSION if version is None else version
self.id = id #pylint: disable=invalid-name #type: Optional[int]
@ -136,7 +136,7 @@ class Key:
self.alg2 = as_expr(alg2) #type: Expr
self.material = material #type: bytes
if usage_extension:
if implicit_usage:
for flag, extension in self.IMPLICIT_USAGE_FLAGS.items():
if self.original_usage.value() & Expr(flag).value() and \
self.original_usage.value() & Expr(extension).value() == 0: