The invention relates to a control method for a multi-protocol switching anti-
quantum security gateway, and the method comprises the steps: carrying out the safety self-inspection of a hardware environment after the security gateway is powered on, generating a unique root key of equipment based on a
physical unclonable function, continuously collecting and analyzing the network traffic characteristics, and carrying out the self-inspection of the hardware environment. Based on a
machine learning model, a
quantum attack mode is identified and an
encryption algorithm mode is dynamically decided, protocol analysis is carried out on a communication data packet, dynamic conversion and
adaptation are carried out between a traditional protocol and an anti-
quantum cryptography protocol according to an instruction and a preset rule, and an anti-
quantum cryptography engine is called to carry out
encryption or signature operation. And dynamically deriving and managing a
session key in a complete period based on a root key, switching an
algorithm mode, a communication protocol and a key in a linkage manner according to a quantum
attack detection result, and starting anti-
side channel attack protection and hardware security response. According to the method,
active protection of the security gateway on quantum attacks, multi-protocol seamless compatibility and full-life-cycle
security management of keys are realized.