legacyadapter

package
v0.0.0-...-05bc493 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SECP256r1Sign = cryptkit.SigningMethod("secp256r1")
)
View Source
const SHA3Digest224 = cryptkit.DigestMethod("sha3-224")
View Source
const SHA3Digest512 = cryptkit.DigestMethod("sha3-512")
View Source
const SHA3Digest512as224 = cryptkit.DigestMethod("sha3-512-224")
View Source
const SHA3Digest512as256 = cryptkit.DigestMethod("sha3-512-256")

Variables

This section is empty.

Functions

Types

type ECDSADigestSigner

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

func (*ECDSADigestSigner) GetSigningMethod

func (ds *ECDSADigestSigner) GetSigningMethod() cryptkit.SigningMethod

func (*ECDSADigestSigner) SignDigest

func (ds *ECDSADigestSigner) SignDigest(digest cryptkit.Digest) cryptkit.Signature

type ECDSAPublicKeyStore

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

func NewECDSAPublicKeyStore

func NewECDSAPublicKeyStore(skh cryptkit.SigningKeyHolder) *ECDSAPublicKeyStore

func NewECDSAPublicKeyStoreFromPK

func NewECDSAPublicKeyStoreFromPK(pk crypto.PublicKey) *ECDSAPublicKeyStore

func (*ECDSAPublicKeyStore) CryptoPublicKey

func (p *ECDSAPublicKeyStore) CryptoPublicKey() crypto.PublicKey

func (*ECDSAPublicKeyStore) PublicKeyStore

func (*ECDSAPublicKeyStore) PublicKeyStore()

type ECDSASecretKeyStore

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

func NewECDSASecretKeyStore

func NewECDSASecretKeyStore(privateKey *ecdsa.PrivateKey) *ECDSASecretKeyStore

func (*ECDSASecretKeyStore) AsPublicKeyStore

func (ks *ECDSASecretKeyStore) AsPublicKeyStore() cryptkit.PublicKeyStore

func (*ECDSASecretKeyStore) PrivateKeyStore

func (ks *ECDSASecretKeyStore) PrivateKeyStore()

type ECDSASignatureKeyHolder

type ECDSASignatureKeyHolder struct {
	longbits.Bits512
	// contains filtered or unexported fields
}

func NewECDSASignatureKeyHolder

func NewECDSASignatureKeyHolder(publicKey *ecdsa.PublicKey, processor cryptography.KeyProcessor) *ECDSASignatureKeyHolder

func NewECDSASignatureKeyHolderFromBits

func NewECDSASignatureKeyHolderFromBits(publicKeyBytes longbits.Bits512, processor cryptography.KeyProcessor) *ECDSASignatureKeyHolder

func (*ECDSASignatureKeyHolder) Equals

func (*ECDSASignatureKeyHolder) GetSigningKeyType

func (kh *ECDSASignatureKeyHolder) GetSigningKeyType() cryptkit.SigningKeyType

func (*ECDSASignatureKeyHolder) GetSigningMethod

func (kh *ECDSASignatureKeyHolder) GetSigningMethod() cryptkit.SigningMethod

type ECDSASignatureVerifier

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

func (*ECDSASignatureVerifier) GetDefaultSigningMethod

func (sv *ECDSASignatureVerifier) GetDefaultSigningMethod() cryptkit.SigningMethod

func (*ECDSASignatureVerifier) IsDigestMethodSupported

func (sv *ECDSASignatureVerifier) IsDigestMethodSupported(method cryptkit.DigestMethod) bool

func (*ECDSASignatureVerifier) IsSigningMethodSupported

func (sv *ECDSASignatureVerifier) IsSigningMethodSupported(method cryptkit.SigningMethod) bool

func (*ECDSASignatureVerifier) IsValidDataSignature

func (sv *ECDSASignatureVerifier) IsValidDataSignature(data io.Reader, signature cryptkit.SignatureHolder) bool

func (*ECDSASignatureVerifier) IsValidDigestSignature

func (sv *ECDSASignatureVerifier) IsValidDigestSignature(digest cryptkit.DigestHolder, signature cryptkit.SignatureHolder) bool

type Sha3Digester224

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

func (Sha3Digester224) DigestBytes

func (pd Sha3Digester224) DigestBytes(bytes []byte) cryptkit.Digest

func (Sha3Digester224) DigestData

func (pd Sha3Digester224) DigestData(reader io.Reader) cryptkit.Digest

func (Sha3Digester224) GetDigestMethod

func (pd Sha3Digester224) GetDigestMethod() cryptkit.DigestMethod

func (Sha3Digester224) GetDigestSize

func (pd Sha3Digester224) GetDigestSize() int

func (Sha3Digester224) NewHasher

func (pd Sha3Digester224) NewHasher() cryptkit.DigestHasher

type Sha3Digester256

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

func (Sha3Digester256) DigestBytes

func (pd Sha3Digester256) DigestBytes(bytes []byte) cryptkit.Digest

func (Sha3Digester256) DigestData

func (pd Sha3Digester256) DigestData(reader io.Reader) cryptkit.Digest

func (Sha3Digester256) GetDigestMethod

func (pd Sha3Digester256) GetDigestMethod() cryptkit.DigestMethod

func (Sha3Digester256) GetDigestSize

func (pd Sha3Digester256) GetDigestSize() int

func (Sha3Digester256) NewHasher

func (pd Sha3Digester256) NewHasher() cryptkit.DigestHasher

type Sha3Digester512

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

func (Sha3Digester512) DigestBytes

func (pd Sha3Digester512) DigestBytes(bytes []byte) cryptkit.Digest

func (Sha3Digester512) DigestData

func (pd Sha3Digester512) DigestData(reader io.Reader) cryptkit.Digest

func (Sha3Digester512) DigestPair

func (Sha3Digester512) GetDigestMethod

func (pd Sha3Digester512) GetDigestMethod() cryptkit.DigestMethod

func (Sha3Digester512) GetDigestSize

func (pd Sha3Digester512) GetDigestSize() int

func (Sha3Digester512) NewHasher

func (pd Sha3Digester512) NewHasher() cryptkit.DigestHasher

type Sha3Digester512as224

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

func (Sha3Digester512as224) DigestBytes

func (pd Sha3Digester512as224) DigestBytes(bytes []byte) cryptkit.Digest

func (Sha3Digester512as224) DigestData

func (pd Sha3Digester512as224) DigestData(reader io.Reader) cryptkit.Digest

func (Sha3Digester512as224) GetDigestMethod

func (pd Sha3Digester512as224) GetDigestMethod() cryptkit.DigestMethod

func (Sha3Digester512as224) GetDigestSize

func (pd Sha3Digester512as224) GetDigestSize() int

func (Sha3Digester512as224) NewHasher

Jump to

Keyboard shortcuts

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