github.com/bigzoro/my_simplechain@v0.0.0-20240315012955-8ad0a2a29bb9/core/access_contoller/opencrypto/opencrypto.go (about)

     1  /*
     2  Copyright (C) BABEC. All rights reserved.
     3  Copyright (C) THL A29 Limited, a Tencent company. All rights reserved.
     4  
     5  SPDX-License-Identifier: Apache-2.0
     6  */
     7  
     8  package opencrypto
     9  
    10  type Engine string
    11  
    12  //supported engine
    13  const (
    14  	GmSSL     Engine = "gmssl"
    15  	TencentSM Engine = "tencentsm"
    16  	TjfocGM   Engine = "tjfoc"
    17  )
    18  
    19  func ToEngineType(engine string) Engine {
    20  	return Engine(engine)
    21  }