GBase News
GBase 8a Hygon HCT Encryption: Setup & Algorithm Guide
Driven by stringent data security and compliance requirements, the security capabilities and performance of modern databases have become key criteria for core industries such as finance, public services, and energy. As a leading MPP analytical database, GBase 8a has long been dedicated to adaptation across a broad hardware and software ecosystem. It recently completed deep integration with Hygon HCT hardware encryption technology, achieving a leap in encryption performance through kernel-level adaptation and flexible, parameterized configuration, while providing a clear path for selecting encryption algorithms across different business scenarios — truly balancing security compliance with efficient analytics.
GBase 8a × Hygon HCT: Kernel-Level Adaptation Unlocks the Core Value of Hardware Encryption
Traditional database encryption often relies on software algorithms, where encryption and decryption operations consume main CPU resources throughout the process. In high-load scenarios such as massive data loading and complex multi-dimensional queries, this can easily cause dramatic performance degradation and task stalling, creating an inherent conflict between “security compliance” and “business efficiency.”
GBase 8a has completed low-level adaptation at the database kernel level, linking the database encryption logic with Hygon HCT hardware encryption instructions, achieving two major breakthroughs:
01 Intelligent Identification, Seamless Switching
At startup, GBase 8a automatically detects the hardware environment. Upon identifying a Hygon CPU, it enables HCT hardware encryption mode; in non-Hygon environments, it automatically falls back to stable software encryption mode, ensuring cross-platform compatibility without additional modification.
02 Compute Offloading, Performance Boost
All encryption, decryption, and verification operations are offloaded to Hygon’s dedicated hardware co-processor, freeing the main CPU to focus on core business logic such as data storage, parallel computing, and result aggregation, completely eliminating the computing resource contention caused by software encryption.
Core Encryption Parameters Explained: Precise Configuration to Meet Different Encryption Needs
After adapting to Hygon HCT hardware encryption, GBase 8a provides two core configuration parameters to flexibly control the encryption mode and algorithm type. The parameters are simple to configure and take effect conveniently, suitable for scenarios with varying compliance levels and performance requirements. Their specific meanings and configuration rules are as follows:
01 gbase_encrypt_new_mode: Encryption Algorithm Specification Parameter
· Parameter role: Defines the encryption algorithm type used by the database, catering to both general encryption and standards-based compliance, and serving as a foundational setting for data encryption.
· Parameter values and meanings
o =0: Encryption disabled. No data encryption is enabled. Suitable for non-sensitive, public data storage scenarios, offering optimal performance.
o =1: Enable AES-128 algorithm. An international standard symmetric encryption algorithm with high computational efficiency and strong compatibility, suitable for scenarios without mandatory cryptographic mandates.
o =2: Enable SM4 encryption algorithm. A symmetric encryption algorithm compliant with applicable cryptography and data security regulations, suitable for core sensitive data scenarios in finance and public services.
o =3: Enable AES-256 algorithm. An international standard symmetric encryption algorithm, suitable for scenarios without mandatory cryptographic mandates.
02 gbase_hct_enabled: Hygon HCT Hardware Encryption Switch Parameter
· Parameter role: Controls whether Hygon HCT hardware encryption acceleration is enabled, toggling between “software encryption” and “hardware encryption” modes, directly determining encryption performance.
· Parameter values and meanings
o =0: Software encryption mode. Encryption operations are performed by the CPU via software algorithms. Suitable for non-Hygon platform environments.
o =1: Hygon platform hardware encryption mode. Encryption operations are executed by the encryption module, freeing up main CPU resources. Performance improves by 114% to 212% compared to software encryption. Suitable for encryption scenarios on Hygon platforms. If the system detects HCT hardware encryption is not supported, it automatically falls back to software encryption.
03 Parameter Configuration Instructions
These two parameters must be used together. For example, "_gbase_encrypt_new_mode=2 + _gbase_hct_enabled=1" enables the SM4 algorithm plus Hygon HCT hardware acceleration, providing dual guarantees of "compliance + high performance" for core sensitive data. The configuration takes effect after restarting the GBase 8a cluster, with no additional changes to application code required.
Scenario-Based Encryption Algorithm Selection: Matching Needs to Balance Compliance and Performance
After integrating with Hygon HCT hardware encryption, GBase 8a supports AES-128, AES-256, and SM4—major encryption algorithms. Different algorithms prioritize compliance levels, computational efficiency, and applicable scenarios. Based on data sensitivity, compliance requirements, and workload characteristics, we recommend the following selection schemes:
01 SM4 Encryption Algorithm
Recommended scenario: Core sensitive data + mandatory compliance
Applicable scenarios:
- Finance: storage of customer transaction data, credit records, capital flow, and other core sensitive data;
- Public services: resident identity information, administrative approval data, confidential business data, etc.;
- Energy and large enterprises: core production data, operational reports, classified statistical data;
- Scenarios requiring Level 3 security protection or relevant cryptographic certifications.
Selection advantages:
SM4 is a robust symmetric encryption algorithm that fully meets applicable data security regulations. It offers the strongest compliance and outstanding stability under high-load conditions, balancing compliance and performance.
02 AES-128 Algorithm
Recommended scenario: Non-sensitive data + high concurrency & low latency
Applicable scenarios:
- Non-core business data: public enterprise reports, non-sensitive operation logs, test environment data;
- High-concurrency write scenarios: real-time data collection, IoT data ingestion, high-throughput data synchronization;
- Cross-ecosystem compatibility scenarios: businesses requiring integration with international standard systems or third-party platforms.
Selection advantages:
AES-128 features simple computation logic and broad compatibility.
03 AES-256 Algorithm
Recommended scenario: Highly sensitive data + international security compliance + extreme data security
Applicable scenarios:
- High-grade sensitive data: core confidential business data, user privacy core data, advanced technology data, classified scientific research data;
- International compliance business: confidential business scenarios requiring compliance with overseas data security regulations and international industry security standards, interfacing with overseas systems;
- High-risk protection scenarios: data with high breach risk, long-term encrypted retention, archiving and storage requiring the highest encryption strength;
- Core businesses of public-sector and confidential organizations that do not mandate specific cryptographic standards but demand ultra-high security protection levels.
Selection advantages:
AES-256 is an internationally recognized ultra-high-strength symmetric encryption algorithm with a longer key length, suitable for scenarios that demand the utmost data confidentiality without specific cryptographic mandates.
04 Disable Encryption
Recommended scenario: Public data + extreme performance priority
Applicable scenarios:
· Public shared data, non-sensitive archived data, offline analysis test data;
· Offline computation and batch data processing scenarios where extreme performance is the priority.
Selection advantages:
With no encryption computational overhead, GBase 8a can unleash its full parallel computing power, delivering optimal performance for data loading, querying, and writing, perfectly matching the efficient processing needs of non-sensitive data.
Conclusion: Integrated Hardware-Software Adaptation Builds a New Benchmark for Database Security and Performance
The deep integration of GBase 8a with Hygon HCT hardware encryption is not simply a feature overlay. It realizes synergistic hardware-software collaboration between database and chip platforms at the kernel level. Through clear parameter configuration and scenario-based algorithm selection, it overcomes the pain points of traditional encryption: difficult compliance, poor performance, and complex adaptation.
At the parameter level, the two core configurations are simple to understand, flexible, and controllable, accommodating different hardware environments and encryption needs. At the scenario level, the SM4 algorithm solidifies the compliance baseline for sensitive data, while the AES-128 algorithm suits high-concurrency, high-efficiency scenarios, achieving "encryption on-demand with precise acceleration."
Looking ahead, GBase 8a will continue to deepen adaptation across a broad hardware and software ecosystem, collaborating with computing partners such as Hygon to refine security encryption solutions that better meet core industry needs. It will provide finance, public services, and energy sectors with a "secure, compliant, high-performance, and dependable" data foundation, supporting the high-quality development of the broader technology industry.
FAQ
What problem does the GBase 8a and Hygon HCT integration solve?
Traditional encryption relies on software algorithms that consume main CPU resources, causing performance drops under heavy loads and a conflict between security compliance and business efficiency. GBase 8a adapts at the kernel level, linking encryption logic with Hygon HCT instructions to deliver intelligent detection and compute offloading.
How does intelligent detection and seamless switching work?
At startup, GBase 8a detects the hardware environment: when a Hygon CPU is found, HCT hardware encryption mode is enabled; otherwise it falls back to stable software encryption mode, ensuring cross-platform compatibility without extra modification.
What do the two parameters control?
gbase_encrypt_new_mode sets the algorithm (0 disabled / 1 AES-128 / 2 SM4 / 3 AES-256); gbase_hct_enabled controls Hygon HCT acceleration (0 software / 1 hardware, delivering 114%–212% performance gains, with automatic fallback if HCT is unsupported). They are used together and take effect after a cluster restart, with no application code changes.
How much does hardware encryption improve performance?
Encryption, decryption, and verification are offloaded to Hygon's dedicated co-processor, freeing the main CPU for storage, parallel computing, and aggregation. On Hygon platforms, hardware encryption improves performance by 114% to 212% over software encryption.
How do you choose among SM4, AES-128, AES-256 and disabled?
SM4 suits core sensitive data with mandatory compliance (finance transactions and credit data, public-services identity data, energy and large enterprises); AES-128 suits non-sensitive data and high-concurrency low-latency workloads; AES-256 suits highly sensitive data and international compliance; disabling encryption suits public data and performance-first scenarios.