graph LR
Authentication_Module["Authentication Module"]
adb_sign_pythonrsa["adb.sign_pythonrsa"]
adb_sign_cryptography["adb.sign_cryptography"]
adb_sign_pycryptodome["adb.sign_pycryptodome"]
Authentication_Module -- "delegates to" --> adb_sign_pythonrsa
adb_sign_pythonrsa -- "provides service to" --> Authentication_Module
Authentication_Module -- "delegates to" --> adb_sign_cryptography
adb_sign_cryptography -- "provides service to" --> Authentication_Module
Authentication_Module -- "delegates to" --> adb_sign_pycryptodome
adb_sign_pycryptodome -- "provides service to" --> Authentication_Module
click Authentication_Module href "https://github.com/CodeBoarding/GeneratedOnBoardings/blob/main/python-adb/Authentication_Module.md" "Details"
The adb project's authentication subsystem is designed with a clear separation of concerns, centralizing signing operations within the adb package, which acts as the "Authentication Module." This module provides a unified interface, abstracting the underlying cryptographic library used for RSA key generation, loading, and digital signing. It delegates the actual signing tasks to specialized components, namely adb.sign_pythonrsa, adb.sign_cryptography, and adb.sign_pycryptodome, each implementing the signing functionality using a different Python cryptographic library. This architecture allows for flexibility in choosing the cryptographic backend while maintaining a consistent API for the rest of the system.
Authentication Module [Expand]
This module, represented by the adb package, provides the overarching interface and mechanism for orchestrating and selecting the appropriate RSA signing implementation. It offers a unified API for the rest of the system to request signing operations, abstracting the underlying cryptographic library details.
Related Classes/Methods:
Implements RSA key generation, loading, and digital signing functionalities specifically using the python-rsa library, serving as one concrete strategy for cryptographic operations.
Related Classes/Methods:
Implements RSA key generation, loading, and digital signing functionalities using the cryptography library, offering an alternative, potentially more robust or performant, signing strategy.
Related Classes/Methods:
Implements RSA key generation, loading, and digital signing functionalities using the pycryptodome library, providing another alternative signing strategy for flexibility in cryptographic library choice.
Related Classes/Methods: