cryptonl

package module
v0.0.0-...-72ac5ed Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2019 License: MIT Imports: 5 Imported by: 0

README

cryptonl builds.sr.ht status GoDoc Go Report Card

Package cryptonl provides access to the Linux kernel crypto API's netlink interface.

For more information on the Linux kernel crypto API, please see https://www.kernel.org/doc/html/latest/crypto/index.html.

MIT Licensed.

Documentation

Overview

Package cryptonl provides access to the Linux kernel crypto API's netlink interface.

For more information on the Linux kernel crypto API, please see https://www.kernel.org/doc/html/latest/crypto/index.html.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Algorithm

type Algorithm struct {
	Name     string
	Driver   string
	Module   string
	Priority int
	Type     Type
}

An Algorithm is an algorithm registered with the Linux kernel crypto API.

type Cipher

type Cipher struct {
	BlockSize  int
	MinKeySize int
	MaxKeySize int
	// contains filtered or unexported fields
}

A Cipher represents a cipher algorithm. *Cipher implements Type.

func (*Cipher) Type

func (t *Cipher) Type() string

Type implements Type.

type Conn

type Conn struct {
	// contains filtered or unexported fields
}

A Conn is a connection to the Linux kernel crypto API's netlink interface.

func Dial

func Dial() (*Conn, error)

Dial dials a new connection to the Linux kernel crypto API's netlink interface.

func (*Conn) Algorithms

func (c *Conn) Algorithms() ([]*Algorithm, error)

Algorithms retrieves all algorithms registered with the Linux kernel crypto API.

func (*Conn) Close

func (c *Conn) Close() error

Close closes the connection.

type Hash

type Hash struct {
	BlockSize  int
	DigestSize int
	// contains filtered or unexported fields
}

A Hash represents a hash algorithm. *Hash implements Type.

func (*Hash) Type

func (t *Hash) Type() string

Type implements Type.

type Type

type Type interface {
	Type() string
}

A Type is a type of algorithm. Use a type assertion to access additional information about a Type.

Directories

Path Synopsis
cmd
cryptonl
Command cryptonl uses package cryptonl to produce a list of algorithms registered with the Linux kernel crypto API.
Command cryptonl uses package cryptonl to produce a list of algorithms registered with the Linux kernel crypto API.

Jump to

Keyboard shortcuts

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