Linux Crypto Driver Development: Hash Algorithm

Overview The Linux kernel provides a complete cryptographic algorithm framework (Crypto API), supporting hardware acceleration and software implementation for various cryptographic operations. In actual driver development, we often need to integrate multiple cryptographic algorithms (such as SHA256, AES-CTR, RSA2048, etc.) into the same cryptographic hardware device, utilizing its dedicated computational capabilities to enhance system performance … Read more

Signature Verification in Embedded Systems: Design and Principle Analysis (C/C++ Implementation)

Signature Verification in Embedded Systems: Design and Principle Analysis (C/C++ Implementation)

In embedded systems, the integrity and legitimacy of firmware are crucial. For example, if the bootloader of a smart device loads tampered firmware, it may lead to system crashes or even the injection of malicious code. The “vboot” system of Chrome OS provides a lightweight and efficient signature verification scheme, the core logic of which … Read more

Comprehensive Analysis of the Python Standard Library hashlib Module Encryption Algorithms

Comprehensive Analysis of the Python Standard Library hashlib Module Encryption Algorithms

Comprehensive Analysis of the Python Standard Library hashlib Module Encryption Algorithms It was a Wednesday night I will never forget; all user passwords in the production environment suddenly became invalid. After troubleshooting for half a day, we finally discovered that the issue stemmed from a seemingly harmless MD5 encryption— the intern had directly stored plaintext … Read more

How the HMAC Encryption Algorithm Works and How to Implement Variants on Android

How the HMAC Encryption Algorithm Works and How to Implement Variants on Android

Copyright belongs to the author. If reposting, please indicate the source of the article: https://cyrus-studio.github.io/blog/ HMAC HMAC (Hash-based Message Authentication Code) is a message authentication code based on a hash function, used to verify the integrity and authenticity of data. HMAC mainly relies on the following elements: 1. Message: The data that needs to be … Read more

Performance Comparison of Different Encryption Algorithms in OpenVPN

Performance Comparison of Different Encryption Algorithms in OpenVPN

We previously introduced that the forwarding performance of IPsec VPN varies with different encryption algorithms (using vSRX to test the performance differences of various IPsec VPN encryption algorithms), but does OpenVPN have this issue? First, we need to confirm the algorithm information used during the OpenVPN negotiation process. For the default configuration, the algorithm information … Read more