Movatterモバイル変換


[0]ホーム

URL:


impl

packagestandard library
go1.25.2Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2025 License:BSD-3-ClauseImports:1Imported by:0

Details

Repository

cs.opensource.google/go/go

Links

Documentation

Overview

Package impl is a registry of alternative implementations of cryptographicprimitives, to allow selecting them for testing.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

funcList

func List(pkgstring) []string

List returns the names of all alternative implementations registered for thegiven package, whether available or not. The implicit base implementation isnot included.

funcPackagesadded ingo1.25.0

func Packages() []string

Packages returns the list of all packages for which alternativeimplementations are registered.

funcRegister

func Register(pkg, namestring, available *bool)

Register records an alternative implementation of a cryptographic primitive.The implementation might be available or not based on CPU support. Ifavailable is false, the implementation is unavailable and can't be tested onthis machine. If available is true, it can be set to false to disable theimplementation. If all alternative implementations but one are disabled, theremaining one must be used (i.e. disabling one implementation must notimplicitly disable any other). Each package has an implicit baseimplementation that is selected when all alternatives are unavailable ordisabled. pkg must be the package name, not path (e.g. "aes" not "crypto/aes").

funcReset

func Reset(pkgstring)

funcSelect

func Select(pkg, namestring)bool

Select disables all implementations for the given package except the onewith the given name. If name is empty, the base implementation is selected.It returns whether the selected implementation is available.

Types

This section is empty.

Source Files

View all Source files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f orF : Jump to
y orY : Canonical URL
go.dev uses cookies from Google to deliver and enhance the quality of its services and to analyze traffic.Learn more.

[8]ページ先頭

©2009-2025 Movatter.jp