tls

package
v1.1.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 13, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildTLSProtocolComponents

func BuildTLSProtocolComponents(version string, suiteNames []string, srcPath string) ([]cdx.Component, *cdx.Component, map[cdx.BOMReference][]string)

BuildTLSProtocolComponents constructs a TLS protocol component and its dependency map.

Inputs:

  • version: TLS version string (e.g., "1.2", "1.3").
  • suiteNames: TLS cipher suite names like "TLS_AES_128_GCM_SHA256".
  • srcPath: evidence location for the protocol/algorithms.

Output:

  • algoComps: algorithm components referenced by the cipher suites (deduplicated, deterministic order).
  • proto: TLS protocol component (nil if no recognized suites).
  • depMap: dependencies mapping (protocol → algorithms; signature → hash heuristic).

func MapOpenSSLNamesToTLS

func MapOpenSSLNamesToTLS(opensslNames []string) []string

MapOpenSSLNamesToTLS maps OpenSSL cipher names (e.g., "ECDHE-ECDSA-AES256-GCM-SHA384") to standard TLS_* names used by our DB (e.g., "TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384"). Unknown names are ignored. The result is deduplicated and sorted.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL