The invention provides a distributed secret terminal secret photography prevention method based on a national secret
algorithm, and the method comprises the steps: completing the bidirectional
verification of a
public key certificate through employing an SM2 elliptic curve
algorithm, and preventing the access of a forged terminal; before each session, a terminal and an
edge node use an SM2-based ECDH to derive a one-time SM4
session key, the life cycle is less than or equal to 10 min, and
forward secrecy is supported. The terminal captures video frames, each frame of video generates an SM3 hash value, and a one-way
hash chain is formed; and the chain
tail hash is regularly written into the
side chain of the block chain to ensure that tampering is avoided. According to the method, SM2, SM3 and SM4 full-link national secret algorithms are adopted, federal learning and block chain side chains are combined, the problems that in the prior art, secret keys are managed in a centralized mode,
algorithm compliance is insufficient, video frames are tampered easily and the like are solved, and the method can be widely applied to confidential places. Through a three-level
key management system, a distributed monitoring network and an encrypted
data binding mechanism, real-time candid photography prevention, integrity
verification and afterwards
traceability of the mobile terminal in a confidential place are realized.