git.prognetwork.ru/x0r/utls@v1.3.3/notboring.go (about)

     1  // Copyright 2022 The Go Authors. All rights reserved.
     2  // Use of this source code is governed by a BSD-style
     3  // license that can be found in the LICENSE file.
     4  package tls
     5  
     6  import (
     7  	"crypto/cipher"
     8  	"errors"
     9  )
    10  
    11  func needFIPS() bool { return false }
    12  
    13  func supportedSignatureAlgorithms() []SignatureScheme {
    14  	return defaultSupportedSignatureAlgorithms
    15  }
    16  
    17  func fipsMinVersion(c *Config) uint16          { panic("fipsMinVersion") }
    18  func fipsMaxVersion(c *Config) uint16          { panic("fipsMaxVersion") }
    19  func fipsCurvePreferences(c *Config) []CurveID { panic("fipsCurvePreferences") }
    20  func fipsCipherSuites(c *Config) []uint16      { panic("fipsCipherSuites") }
    21  
    22  var fipsSupportedSignatureAlgorithms []SignatureScheme
    23  
    24  // [uTLS]
    25  // Boring struct is only to be used to record static env variables
    26  // in boring package. We do not implement BoringSSL compatibliity here.
    27  type Boring struct {
    28  	Enabled bool
    29  }
    30  
    31  func (*Boring) NewGCMTLS(_ cipher.Block) (cipher.AEAD, error) {
    32  	return nil, errors.New("boring not implemented")
    33  }
    34  
    35  func (*Boring) Unreachable() {
    36  	// do nothing
    37  }
    38  
    39  var boring Boring