Documentation ¶
Index ¶
- Constants
- func New(pcs cryptography.PlatformCryptographyScheme, _ cryptography.KeyProcessor, ...) crypto.PlatformScheme
- type ECDSADigestSigner
- type ECDSAPublicKeyStore
- type ECDSASecretKeyStore
- type ECDSASignatureKeyHolder
- type ECDSASignatureVerifier
- func (sv *ECDSASignatureVerifier) GetDefaultSigningMethod() cryptkit.SigningMethod
- func (sv *ECDSASignatureVerifier) IsDigestMethodSupported(method cryptkit.DigestMethod) bool
- func (sv *ECDSASignatureVerifier) IsSigningMethodSupported(method cryptkit.SigningMethod) bool
- func (sv *ECDSASignatureVerifier) IsValidDataSignature(data io.Reader, signature cryptkit.SignatureHolder) bool
- func (sv *ECDSASignatureVerifier) IsValidDigestSignature(digest cryptkit.DigestHolder, signature cryptkit.SignatureHolder) bool
- type Sha3Digester224
- func (pd Sha3Digester224) DigestBytes(bytes []byte) cryptkit.Digest
- func (pd Sha3Digester224) DigestData(reader io.Reader) cryptkit.Digest
- func (pd Sha3Digester224) GetDigestMethod() cryptkit.DigestMethod
- func (pd Sha3Digester224) GetDigestSize() int
- func (pd Sha3Digester224) NewHasher() cryptkit.DigestHasher
- type Sha3Digester256
- func (pd Sha3Digester256) DigestBytes(bytes []byte) cryptkit.Digest
- func (pd Sha3Digester256) DigestData(reader io.Reader) cryptkit.Digest
- func (pd Sha3Digester256) GetDigestMethod() cryptkit.DigestMethod
- func (pd Sha3Digester256) GetDigestSize() int
- func (pd Sha3Digester256) NewHasher() cryptkit.DigestHasher
- type Sha3Digester512
- func (pd Sha3Digester512) DigestBytes(bytes []byte) cryptkit.Digest
- func (pd Sha3Digester512) DigestData(reader io.Reader) cryptkit.Digest
- func (pd Sha3Digester512) DigestPair(digest0 longbits.FoldableReader, digest1 longbits.FoldableReader) cryptkit.Digest
- func (pd Sha3Digester512) GetDigestMethod() cryptkit.DigestMethod
- func (pd Sha3Digester512) GetDigestSize() int
- func (pd Sha3Digester512) NewHasher() cryptkit.DigestHasher
- type Sha3Digester512as224
- func (pd Sha3Digester512as224) DigestBytes(bytes []byte) cryptkit.Digest
- func (pd Sha3Digester512as224) DigestData(reader io.Reader) cryptkit.Digest
- func (pd Sha3Digester512as224) GetDigestMethod() cryptkit.DigestMethod
- func (pd Sha3Digester512as224) GetDigestSize() int
- func (pd Sha3Digester512as224) NewHasher() cryptkit.DigestHasher
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 ¶
func New ¶
func New(pcs cryptography.PlatformCryptographyScheme, _ cryptography.KeyProcessor, ks cryptography.KeyStore) crypto.PlatformScheme
Types ¶
type ECDSADigestSigner ¶
type ECDSADigestSigner struct {
// contains filtered or unexported fields
}
func NewECDSADigestSigner ¶
func NewECDSADigestSigner(sks cryptkit.SecretKeyStore, scheme cryptography.PlatformCryptographyScheme) *ECDSADigestSigner
func NewECDSADigestSignerFromSK ¶
func NewECDSADigestSignerFromSK(sk crypto.PrivateKey, scheme cryptography.PlatformCryptographyScheme) *ECDSADigestSigner
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 ¶
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 (kh *ECDSASignatureKeyHolder) Equals(other cryptkit.SigningKeyHolder) bool
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 NewECDSASignatureVerifier ¶
func NewECDSASignatureVerifier(pcs cryptography.PlatformCryptographyScheme, pks cryptkit.PublicKeyStore) *ECDSASignatureVerifier
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 NewSha3Digester224 ¶
func NewSha3Digester224(scheme cryptography.PlatformCryptographyScheme) Sha3Digester224
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 NewSha3Digester256 ¶
func NewSha3Digester256(scheme cryptography.PlatformCryptographyScheme) Sha3Digester256
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 NewSha3Digester512 ¶
func NewSha3Digester512(scheme cryptography.PlatformCryptographyScheme) Sha3Digester512
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 (pd Sha3Digester512) DigestPair(digest0 longbits.FoldableReader, digest1 longbits.FoldableReader) cryptkit.Digest
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 NewSha3Digester512as224 ¶
func NewSha3Digester512as224(scheme cryptography.PlatformCryptographyScheme) Sha3Digester512as224
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 ¶
func (pd Sha3Digester512as224) NewHasher() cryptkit.DigestHasher
Click to show internal directories.
Click to hide internal directories.