Documentation ¶
Index ¶
- func ByteDigestOfHash(digester BasicDigester, hasher hash.Hash) []byte
- func HashToBytes(hasher hash.Hash, b []byte)
- type BasicDigester
- type CertificateHolder
- type CertificateHolderMock
- func (mmGetPublicKey *CertificateHolderMock) GetPublicKey() (s1 SigningKeyHolder)
- func (mmGetPublicKey *CertificateHolderMock) GetPublicKeyAfterCounter() uint64
- func (mmGetPublicKey *CertificateHolderMock) GetPublicKeyBeforeCounter() uint64
- func (mmIsValidForHostAddress *CertificateHolderMock) IsValidForHostAddress(HostAddress string) (b1 bool)
- func (mmIsValidForHostAddress *CertificateHolderMock) IsValidForHostAddressAfterCounter() uint64
- func (mmIsValidForHostAddress *CertificateHolderMock) IsValidForHostAddressBeforeCounter() uint64
- func (m *CertificateHolderMock) MinimockFinish()
- func (m *CertificateHolderMock) MinimockGetPublicKeyDone() bool
- func (m *CertificateHolderMock) MinimockGetPublicKeyInspect()
- func (m *CertificateHolderMock) MinimockIsValidForHostAddressDone() bool
- func (m *CertificateHolderMock) MinimockIsValidForHostAddressInspect()
- func (m *CertificateHolderMock) MinimockWait(timeout mm_time.Duration)
- type CertificateHolderMockGetPublicKeyExpectation
- type CertificateHolderMockGetPublicKeyResults
- type CertificateHolderMockIsValidForHostAddressExpectation
- type CertificateHolderMockIsValidForHostAddressParams
- type CertificateHolderMockIsValidForHostAddressResults
- type DataDigester
- type DataDigesterMock
- func (mmDigestBytes *DataDigesterMock) DigestBytes(ba1 []byte) (d1 Digest)
- func (mmDigestBytes *DataDigesterMock) DigestBytesAfterCounter() uint64
- func (mmDigestBytes *DataDigesterMock) DigestBytesBeforeCounter() uint64
- func (mmDigestData *DataDigesterMock) DigestData(r1 io.Reader) (d1 Digest)
- func (mmDigestData *DataDigesterMock) DigestDataAfterCounter() uint64
- func (mmDigestData *DataDigesterMock) DigestDataBeforeCounter() uint64
- func (mmGetDigestMethod *DataDigesterMock) GetDigestMethod() (d1 DigestMethod)
- func (mmGetDigestMethod *DataDigesterMock) GetDigestMethodAfterCounter() uint64
- func (mmGetDigestMethod *DataDigesterMock) GetDigestMethodBeforeCounter() uint64
- func (mmGetDigestSize *DataDigesterMock) GetDigestSize() (i1 int)
- func (mmGetDigestSize *DataDigesterMock) GetDigestSizeAfterCounter() uint64
- func (mmGetDigestSize *DataDigesterMock) GetDigestSizeBeforeCounter() uint64
- func (m *DataDigesterMock) MinimockDigestBytesDone() bool
- func (m *DataDigesterMock) MinimockDigestBytesInspect()
- func (m *DataDigesterMock) MinimockDigestDataDone() bool
- func (m *DataDigesterMock) MinimockDigestDataInspect()
- func (m *DataDigesterMock) MinimockFinish()
- func (m *DataDigesterMock) MinimockGetDigestMethodDone() bool
- func (m *DataDigesterMock) MinimockGetDigestMethodInspect()
- func (m *DataDigesterMock) MinimockGetDigestSizeDone() bool
- func (m *DataDigesterMock) MinimockGetDigestSizeInspect()
- func (m *DataDigesterMock) MinimockNewHasherDone() bool
- func (m *DataDigesterMock) MinimockNewHasherInspect()
- func (m *DataDigesterMock) MinimockWait(timeout mm_time.Duration)
- func (mmNewHasher *DataDigesterMock) NewHasher() (d1 DigestHasher)
- func (mmNewHasher *DataDigesterMock) NewHasherAfterCounter() uint64
- func (mmNewHasher *DataDigesterMock) NewHasherBeforeCounter() uint64
- type DataDigesterMockDigestBytesExpectation
- type DataDigesterMockDigestBytesParams
- type DataDigesterMockDigestBytesResults
- type DataDigesterMockDigestDataExpectation
- type DataDigesterMockDigestDataParams
- type DataDigesterMockDigestDataResults
- type DataDigesterMockGetDigestMethodExpectation
- type DataDigesterMockGetDigestMethodResults
- type DataDigesterMockGetDigestSizeExpectation
- type DataDigesterMockGetDigestSizeResults
- type DataDigesterMockNewHasherExpectation
- type DataDigesterMockNewHasherResults
- type DataSignatureVerifier
- type DataSignatureVerifierFactory
- type DataSigner
- type DataSignerFactory
- type DataSignerMock
- func (mmDigestBytes *DataSignerMock) DigestBytes(ba1 []byte) (d1 Digest)
- func (mmDigestBytes *DataSignerMock) DigestBytesAfterCounter() uint64
- func (mmDigestBytes *DataSignerMock) DigestBytesBeforeCounter() uint64
- func (mmDigestData *DataSignerMock) DigestData(r1 io.Reader) (d1 Digest)
- func (mmDigestData *DataSignerMock) DigestDataAfterCounter() uint64
- func (mmDigestData *DataSignerMock) DigestDataBeforeCounter() uint64
- func (mmGetDigestMethod *DataSignerMock) GetDigestMethod() (d1 DigestMethod)
- func (mmGetDigestMethod *DataSignerMock) GetDigestMethodAfterCounter() uint64
- func (mmGetDigestMethod *DataSignerMock) GetDigestMethodBeforeCounter() uint64
- func (mmGetDigestSize *DataSignerMock) GetDigestSize() (i1 int)
- func (mmGetDigestSize *DataSignerMock) GetDigestSizeAfterCounter() uint64
- func (mmGetDigestSize *DataSignerMock) GetDigestSizeBeforeCounter() uint64
- func (mmGetSignatureMethod *DataSignerMock) GetSignatureMethod() (s1 SignatureMethod)
- func (mmGetSignatureMethod *DataSignerMock) GetSignatureMethodAfterCounter() uint64
- func (mmGetSignatureMethod *DataSignerMock) GetSignatureMethodBeforeCounter() uint64
- func (mmGetSigningMethod *DataSignerMock) GetSigningMethod() (s1 SigningMethod)
- func (mmGetSigningMethod *DataSignerMock) GetSigningMethodAfterCounter() uint64
- func (mmGetSigningMethod *DataSignerMock) GetSigningMethodBeforeCounter() uint64
- func (m *DataSignerMock) MinimockDigestBytesDone() bool
- func (m *DataSignerMock) MinimockDigestBytesInspect()
- func (m *DataSignerMock) MinimockDigestDataDone() bool
- func (m *DataSignerMock) MinimockDigestDataInspect()
- func (m *DataSignerMock) MinimockFinish()
- func (m *DataSignerMock) MinimockGetDigestMethodDone() bool
- func (m *DataSignerMock) MinimockGetDigestMethodInspect()
- func (m *DataSignerMock) MinimockGetDigestSizeDone() bool
- func (m *DataSignerMock) MinimockGetDigestSizeInspect()
- func (m *DataSignerMock) MinimockGetSignatureMethodDone() bool
- func (m *DataSignerMock) MinimockGetSignatureMethodInspect()
- func (m *DataSignerMock) MinimockGetSigningMethodDone() bool
- func (m *DataSignerMock) MinimockGetSigningMethodInspect()
- func (m *DataSignerMock) MinimockNewHasherDone() bool
- func (m *DataSignerMock) MinimockNewHasherInspect()
- func (m *DataSignerMock) MinimockSignDigestDone() bool
- func (m *DataSignerMock) MinimockSignDigestInspect()
- func (m *DataSignerMock) MinimockWait(timeout mm_time.Duration)
- func (mmNewHasher *DataSignerMock) NewHasher() (d1 DigestHasher)
- func (mmNewHasher *DataSignerMock) NewHasherAfterCounter() uint64
- func (mmNewHasher *DataSignerMock) NewHasherBeforeCounter() uint64
- func (mmSignDigest *DataSignerMock) SignDigest(digest Digest) (s1 Signature)
- func (mmSignDigest *DataSignerMock) SignDigestAfterCounter() uint64
- func (mmSignDigest *DataSignerMock) SignDigestBeforeCounter() uint64
- type DataSignerMockDigestBytesExpectation
- type DataSignerMockDigestBytesParams
- type DataSignerMockDigestBytesResults
- type DataSignerMockDigestDataExpectation
- type DataSignerMockDigestDataParams
- type DataSignerMockDigestDataResults
- type DataSignerMockGetDigestMethodExpectation
- type DataSignerMockGetDigestMethodResults
- type DataSignerMockGetDigestSizeExpectation
- type DataSignerMockGetDigestSizeResults
- type DataSignerMockGetSignatureMethodExpectation
- type DataSignerMockGetSignatureMethodResults
- type DataSignerMockGetSigningMethodExpectation
- type DataSignerMockGetSigningMethodResults
- type DataSignerMockNewHasherExpectation
- type DataSignerMockNewHasherResults
- type DataSignerMockSignDigestExpectation
- type DataSignerMockSignDigestParams
- type DataSignerMockSignDigestResults
- type Decrypter
- type Digest
- func (d Digest) AsDigestHolder() DigestHolder
- func (d Digest) Equals(o DigestHolder) bool
- func (d Digest) FixedByteSize() int
- func (d Digest) GetDigestMethod() DigestMethod
- func (d Digest) IsEmpty() bool
- func (d Digest) IsZero() bool
- func (d Digest) SignWith(signer DigestSigner) SignedDigestHolder
- func (d Digest) String() string
- type DigestFactory
- type DigestHasher
- func (v DigestHasher) DigestBytes(b []byte) DigestHasher
- func (v DigestHasher) DigestOf(w io.WriterTo) DigestHasher
- func (v DigestHasher) DigestReader(r io.Reader) DigestHasher
- func (v DigestHasher) SumToDigest() Digest
- func (v DigestHasher) SumToDigestBytes(b []byte)
- func (v DigestHasher) SumToSignature(signer DataSigner) Signature
- type DigestHolder
- type DigestHolderMock
- func (mmAsByteString *DigestHolderMock) AsByteString() (b1 longbits.ByteString)
- func (mmAsByteString *DigestHolderMock) AsByteStringAfterCounter() uint64
- func (mmAsByteString *DigestHolderMock) AsByteStringBeforeCounter() uint64
- func (mmCopyTo *DigestHolderMock) CopyTo(p []byte) (i1 int)
- func (mmCopyTo *DigestHolderMock) CopyToAfterCounter() uint64
- func (mmCopyTo *DigestHolderMock) CopyToBeforeCounter() uint64
- func (mmEquals *DigestHolderMock) Equals(other DigestHolder) (b1 bool)
- func (mmEquals *DigestHolderMock) EqualsAfterCounter() uint64
- func (mmEquals *DigestHolderMock) EqualsBeforeCounter() uint64
- func (mmFixedByteSize *DigestHolderMock) FixedByteSize() (i1 int)
- func (mmFixedByteSize *DigestHolderMock) FixedByteSizeAfterCounter() uint64
- func (mmFixedByteSize *DigestHolderMock) FixedByteSizeBeforeCounter() uint64
- func (mmFoldToUint64 *DigestHolderMock) FoldToUint64() (u1 uint64)
- func (mmFoldToUint64 *DigestHolderMock) FoldToUint64AfterCounter() uint64
- func (mmFoldToUint64 *DigestHolderMock) FoldToUint64BeforeCounter() uint64
- func (mmGetDigestMethod *DigestHolderMock) GetDigestMethod() (d1 DigestMethod)
- func (mmGetDigestMethod *DigestHolderMock) GetDigestMethodAfterCounter() uint64
- func (mmGetDigestMethod *DigestHolderMock) GetDigestMethodBeforeCounter() uint64
- func (m *DigestHolderMock) MinimockAsByteStringDone() bool
- func (m *DigestHolderMock) MinimockAsByteStringInspect()
- func (m *DigestHolderMock) MinimockCopyToDone() bool
- func (m *DigestHolderMock) MinimockCopyToInspect()
- func (m *DigestHolderMock) MinimockEqualsDone() bool
- func (m *DigestHolderMock) MinimockEqualsInspect()
- func (m *DigestHolderMock) MinimockFinish()
- func (m *DigestHolderMock) MinimockFixedByteSizeDone() bool
- func (m *DigestHolderMock) MinimockFixedByteSizeInspect()
- func (m *DigestHolderMock) MinimockFoldToUint64Done() bool
- func (m *DigestHolderMock) MinimockFoldToUint64Inspect()
- func (m *DigestHolderMock) MinimockGetDigestMethodDone() bool
- func (m *DigestHolderMock) MinimockGetDigestMethodInspect()
- func (m *DigestHolderMock) MinimockSignWithDone() bool
- func (m *DigestHolderMock) MinimockSignWithInspect()
- func (m *DigestHolderMock) MinimockWait(timeout mm_time.Duration)
- func (m *DigestHolderMock) MinimockWriteToDone() bool
- func (m *DigestHolderMock) MinimockWriteToInspect()
- func (mmSignWith *DigestHolderMock) SignWith(signer DigestSigner) (s1 SignedDigestHolder)
- func (mmSignWith *DigestHolderMock) SignWithAfterCounter() uint64
- func (mmSignWith *DigestHolderMock) SignWithBeforeCounter() uint64
- func (mmWriteTo *DigestHolderMock) WriteTo(w io.Writer) (n int64, err error)
- func (mmWriteTo *DigestHolderMock) WriteToAfterCounter() uint64
- func (mmWriteTo *DigestHolderMock) WriteToBeforeCounter() uint64
- type DigestHolderMockAsByteStringExpectation
- type DigestHolderMockAsByteStringResults
- type DigestHolderMockCopyToExpectation
- type DigestHolderMockCopyToParams
- type DigestHolderMockCopyToResults
- type DigestHolderMockEqualsExpectation
- type DigestHolderMockEqualsParams
- type DigestHolderMockEqualsResults
- type DigestHolderMockFixedByteSizeExpectation
- type DigestHolderMockFixedByteSizeResults
- type DigestHolderMockFoldToUint64Expectation
- type DigestHolderMockFoldToUint64Results
- type DigestHolderMockGetDigestMethodExpectation
- type DigestHolderMockGetDigestMethodResults
- type DigestHolderMockSignWithExpectation
- type DigestHolderMockSignWithParams
- type DigestHolderMockSignWithResults
- type DigestHolderMockWriteToExpectation
- type DigestHolderMockWriteToParams
- type DigestHolderMockWriteToResults
- type DigestMethod
- type DigestSigner
- type DigestSignerMock
- func (mmGetSigningMethod *DigestSignerMock) GetSigningMethod() (s1 SigningMethod)
- func (mmGetSigningMethod *DigestSignerMock) GetSigningMethodAfterCounter() uint64
- func (mmGetSigningMethod *DigestSignerMock) GetSigningMethodBeforeCounter() uint64
- func (m *DigestSignerMock) MinimockFinish()
- func (m *DigestSignerMock) MinimockGetSigningMethodDone() bool
- func (m *DigestSignerMock) MinimockGetSigningMethodInspect()
- func (m *DigestSignerMock) MinimockSignDigestDone() bool
- func (m *DigestSignerMock) MinimockSignDigestInspect()
- func (m *DigestSignerMock) MinimockWait(timeout mm_time.Duration)
- func (mmSignDigest *DigestSignerMock) SignDigest(digest Digest) (s1 Signature)
- func (mmSignDigest *DigestSignerMock) SignDigestAfterCounter() uint64
- func (mmSignDigest *DigestSignerMock) SignDigestBeforeCounter() uint64
- type DigestSignerMockGetSigningMethodExpectation
- type DigestSignerMockGetSigningMethodResults
- type DigestSignerMockSignDigestExpectation
- type DigestSignerMockSignDigestParams
- type DigestSignerMockSignDigestResults
- type Encrypter
- type ForkingDigester
- type ForkingDigesterMock
- func (mmAddNext *ForkingDigesterMock) AddNext(digest longbits.FoldableReader)
- func (mmAddNext *ForkingDigesterMock) AddNextAfterCounter() uint64
- func (mmAddNext *ForkingDigesterMock) AddNextBeforeCounter() uint64
- func (mmFinishSequence *ForkingDigesterMock) FinishSequence() (d1 Digest)
- func (mmFinishSequence *ForkingDigesterMock) FinishSequenceAfterCounter() uint64
- func (mmFinishSequence *ForkingDigesterMock) FinishSequenceBeforeCounter() uint64
- func (mmForkSequence *ForkingDigesterMock) ForkSequence() (f1 ForkingDigester)
- func (mmForkSequence *ForkingDigesterMock) ForkSequenceAfterCounter() uint64
- func (mmForkSequence *ForkingDigesterMock) ForkSequenceBeforeCounter() uint64
- func (mmGetDigestMethod *ForkingDigesterMock) GetDigestMethod() (d1 DigestMethod)
- func (mmGetDigestMethod *ForkingDigesterMock) GetDigestMethodAfterCounter() uint64
- func (mmGetDigestMethod *ForkingDigesterMock) GetDigestMethodBeforeCounter() uint64
- func (mmGetDigestSize *ForkingDigesterMock) GetDigestSize() (i1 int)
- func (mmGetDigestSize *ForkingDigesterMock) GetDigestSizeAfterCounter() uint64
- func (mmGetDigestSize *ForkingDigesterMock) GetDigestSizeBeforeCounter() uint64
- func (m *ForkingDigesterMock) MinimockAddNextDone() bool
- func (m *ForkingDigesterMock) MinimockAddNextInspect()
- func (m *ForkingDigesterMock) MinimockFinish()
- func (m *ForkingDigesterMock) MinimockFinishSequenceDone() bool
- func (m *ForkingDigesterMock) MinimockFinishSequenceInspect()
- func (m *ForkingDigesterMock) MinimockForkSequenceDone() bool
- func (m *ForkingDigesterMock) MinimockForkSequenceInspect()
- func (m *ForkingDigesterMock) MinimockGetDigestMethodDone() bool
- func (m *ForkingDigesterMock) MinimockGetDigestMethodInspect()
- func (m *ForkingDigesterMock) MinimockGetDigestSizeDone() bool
- func (m *ForkingDigesterMock) MinimockGetDigestSizeInspect()
- func (m *ForkingDigesterMock) MinimockWait(timeout mm_time.Duration)
- type ForkingDigesterMockAddNextExpectation
- type ForkingDigesterMockAddNextParams
- type ForkingDigesterMockFinishSequenceExpectation
- type ForkingDigesterMockFinishSequenceResults
- type ForkingDigesterMockForkSequenceExpectation
- type ForkingDigesterMockForkSequenceResults
- type ForkingDigesterMockGetDigestMethodExpectation
- type ForkingDigesterMockGetDigestMethodResults
- type ForkingDigesterMockGetDigestSizeExpectation
- type ForkingDigesterMockGetDigestSizeResults
- type HashingTeeReader
- func (v *HashingTeeReader) ReadAndVerifySignature(verifier DataSignatureVerifier) ([]byte, error)
- func (v *HashingTeeReader) ReadSignature(m SigningMethod) (Signature, error)
- func (v *HashingTeeReader) ReadSignatureBytes() ([]byte, error)
- func (v HashingTeeReader) SumToDigest() Digest
- func (v *HashingTeeReader) SumToDigestAndSignature(m SigningMethod) (d Digest, s Signature, err error)
- type KeyStoreFactory
- type KeyStoreFactoryMock
- func (mmCreatePublicKeyStore *KeyStoreFactoryMock) CreatePublicKeyStore(s1 SigningKeyHolder) (p1 PublicKeyStore)
- func (mmCreatePublicKeyStore *KeyStoreFactoryMock) CreatePublicKeyStoreAfterCounter() uint64
- func (mmCreatePublicKeyStore *KeyStoreFactoryMock) CreatePublicKeyStoreBeforeCounter() uint64
- func (m *KeyStoreFactoryMock) MinimockCreatePublicKeyStoreDone() bool
- func (m *KeyStoreFactoryMock) MinimockCreatePublicKeyStoreInspect()
- func (m *KeyStoreFactoryMock) MinimockFinish()
- func (m *KeyStoreFactoryMock) MinimockWait(timeout mm_time.Duration)
- type KeyStoreFactoryMockCreatePublicKeyStoreExpectation
- type KeyStoreFactoryMockCreatePublicKeyStoreParams
- type KeyStoreFactoryMockCreatePublicKeyStoreResults
- type PairDigester
- type PairDigesterMock
- func (mmDigestPair *PairDigesterMock) DigestPair(digest0 longbits.FoldableReader, digest1 longbits.FoldableReader) (d1 Digest)
- func (mmDigestPair *PairDigesterMock) DigestPairAfterCounter() uint64
- func (mmDigestPair *PairDigesterMock) DigestPairBeforeCounter() uint64
- func (mmGetDigestMethod *PairDigesterMock) GetDigestMethod() (d1 DigestMethod)
- func (mmGetDigestMethod *PairDigesterMock) GetDigestMethodAfterCounter() uint64
- func (mmGetDigestMethod *PairDigesterMock) GetDigestMethodBeforeCounter() uint64
- func (mmGetDigestSize *PairDigesterMock) GetDigestSize() (i1 int)
- func (mmGetDigestSize *PairDigesterMock) GetDigestSizeAfterCounter() uint64
- func (mmGetDigestSize *PairDigesterMock) GetDigestSizeBeforeCounter() uint64
- func (m *PairDigesterMock) MinimockDigestPairDone() bool
- func (m *PairDigesterMock) MinimockDigestPairInspect()
- func (m *PairDigesterMock) MinimockFinish()
- func (m *PairDigesterMock) MinimockGetDigestMethodDone() bool
- func (m *PairDigesterMock) MinimockGetDigestMethodInspect()
- func (m *PairDigesterMock) MinimockGetDigestSizeDone() bool
- func (m *PairDigesterMock) MinimockGetDigestSizeInspect()
- func (m *PairDigesterMock) MinimockWait(timeout mm_time.Duration)
- type PairDigesterMockDigestPairExpectation
- type PairDigesterMockDigestPairParams
- type PairDigesterMockDigestPairResults
- type PairDigesterMockGetDigestMethodExpectation
- type PairDigesterMockGetDigestMethodResults
- type PairDigesterMockGetDigestSizeExpectation
- type PairDigesterMockGetDigestSizeResults
- type PublicKeyStore
- type PublicKeyStoreMock
- func (m *PublicKeyStoreMock) MinimockFinish()
- func (m *PublicKeyStoreMock) MinimockPublicKeyStoreDone() bool
- func (m *PublicKeyStoreMock) MinimockPublicKeyStoreInspect()
- func (m *PublicKeyStoreMock) MinimockWait(timeout mm_time.Duration)
- func (mmPublicKeyStore *PublicKeyStoreMock) PublicKeyStore()
- func (mmPublicKeyStore *PublicKeyStoreMock) PublicKeyStoreAfterCounter() uint64
- func (mmPublicKeyStore *PublicKeyStoreMock) PublicKeyStoreBeforeCounter() uint64
- type PublicKeyStoreMockPublicKeyStoreExpectation
- type SecretKeyStore
- type SequenceDigester
- type SequenceDigesterMock
- func (mmAddNext *SequenceDigesterMock) AddNext(digest longbits.FoldableReader)
- func (mmAddNext *SequenceDigesterMock) AddNextAfterCounter() uint64
- func (mmAddNext *SequenceDigesterMock) AddNextBeforeCounter() uint64
- func (mmFinishSequence *SequenceDigesterMock) FinishSequence() (d1 Digest)
- func (mmFinishSequence *SequenceDigesterMock) FinishSequenceAfterCounter() uint64
- func (mmFinishSequence *SequenceDigesterMock) FinishSequenceBeforeCounter() uint64
- func (mmGetDigestMethod *SequenceDigesterMock) GetDigestMethod() (d1 DigestMethod)
- func (mmGetDigestMethod *SequenceDigesterMock) GetDigestMethodAfterCounter() uint64
- func (mmGetDigestMethod *SequenceDigesterMock) GetDigestMethodBeforeCounter() uint64
- func (mmGetDigestSize *SequenceDigesterMock) GetDigestSize() (i1 int)
- func (mmGetDigestSize *SequenceDigesterMock) GetDigestSizeAfterCounter() uint64
- func (mmGetDigestSize *SequenceDigesterMock) GetDigestSizeBeforeCounter() uint64
- func (m *SequenceDigesterMock) MinimockAddNextDone() bool
- func (m *SequenceDigesterMock) MinimockAddNextInspect()
- func (m *SequenceDigesterMock) MinimockFinish()
- func (m *SequenceDigesterMock) MinimockFinishSequenceDone() bool
- func (m *SequenceDigesterMock) MinimockFinishSequenceInspect()
- func (m *SequenceDigesterMock) MinimockGetDigestMethodDone() bool
- func (m *SequenceDigesterMock) MinimockGetDigestMethodInspect()
- func (m *SequenceDigesterMock) MinimockGetDigestSizeDone() bool
- func (m *SequenceDigesterMock) MinimockGetDigestSizeInspect()
- func (m *SequenceDigesterMock) MinimockWait(timeout mm_time.Duration)
- type SequenceDigesterMockAddNextExpectation
- type SequenceDigesterMockAddNextParams
- type SequenceDigesterMockFinishSequenceExpectation
- type SequenceDigesterMockFinishSequenceResults
- type SequenceDigesterMockGetDigestMethodExpectation
- type SequenceDigesterMockGetDigestMethodResults
- type SequenceDigesterMockGetDigestSizeExpectation
- type SequenceDigesterMockGetDigestSizeResults
- type SequenceSigner
- type Signature
- func (p Signature) AsSignatureHolder() SignatureHolder
- func (p Signature) CopyOfSignature() Signature
- func (p Signature) Equals(o SignatureHolder) bool
- func (p Signature) FixedByteSize() int
- func (p Signature) GetSignatureMethod() SignatureMethod
- func (p Signature) IsEmpty() bool
- func (p Signature) String() string
- type SignatureHolder
- type SignatureHolderMock
- func (mmAsByteString *SignatureHolderMock) AsByteString() (b1 longbits.ByteString)
- func (mmAsByteString *SignatureHolderMock) AsByteStringAfterCounter() uint64
- func (mmAsByteString *SignatureHolderMock) AsByteStringBeforeCounter() uint64
- func (mmCopyTo *SignatureHolderMock) CopyTo(p []byte) (i1 int)
- func (mmCopyTo *SignatureHolderMock) CopyToAfterCounter() uint64
- func (mmCopyTo *SignatureHolderMock) CopyToBeforeCounter() uint64
- func (mmEquals *SignatureHolderMock) Equals(other SignatureHolder) (b1 bool)
- func (mmEquals *SignatureHolderMock) EqualsAfterCounter() uint64
- func (mmEquals *SignatureHolderMock) EqualsBeforeCounter() uint64
- func (mmFixedByteSize *SignatureHolderMock) FixedByteSize() (i1 int)
- func (mmFixedByteSize *SignatureHolderMock) FixedByteSizeAfterCounter() uint64
- func (mmFixedByteSize *SignatureHolderMock) FixedByteSizeBeforeCounter() uint64
- func (mmFoldToUint64 *SignatureHolderMock) FoldToUint64() (u1 uint64)
- func (mmFoldToUint64 *SignatureHolderMock) FoldToUint64AfterCounter() uint64
- func (mmFoldToUint64 *SignatureHolderMock) FoldToUint64BeforeCounter() uint64
- func (mmGetSignatureMethod *SignatureHolderMock) GetSignatureMethod() (s1 SignatureMethod)
- func (mmGetSignatureMethod *SignatureHolderMock) GetSignatureMethodAfterCounter() uint64
- func (mmGetSignatureMethod *SignatureHolderMock) GetSignatureMethodBeforeCounter() uint64
- func (m *SignatureHolderMock) MinimockAsByteStringDone() bool
- func (m *SignatureHolderMock) MinimockAsByteStringInspect()
- func (m *SignatureHolderMock) MinimockCopyToDone() bool
- func (m *SignatureHolderMock) MinimockCopyToInspect()
- func (m *SignatureHolderMock) MinimockEqualsDone() bool
- func (m *SignatureHolderMock) MinimockEqualsInspect()
- func (m *SignatureHolderMock) MinimockFinish()
- func (m *SignatureHolderMock) MinimockFixedByteSizeDone() bool
- func (m *SignatureHolderMock) MinimockFixedByteSizeInspect()
- func (m *SignatureHolderMock) MinimockFoldToUint64Done() bool
- func (m *SignatureHolderMock) MinimockFoldToUint64Inspect()
- func (m *SignatureHolderMock) MinimockGetSignatureMethodDone() bool
- func (m *SignatureHolderMock) MinimockGetSignatureMethodInspect()
- func (m *SignatureHolderMock) MinimockWait(timeout mm_time.Duration)
- func (m *SignatureHolderMock) MinimockWriteToDone() bool
- func (m *SignatureHolderMock) MinimockWriteToInspect()
- func (mmWriteTo *SignatureHolderMock) WriteTo(w io.Writer) (n int64, err error)
- func (mmWriteTo *SignatureHolderMock) WriteToAfterCounter() uint64
- func (mmWriteTo *SignatureHolderMock) WriteToBeforeCounter() uint64
- type SignatureHolderMockAsByteStringExpectation
- type SignatureHolderMockAsByteStringResults
- type SignatureHolderMockCopyToExpectation
- type SignatureHolderMockCopyToParams
- type SignatureHolderMockCopyToResults
- type SignatureHolderMockEqualsExpectation
- type SignatureHolderMockEqualsParams
- type SignatureHolderMockEqualsResults
- type SignatureHolderMockFixedByteSizeExpectation
- type SignatureHolderMockFixedByteSizeResults
- type SignatureHolderMockFoldToUint64Expectation
- type SignatureHolderMockFoldToUint64Results
- type SignatureHolderMockGetSignatureMethodExpectation
- type SignatureHolderMockGetSignatureMethodResults
- type SignatureHolderMockWriteToExpectation
- type SignatureHolderMockWriteToParams
- type SignatureHolderMockWriteToResults
- type SignatureMethod
- type SignatureVerifier
- type SignatureVerifierFactory
- type SignatureVerifierFactoryMock
- func (mmCreateSignatureVerifierWithPKS *SignatureVerifierFactoryMock) CreateSignatureVerifierWithPKS(p1 PublicKeyStore) (s1 SignatureVerifier)
- func (mmCreateSignatureVerifierWithPKS *SignatureVerifierFactoryMock) CreateSignatureVerifierWithPKSAfterCounter() uint64
- func (mmCreateSignatureVerifierWithPKS *SignatureVerifierFactoryMock) CreateSignatureVerifierWithPKSBeforeCounter() uint64
- func (m *SignatureVerifierFactoryMock) MinimockCreateSignatureVerifierWithPKSDone() bool
- func (m *SignatureVerifierFactoryMock) MinimockCreateSignatureVerifierWithPKSInspect()
- func (m *SignatureVerifierFactoryMock) MinimockFinish()
- func (m *SignatureVerifierFactoryMock) MinimockWait(timeout mm_time.Duration)
- type SignatureVerifierFactoryMockCreateSignatureVerifierWithPKSExpectation
- type SignatureVerifierFactoryMockCreateSignatureVerifierWithPKSParams
- type SignatureVerifierFactoryMockCreateSignatureVerifierWithPKSResults
- type SignatureVerifierMock
- func (mmGetDefaultSigningMethod *SignatureVerifierMock) GetDefaultSigningMethod() (s1 SigningMethod)
- func (mmGetDefaultSigningMethod *SignatureVerifierMock) GetDefaultSigningMethodAfterCounter() uint64
- func (mmGetDefaultSigningMethod *SignatureVerifierMock) GetDefaultSigningMethodBeforeCounter() uint64
- func (mmIsDigestMethodSupported *SignatureVerifierMock) IsDigestMethodSupported(m DigestMethod) (b1 bool)
- func (mmIsDigestMethodSupported *SignatureVerifierMock) IsDigestMethodSupportedAfterCounter() uint64
- func (mmIsDigestMethodSupported *SignatureVerifierMock) IsDigestMethodSupportedBeforeCounter() uint64
- func (mmIsSigningMethodSupported *SignatureVerifierMock) IsSigningMethodSupported(m SigningMethod) (b1 bool)
- func (mmIsSigningMethodSupported *SignatureVerifierMock) IsSigningMethodSupportedAfterCounter() uint64
- func (mmIsSigningMethodSupported *SignatureVerifierMock) IsSigningMethodSupportedBeforeCounter() uint64
- func (mmIsValidDataSignature *SignatureVerifierMock) IsValidDataSignature(data io.Reader, signature SignatureHolder) (b1 bool)
- func (mmIsValidDataSignature *SignatureVerifierMock) IsValidDataSignatureAfterCounter() uint64
- func (mmIsValidDataSignature *SignatureVerifierMock) IsValidDataSignatureBeforeCounter() uint64
- func (mmIsValidDigestSignature *SignatureVerifierMock) IsValidDigestSignature(digest DigestHolder, signature SignatureHolder) (b1 bool)
- func (mmIsValidDigestSignature *SignatureVerifierMock) IsValidDigestSignatureAfterCounter() uint64
- func (mmIsValidDigestSignature *SignatureVerifierMock) IsValidDigestSignatureBeforeCounter() uint64
- func (m *SignatureVerifierMock) MinimockFinish()
- func (m *SignatureVerifierMock) MinimockGetDefaultSigningMethodDone() bool
- func (m *SignatureVerifierMock) MinimockGetDefaultSigningMethodInspect()
- func (m *SignatureVerifierMock) MinimockIsDigestMethodSupportedDone() bool
- func (m *SignatureVerifierMock) MinimockIsDigestMethodSupportedInspect()
- func (m *SignatureVerifierMock) MinimockIsSigningMethodSupportedDone() bool
- func (m *SignatureVerifierMock) MinimockIsSigningMethodSupportedInspect()
- func (m *SignatureVerifierMock) MinimockIsValidDataSignatureDone() bool
- func (m *SignatureVerifierMock) MinimockIsValidDataSignatureInspect()
- func (m *SignatureVerifierMock) MinimockIsValidDigestSignatureDone() bool
- func (m *SignatureVerifierMock) MinimockIsValidDigestSignatureInspect()
- func (m *SignatureVerifierMock) MinimockWait(timeout mm_time.Duration)
- type SignatureVerifierMockGetDefaultSigningMethodExpectation
- type SignatureVerifierMockGetDefaultSigningMethodResults
- type SignatureVerifierMockIsDigestMethodSupportedExpectation
- type SignatureVerifierMockIsDigestMethodSupportedParams
- type SignatureVerifierMockIsDigestMethodSupportedResults
- type SignatureVerifierMockIsSigningMethodSupportedExpectation
- type SignatureVerifierMockIsSigningMethodSupportedParams
- type SignatureVerifierMockIsSigningMethodSupportedResults
- type SignatureVerifierMockIsValidDataSignatureExpectation
- type SignatureVerifierMockIsValidDataSignatureParams
- type SignatureVerifierMockIsValidDataSignatureResults
- type SignatureVerifierMockIsValidDigestSignatureExpectation
- type SignatureVerifierMockIsValidDigestSignatureParams
- type SignatureVerifierMockIsValidDigestSignatureResults
- type SignedData
- type SignedDigest
- func (r SignedDigest) AsSignedDigestHolder() SignedDigestHolder
- func (r SignedDigest) Equals(o SignedDigestHolder) bool
- func (r SignedDigest) GetDigest() Digest
- func (r SignedDigest) GetDigestHolder() DigestHolder
- func (r SignedDigest) GetSignature() Signature
- func (r SignedDigest) GetSignatureHolder() SignatureHolder
- func (r SignedDigest) GetSignatureMethod() SignatureMethod
- func (r SignedDigest) IsEmpty() bool
- func (r SignedDigest) IsVerifiableBy(v SignatureVerifier) bool
- func (r SignedDigest) String() string
- func (r SignedDigest) VerifyWith(v SignatureVerifier) bool
- type SignedDigestHolder
- type SignedEvidenceHolder
- type SigningKey
- type SigningKeyHolder
- type SigningKeyHolderMock
- func (mmAsByteString *SigningKeyHolderMock) AsByteString() (b1 longbits.ByteString)
- func (mmAsByteString *SigningKeyHolderMock) AsByteStringAfterCounter() uint64
- func (mmAsByteString *SigningKeyHolderMock) AsByteStringBeforeCounter() uint64
- func (mmCopyTo *SigningKeyHolderMock) CopyTo(p []byte) (i1 int)
- func (mmCopyTo *SigningKeyHolderMock) CopyToAfterCounter() uint64
- func (mmCopyTo *SigningKeyHolderMock) CopyToBeforeCounter() uint64
- func (mmEquals *SigningKeyHolderMock) Equals(other SigningKeyHolder) (b1 bool)
- func (mmEquals *SigningKeyHolderMock) EqualsAfterCounter() uint64
- func (mmEquals *SigningKeyHolderMock) EqualsBeforeCounter() uint64
- func (mmFixedByteSize *SigningKeyHolderMock) FixedByteSize() (i1 int)
- func (mmFixedByteSize *SigningKeyHolderMock) FixedByteSizeAfterCounter() uint64
- func (mmFixedByteSize *SigningKeyHolderMock) FixedByteSizeBeforeCounter() uint64
- func (mmFoldToUint64 *SigningKeyHolderMock) FoldToUint64() (u1 uint64)
- func (mmFoldToUint64 *SigningKeyHolderMock) FoldToUint64AfterCounter() uint64
- func (mmFoldToUint64 *SigningKeyHolderMock) FoldToUint64BeforeCounter() uint64
- func (mmGetSigningKeyType *SigningKeyHolderMock) GetSigningKeyType() (s1 SigningKeyType)
- func (mmGetSigningKeyType *SigningKeyHolderMock) GetSigningKeyTypeAfterCounter() uint64
- func (mmGetSigningKeyType *SigningKeyHolderMock) GetSigningKeyTypeBeforeCounter() uint64
- func (mmGetSigningMethod *SigningKeyHolderMock) GetSigningMethod() (s1 SigningMethod)
- func (mmGetSigningMethod *SigningKeyHolderMock) GetSigningMethodAfterCounter() uint64
- func (mmGetSigningMethod *SigningKeyHolderMock) GetSigningMethodBeforeCounter() uint64
- func (m *SigningKeyHolderMock) MinimockAsByteStringDone() bool
- func (m *SigningKeyHolderMock) MinimockAsByteStringInspect()
- func (m *SigningKeyHolderMock) MinimockCopyToDone() bool
- func (m *SigningKeyHolderMock) MinimockCopyToInspect()
- func (m *SigningKeyHolderMock) MinimockEqualsDone() bool
- func (m *SigningKeyHolderMock) MinimockEqualsInspect()
- func (m *SigningKeyHolderMock) MinimockFinish()
- func (m *SigningKeyHolderMock) MinimockFixedByteSizeDone() bool
- func (m *SigningKeyHolderMock) MinimockFixedByteSizeInspect()
- func (m *SigningKeyHolderMock) MinimockFoldToUint64Done() bool
- func (m *SigningKeyHolderMock) MinimockFoldToUint64Inspect()
- func (m *SigningKeyHolderMock) MinimockGetSigningKeyTypeDone() bool
- func (m *SigningKeyHolderMock) MinimockGetSigningKeyTypeInspect()
- func (m *SigningKeyHolderMock) MinimockGetSigningMethodDone() bool
- func (m *SigningKeyHolderMock) MinimockGetSigningMethodInspect()
- func (m *SigningKeyHolderMock) MinimockWait(timeout mm_time.Duration)
- func (m *SigningKeyHolderMock) MinimockWriteToDone() bool
- func (m *SigningKeyHolderMock) MinimockWriteToInspect()
- func (mmWriteTo *SigningKeyHolderMock) WriteTo(w io.Writer) (n int64, err error)
- func (mmWriteTo *SigningKeyHolderMock) WriteToAfterCounter() uint64
- func (mmWriteTo *SigningKeyHolderMock) WriteToBeforeCounter() uint64
- type SigningKeyHolderMockAsByteStringExpectation
- type SigningKeyHolderMockAsByteStringResults
- type SigningKeyHolderMockCopyToExpectation
- type SigningKeyHolderMockCopyToParams
- type SigningKeyHolderMockCopyToResults
- type SigningKeyHolderMockEqualsExpectation
- type SigningKeyHolderMockEqualsParams
- type SigningKeyHolderMockEqualsResults
- type SigningKeyHolderMockFixedByteSizeExpectation
- type SigningKeyHolderMockFixedByteSizeResults
- type SigningKeyHolderMockFoldToUint64Expectation
- type SigningKeyHolderMockFoldToUint64Results
- type SigningKeyHolderMockGetSigningKeyTypeExpectation
- type SigningKeyHolderMockGetSigningKeyTypeResults
- type SigningKeyHolderMockGetSigningMethodExpectation
- type SigningKeyHolderMockGetSigningMethodResults
- type SigningKeyHolderMockWriteToExpectation
- type SigningKeyHolderMockWriteToParams
- type SigningKeyHolderMockWriteToResults
- type SigningKeyType
- type SigningMethod
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ByteDigestOfHash ¶
func ByteDigestOfHash(digester BasicDigester, hasher hash.Hash) []byte
func HashToBytes ¶
Types ¶
type BasicDigester ¶
type BasicDigester interface { GetDigestMethod() DigestMethod GetDigestSize() int }
type CertificateHolder ¶
type CertificateHolder interface { GetPublicKey() SigningKeyHolder IsValidForHostAddress(HostAddress string) bool }
type CertificateHolderMock ¶
type CertificateHolderMock struct { GetPublicKeyMock mCertificateHolderMockGetPublicKey IsValidForHostAddressMock mCertificateHolderMockIsValidForHostAddress // contains filtered or unexported fields }
CertificateHolderMock implements CertificateHolder
func NewCertificateHolderMock ¶
func NewCertificateHolderMock(t minimock.Tester) *CertificateHolderMock
NewCertificateHolderMock returns a mock for CertificateHolder
func (*CertificateHolderMock) GetPublicKey ¶
func (mmGetPublicKey *CertificateHolderMock) GetPublicKey() (s1 SigningKeyHolder)
GetPublicKey implements CertificateHolder
func (*CertificateHolderMock) GetPublicKeyAfterCounter ¶
func (mmGetPublicKey *CertificateHolderMock) GetPublicKeyAfterCounter() uint64
GetPublicKeyAfterCounter returns a count of finished CertificateHolderMock.GetPublicKey invocations
func (*CertificateHolderMock) GetPublicKeyBeforeCounter ¶
func (mmGetPublicKey *CertificateHolderMock) GetPublicKeyBeforeCounter() uint64
GetPublicKeyBeforeCounter returns a count of CertificateHolderMock.GetPublicKey invocations
func (*CertificateHolderMock) IsValidForHostAddress ¶
func (mmIsValidForHostAddress *CertificateHolderMock) IsValidForHostAddress(HostAddress string) (b1 bool)
IsValidForHostAddress implements CertificateHolder
func (*CertificateHolderMock) IsValidForHostAddressAfterCounter ¶
func (mmIsValidForHostAddress *CertificateHolderMock) IsValidForHostAddressAfterCounter() uint64
IsValidForHostAddressAfterCounter returns a count of finished CertificateHolderMock.IsValidForHostAddress invocations
func (*CertificateHolderMock) IsValidForHostAddressBeforeCounter ¶
func (mmIsValidForHostAddress *CertificateHolderMock) IsValidForHostAddressBeforeCounter() uint64
IsValidForHostAddressBeforeCounter returns a count of CertificateHolderMock.IsValidForHostAddress invocations
func (*CertificateHolderMock) MinimockFinish ¶
func (m *CertificateHolderMock) MinimockFinish()
MinimockFinish checks that all mocked methods have been called the expected number of times
func (*CertificateHolderMock) MinimockGetPublicKeyDone ¶
func (m *CertificateHolderMock) MinimockGetPublicKeyDone() bool
MinimockGetPublicKeyDone returns true if the count of the GetPublicKey invocations corresponds the number of defined expectations
func (*CertificateHolderMock) MinimockGetPublicKeyInspect ¶
func (m *CertificateHolderMock) MinimockGetPublicKeyInspect()
MinimockGetPublicKeyInspect logs each unmet expectation
func (*CertificateHolderMock) MinimockIsValidForHostAddressDone ¶
func (m *CertificateHolderMock) MinimockIsValidForHostAddressDone() bool
MinimockIsValidForHostAddressDone returns true if the count of the IsValidForHostAddress invocations corresponds the number of defined expectations
func (*CertificateHolderMock) MinimockIsValidForHostAddressInspect ¶
func (m *CertificateHolderMock) MinimockIsValidForHostAddressInspect()
MinimockIsValidForHostAddressInspect logs each unmet expectation
func (*CertificateHolderMock) MinimockWait ¶
func (m *CertificateHolderMock) MinimockWait(timeout mm_time.Duration)
MinimockWait waits for all mocked methods to be called the expected number of times
type CertificateHolderMockGetPublicKeyExpectation ¶
type CertificateHolderMockGetPublicKeyExpectation struct { Counter uint64 // contains filtered or unexported fields }
CertificateHolderMockGetPublicKeyExpectation specifies expectation struct of the CertificateHolder.GetPublicKey
type CertificateHolderMockGetPublicKeyResults ¶
type CertificateHolderMockGetPublicKeyResults struct {
// contains filtered or unexported fields
}
CertificateHolderMockGetPublicKeyResults contains results of the CertificateHolder.GetPublicKey
type CertificateHolderMockIsValidForHostAddressExpectation ¶
type CertificateHolderMockIsValidForHostAddressExpectation struct { Counter uint64 // contains filtered or unexported fields }
CertificateHolderMockIsValidForHostAddressExpectation specifies expectation struct of the CertificateHolder.IsValidForHostAddress
func (*CertificateHolderMockIsValidForHostAddressExpectation) Then ¶
func (e *CertificateHolderMockIsValidForHostAddressExpectation) Then(b1 bool) *CertificateHolderMock
Then sets up CertificateHolder.IsValidForHostAddress return parameters for the expectation previously defined by the When method
type CertificateHolderMockIsValidForHostAddressParams ¶
type CertificateHolderMockIsValidForHostAddressParams struct {
HostAddress string
}
CertificateHolderMockIsValidForHostAddressParams contains parameters of the CertificateHolder.IsValidForHostAddress
type CertificateHolderMockIsValidForHostAddressResults ¶
type CertificateHolderMockIsValidForHostAddressResults struct {
// contains filtered or unexported fields
}
CertificateHolderMockIsValidForHostAddressResults contains results of the CertificateHolder.IsValidForHostAddress
type DataDigester ¶
type DataDigester interface { BasicDigester // deprecated DigestData(io.Reader) Digest DigestBytes([]byte) Digest NewHasher() DigestHasher }
type DataDigesterMock ¶
type DataDigesterMock struct { DigestBytesMock mDataDigesterMockDigestBytes DigestDataMock mDataDigesterMockDigestData GetDigestMethodMock mDataDigesterMockGetDigestMethod GetDigestSizeMock mDataDigesterMockGetDigestSize NewHasherMock mDataDigesterMockNewHasher // contains filtered or unexported fields }
DataDigesterMock implements DataDigester
func NewDataDigesterMock ¶
func NewDataDigesterMock(t minimock.Tester) *DataDigesterMock
NewDataDigesterMock returns a mock for DataDigester
func (*DataDigesterMock) DigestBytes ¶
func (mmDigestBytes *DataDigesterMock) DigestBytes(ba1 []byte) (d1 Digest)
DigestBytes implements DataDigester
func (*DataDigesterMock) DigestBytesAfterCounter ¶
func (mmDigestBytes *DataDigesterMock) DigestBytesAfterCounter() uint64
DigestBytesAfterCounter returns a count of finished DataDigesterMock.DigestBytes invocations
func (*DataDigesterMock) DigestBytesBeforeCounter ¶
func (mmDigestBytes *DataDigesterMock) DigestBytesBeforeCounter() uint64
DigestBytesBeforeCounter returns a count of DataDigesterMock.DigestBytes invocations
func (*DataDigesterMock) DigestData ¶
func (mmDigestData *DataDigesterMock) DigestData(r1 io.Reader) (d1 Digest)
DigestData implements DataDigester
func (*DataDigesterMock) DigestDataAfterCounter ¶
func (mmDigestData *DataDigesterMock) DigestDataAfterCounter() uint64
DigestDataAfterCounter returns a count of finished DataDigesterMock.DigestData invocations
func (*DataDigesterMock) DigestDataBeforeCounter ¶
func (mmDigestData *DataDigesterMock) DigestDataBeforeCounter() uint64
DigestDataBeforeCounter returns a count of DataDigesterMock.DigestData invocations
func (*DataDigesterMock) GetDigestMethod ¶
func (mmGetDigestMethod *DataDigesterMock) GetDigestMethod() (d1 DigestMethod)
GetDigestMethod implements DataDigester
func (*DataDigesterMock) GetDigestMethodAfterCounter ¶
func (mmGetDigestMethod *DataDigesterMock) GetDigestMethodAfterCounter() uint64
GetDigestMethodAfterCounter returns a count of finished DataDigesterMock.GetDigestMethod invocations
func (*DataDigesterMock) GetDigestMethodBeforeCounter ¶
func (mmGetDigestMethod *DataDigesterMock) GetDigestMethodBeforeCounter() uint64
GetDigestMethodBeforeCounter returns a count of DataDigesterMock.GetDigestMethod invocations
func (*DataDigesterMock) GetDigestSize ¶
func (mmGetDigestSize *DataDigesterMock) GetDigestSize() (i1 int)
GetDigestSize implements DataDigester
func (*DataDigesterMock) GetDigestSizeAfterCounter ¶
func (mmGetDigestSize *DataDigesterMock) GetDigestSizeAfterCounter() uint64
GetDigestSizeAfterCounter returns a count of finished DataDigesterMock.GetDigestSize invocations
func (*DataDigesterMock) GetDigestSizeBeforeCounter ¶
func (mmGetDigestSize *DataDigesterMock) GetDigestSizeBeforeCounter() uint64
GetDigestSizeBeforeCounter returns a count of DataDigesterMock.GetDigestSize invocations
func (*DataDigesterMock) MinimockDigestBytesDone ¶
func (m *DataDigesterMock) MinimockDigestBytesDone() bool
MinimockDigestBytesDone returns true if the count of the DigestBytes invocations corresponds the number of defined expectations
func (*DataDigesterMock) MinimockDigestBytesInspect ¶
func (m *DataDigesterMock) MinimockDigestBytesInspect()
MinimockDigestBytesInspect logs each unmet expectation
func (*DataDigesterMock) MinimockDigestDataDone ¶
func (m *DataDigesterMock) MinimockDigestDataDone() bool
MinimockDigestDataDone returns true if the count of the DigestData invocations corresponds the number of defined expectations
func (*DataDigesterMock) MinimockDigestDataInspect ¶
func (m *DataDigesterMock) MinimockDigestDataInspect()
MinimockDigestDataInspect logs each unmet expectation
func (*DataDigesterMock) MinimockFinish ¶
func (m *DataDigesterMock) MinimockFinish()
MinimockFinish checks that all mocked methods have been called the expected number of times
func (*DataDigesterMock) MinimockGetDigestMethodDone ¶
func (m *DataDigesterMock) MinimockGetDigestMethodDone() bool
MinimockGetDigestMethodDone returns true if the count of the GetDigestMethod invocations corresponds the number of defined expectations
func (*DataDigesterMock) MinimockGetDigestMethodInspect ¶
func (m *DataDigesterMock) MinimockGetDigestMethodInspect()
MinimockGetDigestMethodInspect logs each unmet expectation
func (*DataDigesterMock) MinimockGetDigestSizeDone ¶
func (m *DataDigesterMock) MinimockGetDigestSizeDone() bool
MinimockGetDigestSizeDone returns true if the count of the GetDigestSize invocations corresponds the number of defined expectations
func (*DataDigesterMock) MinimockGetDigestSizeInspect ¶
func (m *DataDigesterMock) MinimockGetDigestSizeInspect()
MinimockGetDigestSizeInspect logs each unmet expectation
func (*DataDigesterMock) MinimockNewHasherDone ¶
func (m *DataDigesterMock) MinimockNewHasherDone() bool
MinimockNewHasherDone returns true if the count of the NewHasher invocations corresponds the number of defined expectations
func (*DataDigesterMock) MinimockNewHasherInspect ¶
func (m *DataDigesterMock) MinimockNewHasherInspect()
MinimockNewHasherInspect logs each unmet expectation
func (*DataDigesterMock) MinimockWait ¶
func (m *DataDigesterMock) MinimockWait(timeout mm_time.Duration)
MinimockWait waits for all mocked methods to be called the expected number of times
func (*DataDigesterMock) NewHasher ¶
func (mmNewHasher *DataDigesterMock) NewHasher() (d1 DigestHasher)
NewHasher implements DataDigester
func (*DataDigesterMock) NewHasherAfterCounter ¶
func (mmNewHasher *DataDigesterMock) NewHasherAfterCounter() uint64
NewHasherAfterCounter returns a count of finished DataDigesterMock.NewHasher invocations
func (*DataDigesterMock) NewHasherBeforeCounter ¶
func (mmNewHasher *DataDigesterMock) NewHasherBeforeCounter() uint64
NewHasherBeforeCounter returns a count of DataDigesterMock.NewHasher invocations
type DataDigesterMockDigestBytesExpectation ¶
type DataDigesterMockDigestBytesExpectation struct { Counter uint64 // contains filtered or unexported fields }
DataDigesterMockDigestBytesExpectation specifies expectation struct of the DataDigester.DigestBytes
func (*DataDigesterMockDigestBytesExpectation) Then ¶
func (e *DataDigesterMockDigestBytesExpectation) Then(d1 Digest) *DataDigesterMock
Then sets up DataDigester.DigestBytes return parameters for the expectation previously defined by the When method
type DataDigesterMockDigestBytesParams ¶
type DataDigesterMockDigestBytesParams struct {
// contains filtered or unexported fields
}
DataDigesterMockDigestBytesParams contains parameters of the DataDigester.DigestBytes
type DataDigesterMockDigestBytesResults ¶
type DataDigesterMockDigestBytesResults struct {
// contains filtered or unexported fields
}
DataDigesterMockDigestBytesResults contains results of the DataDigester.DigestBytes
type DataDigesterMockDigestDataExpectation ¶
type DataDigesterMockDigestDataExpectation struct { Counter uint64 // contains filtered or unexported fields }
DataDigesterMockDigestDataExpectation specifies expectation struct of the DataDigester.DigestData
func (*DataDigesterMockDigestDataExpectation) Then ¶
func (e *DataDigesterMockDigestDataExpectation) Then(d1 Digest) *DataDigesterMock
Then sets up DataDigester.DigestData return parameters for the expectation previously defined by the When method
type DataDigesterMockDigestDataParams ¶
type DataDigesterMockDigestDataParams struct {
// contains filtered or unexported fields
}
DataDigesterMockDigestDataParams contains parameters of the DataDigester.DigestData
type DataDigesterMockDigestDataResults ¶
type DataDigesterMockDigestDataResults struct {
// contains filtered or unexported fields
}
DataDigesterMockDigestDataResults contains results of the DataDigester.DigestData
type DataDigesterMockGetDigestMethodExpectation ¶
type DataDigesterMockGetDigestMethodExpectation struct { Counter uint64 // contains filtered or unexported fields }
DataDigesterMockGetDigestMethodExpectation specifies expectation struct of the DataDigester.GetDigestMethod
type DataDigesterMockGetDigestMethodResults ¶
type DataDigesterMockGetDigestMethodResults struct {
// contains filtered or unexported fields
}
DataDigesterMockGetDigestMethodResults contains results of the DataDigester.GetDigestMethod
type DataDigesterMockGetDigestSizeExpectation ¶
type DataDigesterMockGetDigestSizeExpectation struct { Counter uint64 // contains filtered or unexported fields }
DataDigesterMockGetDigestSizeExpectation specifies expectation struct of the DataDigester.GetDigestSize
type DataDigesterMockGetDigestSizeResults ¶
type DataDigesterMockGetDigestSizeResults struct {
// contains filtered or unexported fields
}
DataDigesterMockGetDigestSizeResults contains results of the DataDigester.GetDigestSize
type DataDigesterMockNewHasherExpectation ¶
type DataDigesterMockNewHasherExpectation struct { Counter uint64 // contains filtered or unexported fields }
DataDigesterMockNewHasherExpectation specifies expectation struct of the DataDigester.NewHasher
type DataDigesterMockNewHasherResults ¶
type DataDigesterMockNewHasherResults struct {
// contains filtered or unexported fields
}
DataDigesterMockNewHasherResults contains results of the DataDigester.NewHasher
type DataSignatureVerifier ¶
type DataSignatureVerifier interface { DataDigester GetDefaultSignatureMethod() SignatureMethod SignatureVerifier }
func AsDataSignatureVerifier ¶
func AsDataSignatureVerifier(dd DataDigester, sv SignatureVerifier, defSigning SigningMethod) DataSignatureVerifier
type DataSignatureVerifierFactory ¶
type DataSignatureVerifierFactory interface { IsSignatureKeySupported(SigningKey) bool CreateDataSignatureVerifier(SigningKey) DataSignatureVerifier }
type DataSigner ¶
type DataSigner interface { DigestSigner DataDigester GetSignatureMethod() SignatureMethod }
func AsDataSigner ¶
func AsDataSigner(dd DataDigester, ds DigestSigner) DataSigner
type DataSignerFactory ¶
type DataSignerFactory interface { IsSignatureKeySupported(SigningKey) bool CreateDataSigner(SigningKey) DataSigner }
type DataSignerMock ¶
type DataSignerMock struct { DigestBytesMock mDataSignerMockDigestBytes DigestDataMock mDataSignerMockDigestData GetDigestMethodMock mDataSignerMockGetDigestMethod GetDigestSizeMock mDataSignerMockGetDigestSize GetSignatureMethodMock mDataSignerMockGetSignatureMethod GetSigningMethodMock mDataSignerMockGetSigningMethod NewHasherMock mDataSignerMockNewHasher SignDigestMock mDataSignerMockSignDigest // contains filtered or unexported fields }
DataSignerMock implements DataSigner
func NewDataSignerMock ¶
func NewDataSignerMock(t minimock.Tester) *DataSignerMock
NewDataSignerMock returns a mock for DataSigner
func (*DataSignerMock) DigestBytes ¶
func (mmDigestBytes *DataSignerMock) DigestBytes(ba1 []byte) (d1 Digest)
DigestBytes implements DataSigner
func (*DataSignerMock) DigestBytesAfterCounter ¶
func (mmDigestBytes *DataSignerMock) DigestBytesAfterCounter() uint64
DigestBytesAfterCounter returns a count of finished DataSignerMock.DigestBytes invocations
func (*DataSignerMock) DigestBytesBeforeCounter ¶
func (mmDigestBytes *DataSignerMock) DigestBytesBeforeCounter() uint64
DigestBytesBeforeCounter returns a count of DataSignerMock.DigestBytes invocations
func (*DataSignerMock) DigestData ¶
func (mmDigestData *DataSignerMock) DigestData(r1 io.Reader) (d1 Digest)
DigestData implements DataSigner
func (*DataSignerMock) DigestDataAfterCounter ¶
func (mmDigestData *DataSignerMock) DigestDataAfterCounter() uint64
DigestDataAfterCounter returns a count of finished DataSignerMock.DigestData invocations
func (*DataSignerMock) DigestDataBeforeCounter ¶
func (mmDigestData *DataSignerMock) DigestDataBeforeCounter() uint64
DigestDataBeforeCounter returns a count of DataSignerMock.DigestData invocations
func (*DataSignerMock) GetDigestMethod ¶
func (mmGetDigestMethod *DataSignerMock) GetDigestMethod() (d1 DigestMethod)
GetDigestMethod implements DataSigner
func (*DataSignerMock) GetDigestMethodAfterCounter ¶
func (mmGetDigestMethod *DataSignerMock) GetDigestMethodAfterCounter() uint64
GetDigestMethodAfterCounter returns a count of finished DataSignerMock.GetDigestMethod invocations
func (*DataSignerMock) GetDigestMethodBeforeCounter ¶
func (mmGetDigestMethod *DataSignerMock) GetDigestMethodBeforeCounter() uint64
GetDigestMethodBeforeCounter returns a count of DataSignerMock.GetDigestMethod invocations
func (*DataSignerMock) GetDigestSize ¶
func (mmGetDigestSize *DataSignerMock) GetDigestSize() (i1 int)
GetDigestSize implements DataSigner
func (*DataSignerMock) GetDigestSizeAfterCounter ¶
func (mmGetDigestSize *DataSignerMock) GetDigestSizeAfterCounter() uint64
GetDigestSizeAfterCounter returns a count of finished DataSignerMock.GetDigestSize invocations
func (*DataSignerMock) GetDigestSizeBeforeCounter ¶
func (mmGetDigestSize *DataSignerMock) GetDigestSizeBeforeCounter() uint64
GetDigestSizeBeforeCounter returns a count of DataSignerMock.GetDigestSize invocations
func (*DataSignerMock) GetSignatureMethod ¶
func (mmGetSignatureMethod *DataSignerMock) GetSignatureMethod() (s1 SignatureMethod)
GetSignatureMethod implements DataSigner
func (*DataSignerMock) GetSignatureMethodAfterCounter ¶
func (mmGetSignatureMethod *DataSignerMock) GetSignatureMethodAfterCounter() uint64
GetSignatureMethodAfterCounter returns a count of finished DataSignerMock.GetSignatureMethod invocations
func (*DataSignerMock) GetSignatureMethodBeforeCounter ¶
func (mmGetSignatureMethod *DataSignerMock) GetSignatureMethodBeforeCounter() uint64
GetSignatureMethodBeforeCounter returns a count of DataSignerMock.GetSignatureMethod invocations
func (*DataSignerMock) GetSigningMethod ¶
func (mmGetSigningMethod *DataSignerMock) GetSigningMethod() (s1 SigningMethod)
GetSigningMethod implements DataSigner
func (*DataSignerMock) GetSigningMethodAfterCounter ¶
func (mmGetSigningMethod *DataSignerMock) GetSigningMethodAfterCounter() uint64
GetSigningMethodAfterCounter returns a count of finished DataSignerMock.GetSigningMethod invocations
func (*DataSignerMock) GetSigningMethodBeforeCounter ¶
func (mmGetSigningMethod *DataSignerMock) GetSigningMethodBeforeCounter() uint64
GetSigningMethodBeforeCounter returns a count of DataSignerMock.GetSigningMethod invocations
func (*DataSignerMock) MinimockDigestBytesDone ¶
func (m *DataSignerMock) MinimockDigestBytesDone() bool
MinimockDigestBytesDone returns true if the count of the DigestBytes invocations corresponds the number of defined expectations
func (*DataSignerMock) MinimockDigestBytesInspect ¶
func (m *DataSignerMock) MinimockDigestBytesInspect()
MinimockDigestBytesInspect logs each unmet expectation
func (*DataSignerMock) MinimockDigestDataDone ¶
func (m *DataSignerMock) MinimockDigestDataDone() bool
MinimockDigestDataDone returns true if the count of the DigestData invocations corresponds the number of defined expectations
func (*DataSignerMock) MinimockDigestDataInspect ¶
func (m *DataSignerMock) MinimockDigestDataInspect()
MinimockDigestDataInspect logs each unmet expectation
func (*DataSignerMock) MinimockFinish ¶
func (m *DataSignerMock) MinimockFinish()
MinimockFinish checks that all mocked methods have been called the expected number of times
func (*DataSignerMock) MinimockGetDigestMethodDone ¶
func (m *DataSignerMock) MinimockGetDigestMethodDone() bool
MinimockGetDigestMethodDone returns true if the count of the GetDigestMethod invocations corresponds the number of defined expectations
func (*DataSignerMock) MinimockGetDigestMethodInspect ¶
func (m *DataSignerMock) MinimockGetDigestMethodInspect()
MinimockGetDigestMethodInspect logs each unmet expectation
func (*DataSignerMock) MinimockGetDigestSizeDone ¶
func (m *DataSignerMock) MinimockGetDigestSizeDone() bool
MinimockGetDigestSizeDone returns true if the count of the GetDigestSize invocations corresponds the number of defined expectations
func (*DataSignerMock) MinimockGetDigestSizeInspect ¶
func (m *DataSignerMock) MinimockGetDigestSizeInspect()
MinimockGetDigestSizeInspect logs each unmet expectation
func (*DataSignerMock) MinimockGetSignatureMethodDone ¶
func (m *DataSignerMock) MinimockGetSignatureMethodDone() bool
MinimockGetSignatureMethodDone returns true if the count of the GetSignatureMethod invocations corresponds the number of defined expectations
func (*DataSignerMock) MinimockGetSignatureMethodInspect ¶
func (m *DataSignerMock) MinimockGetSignatureMethodInspect()
MinimockGetSignatureMethodInspect logs each unmet expectation
func (*DataSignerMock) MinimockGetSigningMethodDone ¶
func (m *DataSignerMock) MinimockGetSigningMethodDone() bool
MinimockGetSigningMethodDone returns true if the count of the GetSigningMethod invocations corresponds the number of defined expectations
func (*DataSignerMock) MinimockGetSigningMethodInspect ¶
func (m *DataSignerMock) MinimockGetSigningMethodInspect()
MinimockGetSigningMethodInspect logs each unmet expectation
func (*DataSignerMock) MinimockNewHasherDone ¶
func (m *DataSignerMock) MinimockNewHasherDone() bool
MinimockNewHasherDone returns true if the count of the NewHasher invocations corresponds the number of defined expectations
func (*DataSignerMock) MinimockNewHasherInspect ¶
func (m *DataSignerMock) MinimockNewHasherInspect()
MinimockNewHasherInspect logs each unmet expectation
func (*DataSignerMock) MinimockSignDigestDone ¶
func (m *DataSignerMock) MinimockSignDigestDone() bool
MinimockSignDigestDone returns true if the count of the SignDigest invocations corresponds the number of defined expectations
func (*DataSignerMock) MinimockSignDigestInspect ¶
func (m *DataSignerMock) MinimockSignDigestInspect()
MinimockSignDigestInspect logs each unmet expectation
func (*DataSignerMock) MinimockWait ¶
func (m *DataSignerMock) MinimockWait(timeout mm_time.Duration)
MinimockWait waits for all mocked methods to be called the expected number of times
func (*DataSignerMock) NewHasher ¶
func (mmNewHasher *DataSignerMock) NewHasher() (d1 DigestHasher)
NewHasher implements DataSigner
func (*DataSignerMock) NewHasherAfterCounter ¶
func (mmNewHasher *DataSignerMock) NewHasherAfterCounter() uint64
NewHasherAfterCounter returns a count of finished DataSignerMock.NewHasher invocations
func (*DataSignerMock) NewHasherBeforeCounter ¶
func (mmNewHasher *DataSignerMock) NewHasherBeforeCounter() uint64
NewHasherBeforeCounter returns a count of DataSignerMock.NewHasher invocations
func (*DataSignerMock) SignDigest ¶
func (mmSignDigest *DataSignerMock) SignDigest(digest Digest) (s1 Signature)
SignDigest implements DataSigner
func (*DataSignerMock) SignDigestAfterCounter ¶
func (mmSignDigest *DataSignerMock) SignDigestAfterCounter() uint64
SignDigestAfterCounter returns a count of finished DataSignerMock.SignDigest invocations
func (*DataSignerMock) SignDigestBeforeCounter ¶
func (mmSignDigest *DataSignerMock) SignDigestBeforeCounter() uint64
SignDigestBeforeCounter returns a count of DataSignerMock.SignDigest invocations
type DataSignerMockDigestBytesExpectation ¶
type DataSignerMockDigestBytesExpectation struct { Counter uint64 // contains filtered or unexported fields }
DataSignerMockDigestBytesExpectation specifies expectation struct of the DataSigner.DigestBytes
func (*DataSignerMockDigestBytesExpectation) Then ¶
func (e *DataSignerMockDigestBytesExpectation) Then(d1 Digest) *DataSignerMock
Then sets up DataSigner.DigestBytes return parameters for the expectation previously defined by the When method
type DataSignerMockDigestBytesParams ¶
type DataSignerMockDigestBytesParams struct {
// contains filtered or unexported fields
}
DataSignerMockDigestBytesParams contains parameters of the DataSigner.DigestBytes
type DataSignerMockDigestBytesResults ¶
type DataSignerMockDigestBytesResults struct {
// contains filtered or unexported fields
}
DataSignerMockDigestBytesResults contains results of the DataSigner.DigestBytes
type DataSignerMockDigestDataExpectation ¶
type DataSignerMockDigestDataExpectation struct { Counter uint64 // contains filtered or unexported fields }
DataSignerMockDigestDataExpectation specifies expectation struct of the DataSigner.DigestData
func (*DataSignerMockDigestDataExpectation) Then ¶
func (e *DataSignerMockDigestDataExpectation) Then(d1 Digest) *DataSignerMock
Then sets up DataSigner.DigestData return parameters for the expectation previously defined by the When method
type DataSignerMockDigestDataParams ¶
type DataSignerMockDigestDataParams struct {
// contains filtered or unexported fields
}
DataSignerMockDigestDataParams contains parameters of the DataSigner.DigestData
type DataSignerMockDigestDataResults ¶
type DataSignerMockDigestDataResults struct {
// contains filtered or unexported fields
}
DataSignerMockDigestDataResults contains results of the DataSigner.DigestData
type DataSignerMockGetDigestMethodExpectation ¶
type DataSignerMockGetDigestMethodExpectation struct { Counter uint64 // contains filtered or unexported fields }
DataSignerMockGetDigestMethodExpectation specifies expectation struct of the DataSigner.GetDigestMethod
type DataSignerMockGetDigestMethodResults ¶
type DataSignerMockGetDigestMethodResults struct {
// contains filtered or unexported fields
}
DataSignerMockGetDigestMethodResults contains results of the DataSigner.GetDigestMethod
type DataSignerMockGetDigestSizeExpectation ¶
type DataSignerMockGetDigestSizeExpectation struct { Counter uint64 // contains filtered or unexported fields }
DataSignerMockGetDigestSizeExpectation specifies expectation struct of the DataSigner.GetDigestSize
type DataSignerMockGetDigestSizeResults ¶
type DataSignerMockGetDigestSizeResults struct {
// contains filtered or unexported fields
}
DataSignerMockGetDigestSizeResults contains results of the DataSigner.GetDigestSize
type DataSignerMockGetSignatureMethodExpectation ¶
type DataSignerMockGetSignatureMethodExpectation struct { Counter uint64 // contains filtered or unexported fields }
DataSignerMockGetSignatureMethodExpectation specifies expectation struct of the DataSigner.GetSignatureMethod
type DataSignerMockGetSignatureMethodResults ¶
type DataSignerMockGetSignatureMethodResults struct {
// contains filtered or unexported fields
}
DataSignerMockGetSignatureMethodResults contains results of the DataSigner.GetSignatureMethod
type DataSignerMockGetSigningMethodExpectation ¶
type DataSignerMockGetSigningMethodExpectation struct { Counter uint64 // contains filtered or unexported fields }
DataSignerMockGetSigningMethodExpectation specifies expectation struct of the DataSigner.GetSigningMethod
type DataSignerMockGetSigningMethodResults ¶
type DataSignerMockGetSigningMethodResults struct {
// contains filtered or unexported fields
}
DataSignerMockGetSigningMethodResults contains results of the DataSigner.GetSigningMethod
type DataSignerMockNewHasherExpectation ¶
type DataSignerMockNewHasherExpectation struct { Counter uint64 // contains filtered or unexported fields }
DataSignerMockNewHasherExpectation specifies expectation struct of the DataSigner.NewHasher
type DataSignerMockNewHasherResults ¶
type DataSignerMockNewHasherResults struct {
// contains filtered or unexported fields
}
DataSignerMockNewHasherResults contains results of the DataSigner.NewHasher
type DataSignerMockSignDigestExpectation ¶
type DataSignerMockSignDigestExpectation struct { Counter uint64 // contains filtered or unexported fields }
DataSignerMockSignDigestExpectation specifies expectation struct of the DataSigner.SignDigest
func (*DataSignerMockSignDigestExpectation) Then ¶
func (e *DataSignerMockSignDigestExpectation) Then(s1 Signature) *DataSignerMock
Then sets up DataSigner.SignDigest return parameters for the expectation previously defined by the When method
type DataSignerMockSignDigestParams ¶
type DataSignerMockSignDigestParams struct {
// contains filtered or unexported fields
}
DataSignerMockSignDigestParams contains parameters of the DataSigner.SignDigest
type DataSignerMockSignDigestResults ¶
type DataSignerMockSignDigestResults struct {
// contains filtered or unexported fields
}
DataSignerMockSignDigestResults contains results of the DataSigner.SignDigest
type Digest ¶
type Digest struct {
// contains filtered or unexported fields
}
func DigestOfHash ¶
func DigestOfHash(digester BasicDigester, hasher hash.Hash) Digest
func NewDigest ¶
func NewDigest(data longbits.FoldableReader, method DigestMethod) Digest
func NewZeroSizeDigest ¶
func NewZeroSizeDigest(method DigestMethod) Digest
func (Digest) AsDigestHolder ¶
func (d Digest) AsDigestHolder() DigestHolder
func (Digest) Equals ¶
func (d Digest) Equals(o DigestHolder) bool
func (Digest) FixedByteSize ¶
func (Digest) GetDigestMethod ¶
func (d Digest) GetDigestMethod() DigestMethod
func (Digest) SignWith ¶
func (d Digest) SignWith(signer DigestSigner) SignedDigestHolder
type DigestFactory ¶
type DigestFactory interface { CreatePairDigester() PairDigester CreateDataDigester() DataDigester CreateSequenceDigester() SequenceDigester CreateForkingDigester() ForkingDigester }
type DigestHasher ¶
type DigestHasher struct { BasicDigester hash.Hash }
func (DigestHasher) DigestBytes ¶
func (v DigestHasher) DigestBytes(b []byte) DigestHasher
func (DigestHasher) DigestOf ¶
func (v DigestHasher) DigestOf(w io.WriterTo) DigestHasher
func (DigestHasher) DigestReader ¶
func (v DigestHasher) DigestReader(r io.Reader) DigestHasher
func (DigestHasher) SumToDigest ¶
func (v DigestHasher) SumToDigest() Digest
func (DigestHasher) SumToDigestBytes ¶
func (v DigestHasher) SumToDigestBytes(b []byte)
func (DigestHasher) SumToSignature ¶
func (v DigestHasher) SumToSignature(signer DataSigner) Signature
type DigestHolder ¶
type DigestHolder interface { longbits.FoldableReader SignWith(signer DigestSigner) SignedDigestHolder GetDigestMethod() DigestMethod Equals(other DigestHolder) bool }
type DigestHolderMock ¶
type DigestHolderMock struct { AsByteStringMock mDigestHolderMockAsByteString CopyToMock mDigestHolderMockCopyTo EqualsMock mDigestHolderMockEquals FixedByteSizeMock mDigestHolderMockFixedByteSize FoldToUint64Mock mDigestHolderMockFoldToUint64 GetDigestMethodMock mDigestHolderMockGetDigestMethod SignWithMock mDigestHolderMockSignWith WriteToMock mDigestHolderMockWriteTo // contains filtered or unexported fields }
DigestHolderMock implements DigestHolder
func NewDigestHolderMock ¶
func NewDigestHolderMock(t minimock.Tester) *DigestHolderMock
NewDigestHolderMock returns a mock for DigestHolder
func (*DigestHolderMock) AsByteString ¶
func (mmAsByteString *DigestHolderMock) AsByteString() (b1 longbits.ByteString)
AsByteString implements DigestHolder
func (*DigestHolderMock) AsByteStringAfterCounter ¶
func (mmAsByteString *DigestHolderMock) AsByteStringAfterCounter() uint64
AsByteStringAfterCounter returns a count of finished DigestHolderMock.AsByteString invocations
func (*DigestHolderMock) AsByteStringBeforeCounter ¶
func (mmAsByteString *DigestHolderMock) AsByteStringBeforeCounter() uint64
AsByteStringBeforeCounter returns a count of DigestHolderMock.AsByteString invocations
func (*DigestHolderMock) CopyTo ¶
func (mmCopyTo *DigestHolderMock) CopyTo(p []byte) (i1 int)
CopyTo implements DigestHolder
func (*DigestHolderMock) CopyToAfterCounter ¶
func (mmCopyTo *DigestHolderMock) CopyToAfterCounter() uint64
CopyToAfterCounter returns a count of finished DigestHolderMock.CopyTo invocations
func (*DigestHolderMock) CopyToBeforeCounter ¶
func (mmCopyTo *DigestHolderMock) CopyToBeforeCounter() uint64
CopyToBeforeCounter returns a count of DigestHolderMock.CopyTo invocations
func (*DigestHolderMock) Equals ¶
func (mmEquals *DigestHolderMock) Equals(other DigestHolder) (b1 bool)
Equals implements DigestHolder
func (*DigestHolderMock) EqualsAfterCounter ¶
func (mmEquals *DigestHolderMock) EqualsAfterCounter() uint64
EqualsAfterCounter returns a count of finished DigestHolderMock.Equals invocations
func (*DigestHolderMock) EqualsBeforeCounter ¶
func (mmEquals *DigestHolderMock) EqualsBeforeCounter() uint64
EqualsBeforeCounter returns a count of DigestHolderMock.Equals invocations
func (*DigestHolderMock) FixedByteSize ¶
func (mmFixedByteSize *DigestHolderMock) FixedByteSize() (i1 int)
FixedByteSize implements DigestHolder
func (*DigestHolderMock) FixedByteSizeAfterCounter ¶
func (mmFixedByteSize *DigestHolderMock) FixedByteSizeAfterCounter() uint64
FixedByteSizeAfterCounter returns a count of finished DigestHolderMock.FixedByteSize invocations
func (*DigestHolderMock) FixedByteSizeBeforeCounter ¶
func (mmFixedByteSize *DigestHolderMock) FixedByteSizeBeforeCounter() uint64
FixedByteSizeBeforeCounter returns a count of DigestHolderMock.FixedByteSize invocations
func (*DigestHolderMock) FoldToUint64 ¶
func (mmFoldToUint64 *DigestHolderMock) FoldToUint64() (u1 uint64)
FoldToUint64 implements DigestHolder
func (*DigestHolderMock) FoldToUint64AfterCounter ¶
func (mmFoldToUint64 *DigestHolderMock) FoldToUint64AfterCounter() uint64
FoldToUint64AfterCounter returns a count of finished DigestHolderMock.FoldToUint64 invocations
func (*DigestHolderMock) FoldToUint64BeforeCounter ¶
func (mmFoldToUint64 *DigestHolderMock) FoldToUint64BeforeCounter() uint64
FoldToUint64BeforeCounter returns a count of DigestHolderMock.FoldToUint64 invocations
func (*DigestHolderMock) GetDigestMethod ¶
func (mmGetDigestMethod *DigestHolderMock) GetDigestMethod() (d1 DigestMethod)
GetDigestMethod implements DigestHolder
func (*DigestHolderMock) GetDigestMethodAfterCounter ¶
func (mmGetDigestMethod *DigestHolderMock) GetDigestMethodAfterCounter() uint64
GetDigestMethodAfterCounter returns a count of finished DigestHolderMock.GetDigestMethod invocations
func (*DigestHolderMock) GetDigestMethodBeforeCounter ¶
func (mmGetDigestMethod *DigestHolderMock) GetDigestMethodBeforeCounter() uint64
GetDigestMethodBeforeCounter returns a count of DigestHolderMock.GetDigestMethod invocations
func (*DigestHolderMock) MinimockAsByteStringDone ¶
func (m *DigestHolderMock) MinimockAsByteStringDone() bool
MinimockAsByteStringDone returns true if the count of the AsByteString invocations corresponds the number of defined expectations
func (*DigestHolderMock) MinimockAsByteStringInspect ¶
func (m *DigestHolderMock) MinimockAsByteStringInspect()
MinimockAsByteStringInspect logs each unmet expectation
func (*DigestHolderMock) MinimockCopyToDone ¶
func (m *DigestHolderMock) MinimockCopyToDone() bool
MinimockCopyToDone returns true if the count of the CopyTo invocations corresponds the number of defined expectations
func (*DigestHolderMock) MinimockCopyToInspect ¶
func (m *DigestHolderMock) MinimockCopyToInspect()
MinimockCopyToInspect logs each unmet expectation
func (*DigestHolderMock) MinimockEqualsDone ¶
func (m *DigestHolderMock) MinimockEqualsDone() bool
MinimockEqualsDone returns true if the count of the Equals invocations corresponds the number of defined expectations
func (*DigestHolderMock) MinimockEqualsInspect ¶
func (m *DigestHolderMock) MinimockEqualsInspect()
MinimockEqualsInspect logs each unmet expectation
func (*DigestHolderMock) MinimockFinish ¶
func (m *DigestHolderMock) MinimockFinish()
MinimockFinish checks that all mocked methods have been called the expected number of times
func (*DigestHolderMock) MinimockFixedByteSizeDone ¶
func (m *DigestHolderMock) MinimockFixedByteSizeDone() bool
MinimockFixedByteSizeDone returns true if the count of the FixedByteSize invocations corresponds the number of defined expectations
func (*DigestHolderMock) MinimockFixedByteSizeInspect ¶
func (m *DigestHolderMock) MinimockFixedByteSizeInspect()
MinimockFixedByteSizeInspect logs each unmet expectation
func (*DigestHolderMock) MinimockFoldToUint64Done ¶
func (m *DigestHolderMock) MinimockFoldToUint64Done() bool
MinimockFoldToUint64Done returns true if the count of the FoldToUint64 invocations corresponds the number of defined expectations
func (*DigestHolderMock) MinimockFoldToUint64Inspect ¶
func (m *DigestHolderMock) MinimockFoldToUint64Inspect()
MinimockFoldToUint64Inspect logs each unmet expectation
func (*DigestHolderMock) MinimockGetDigestMethodDone ¶
func (m *DigestHolderMock) MinimockGetDigestMethodDone() bool
MinimockGetDigestMethodDone returns true if the count of the GetDigestMethod invocations corresponds the number of defined expectations
func (*DigestHolderMock) MinimockGetDigestMethodInspect ¶
func (m *DigestHolderMock) MinimockGetDigestMethodInspect()
MinimockGetDigestMethodInspect logs each unmet expectation
func (*DigestHolderMock) MinimockSignWithDone ¶
func (m *DigestHolderMock) MinimockSignWithDone() bool
MinimockSignWithDone returns true if the count of the SignWith invocations corresponds the number of defined expectations
func (*DigestHolderMock) MinimockSignWithInspect ¶
func (m *DigestHolderMock) MinimockSignWithInspect()
MinimockSignWithInspect logs each unmet expectation
func (*DigestHolderMock) MinimockWait ¶
func (m *DigestHolderMock) MinimockWait(timeout mm_time.Duration)
MinimockWait waits for all mocked methods to be called the expected number of times
func (*DigestHolderMock) MinimockWriteToDone ¶
func (m *DigestHolderMock) MinimockWriteToDone() bool
MinimockWriteToDone returns true if the count of the WriteTo invocations corresponds the number of defined expectations
func (*DigestHolderMock) MinimockWriteToInspect ¶
func (m *DigestHolderMock) MinimockWriteToInspect()
MinimockWriteToInspect logs each unmet expectation
func (*DigestHolderMock) SignWith ¶
func (mmSignWith *DigestHolderMock) SignWith(signer DigestSigner) (s1 SignedDigestHolder)
SignWith implements DigestHolder
func (*DigestHolderMock) SignWithAfterCounter ¶
func (mmSignWith *DigestHolderMock) SignWithAfterCounter() uint64
SignWithAfterCounter returns a count of finished DigestHolderMock.SignWith invocations
func (*DigestHolderMock) SignWithBeforeCounter ¶
func (mmSignWith *DigestHolderMock) SignWithBeforeCounter() uint64
SignWithBeforeCounter returns a count of DigestHolderMock.SignWith invocations
func (*DigestHolderMock) WriteTo ¶
func (mmWriteTo *DigestHolderMock) WriteTo(w io.Writer) (n int64, err error)
WriteTo implements DigestHolder
func (*DigestHolderMock) WriteToAfterCounter ¶
func (mmWriteTo *DigestHolderMock) WriteToAfterCounter() uint64
WriteToAfterCounter returns a count of finished DigestHolderMock.WriteTo invocations
func (*DigestHolderMock) WriteToBeforeCounter ¶
func (mmWriteTo *DigestHolderMock) WriteToBeforeCounter() uint64
WriteToBeforeCounter returns a count of DigestHolderMock.WriteTo invocations
type DigestHolderMockAsByteStringExpectation ¶
type DigestHolderMockAsByteStringExpectation struct { Counter uint64 // contains filtered or unexported fields }
DigestHolderMockAsByteStringExpectation specifies expectation struct of the DigestHolder.AsByteString
type DigestHolderMockAsByteStringResults ¶
type DigestHolderMockAsByteStringResults struct {
// contains filtered or unexported fields
}
DigestHolderMockAsByteStringResults contains results of the DigestHolder.AsByteString
type DigestHolderMockCopyToExpectation ¶
type DigestHolderMockCopyToExpectation struct { Counter uint64 // contains filtered or unexported fields }
DigestHolderMockCopyToExpectation specifies expectation struct of the DigestHolder.CopyTo
func (*DigestHolderMockCopyToExpectation) Then ¶
func (e *DigestHolderMockCopyToExpectation) Then(i1 int) *DigestHolderMock
Then sets up DigestHolder.CopyTo return parameters for the expectation previously defined by the When method
type DigestHolderMockCopyToParams ¶
type DigestHolderMockCopyToParams struct {
// contains filtered or unexported fields
}
DigestHolderMockCopyToParams contains parameters of the DigestHolder.CopyTo
type DigestHolderMockCopyToResults ¶
type DigestHolderMockCopyToResults struct {
// contains filtered or unexported fields
}
DigestHolderMockCopyToResults contains results of the DigestHolder.CopyTo
type DigestHolderMockEqualsExpectation ¶
type DigestHolderMockEqualsExpectation struct { Counter uint64 // contains filtered or unexported fields }
DigestHolderMockEqualsExpectation specifies expectation struct of the DigestHolder.Equals
func (*DigestHolderMockEqualsExpectation) Then ¶
func (e *DigestHolderMockEqualsExpectation) Then(b1 bool) *DigestHolderMock
Then sets up DigestHolder.Equals return parameters for the expectation previously defined by the When method
type DigestHolderMockEqualsParams ¶
type DigestHolderMockEqualsParams struct {
// contains filtered or unexported fields
}
DigestHolderMockEqualsParams contains parameters of the DigestHolder.Equals
type DigestHolderMockEqualsResults ¶
type DigestHolderMockEqualsResults struct {
// contains filtered or unexported fields
}
DigestHolderMockEqualsResults contains results of the DigestHolder.Equals
type DigestHolderMockFixedByteSizeExpectation ¶
type DigestHolderMockFixedByteSizeExpectation struct { Counter uint64 // contains filtered or unexported fields }
DigestHolderMockFixedByteSizeExpectation specifies expectation struct of the DigestHolder.FixedByteSize
type DigestHolderMockFixedByteSizeResults ¶
type DigestHolderMockFixedByteSizeResults struct {
// contains filtered or unexported fields
}
DigestHolderMockFixedByteSizeResults contains results of the DigestHolder.FixedByteSize
type DigestHolderMockFoldToUint64Expectation ¶
type DigestHolderMockFoldToUint64Expectation struct { Counter uint64 // contains filtered or unexported fields }
DigestHolderMockFoldToUint64Expectation specifies expectation struct of the DigestHolder.FoldToUint64
type DigestHolderMockFoldToUint64Results ¶
type DigestHolderMockFoldToUint64Results struct {
// contains filtered or unexported fields
}
DigestHolderMockFoldToUint64Results contains results of the DigestHolder.FoldToUint64
type DigestHolderMockGetDigestMethodExpectation ¶
type DigestHolderMockGetDigestMethodExpectation struct { Counter uint64 // contains filtered or unexported fields }
DigestHolderMockGetDigestMethodExpectation specifies expectation struct of the DigestHolder.GetDigestMethod
type DigestHolderMockGetDigestMethodResults ¶
type DigestHolderMockGetDigestMethodResults struct {
// contains filtered or unexported fields
}
DigestHolderMockGetDigestMethodResults contains results of the DigestHolder.GetDigestMethod
type DigestHolderMockSignWithExpectation ¶
type DigestHolderMockSignWithExpectation struct { Counter uint64 // contains filtered or unexported fields }
DigestHolderMockSignWithExpectation specifies expectation struct of the DigestHolder.SignWith
func (*DigestHolderMockSignWithExpectation) Then ¶
func (e *DigestHolderMockSignWithExpectation) Then(s1 SignedDigestHolder) *DigestHolderMock
Then sets up DigestHolder.SignWith return parameters for the expectation previously defined by the When method
type DigestHolderMockSignWithParams ¶
type DigestHolderMockSignWithParams struct {
// contains filtered or unexported fields
}
DigestHolderMockSignWithParams contains parameters of the DigestHolder.SignWith
type DigestHolderMockSignWithResults ¶
type DigestHolderMockSignWithResults struct {
// contains filtered or unexported fields
}
DigestHolderMockSignWithResults contains results of the DigestHolder.SignWith
type DigestHolderMockWriteToExpectation ¶
type DigestHolderMockWriteToExpectation struct { Counter uint64 // contains filtered or unexported fields }
DigestHolderMockWriteToExpectation specifies expectation struct of the DigestHolder.WriteTo
func (*DigestHolderMockWriteToExpectation) Then ¶
func (e *DigestHolderMockWriteToExpectation) Then(n int64, err error) *DigestHolderMock
Then sets up DigestHolder.WriteTo return parameters for the expectation previously defined by the When method
type DigestHolderMockWriteToParams ¶
type DigestHolderMockWriteToParams struct {
// contains filtered or unexported fields
}
DigestHolderMockWriteToParams contains parameters of the DigestHolder.WriteTo
type DigestHolderMockWriteToResults ¶
type DigestHolderMockWriteToResults struct {
// contains filtered or unexported fields
}
DigestHolderMockWriteToResults contains results of the DigestHolder.WriteTo
type DigestMethod ¶
type DigestMethod string
func (DigestMethod) SignedBy ¶
func (d DigestMethod) SignedBy(s SigningMethod) SignatureMethod
func (DigestMethod) String ¶
func (d DigestMethod) String() string
type DigestSigner ¶
type DigestSigner interface { SignDigest(digest Digest) Signature GetSigningMethod() SigningMethod }
type DigestSignerMock ¶
type DigestSignerMock struct { GetSigningMethodMock mDigestSignerMockGetSigningMethod SignDigestMock mDigestSignerMockSignDigest // contains filtered or unexported fields }
DigestSignerMock implements DigestSigner
func NewDigestSignerMock ¶
func NewDigestSignerMock(t minimock.Tester) *DigestSignerMock
NewDigestSignerMock returns a mock for DigestSigner
func (*DigestSignerMock) GetSigningMethod ¶
func (mmGetSigningMethod *DigestSignerMock) GetSigningMethod() (s1 SigningMethod)
GetSigningMethod implements DigestSigner
func (*DigestSignerMock) GetSigningMethodAfterCounter ¶
func (mmGetSigningMethod *DigestSignerMock) GetSigningMethodAfterCounter() uint64
GetSigningMethodAfterCounter returns a count of finished DigestSignerMock.GetSigningMethod invocations
func (*DigestSignerMock) GetSigningMethodBeforeCounter ¶
func (mmGetSigningMethod *DigestSignerMock) GetSigningMethodBeforeCounter() uint64
GetSigningMethodBeforeCounter returns a count of DigestSignerMock.GetSigningMethod invocations
func (*DigestSignerMock) MinimockFinish ¶
func (m *DigestSignerMock) MinimockFinish()
MinimockFinish checks that all mocked methods have been called the expected number of times
func (*DigestSignerMock) MinimockGetSigningMethodDone ¶
func (m *DigestSignerMock) MinimockGetSigningMethodDone() bool
MinimockGetSigningMethodDone returns true if the count of the GetSigningMethod invocations corresponds the number of defined expectations
func (*DigestSignerMock) MinimockGetSigningMethodInspect ¶
func (m *DigestSignerMock) MinimockGetSigningMethodInspect()
MinimockGetSigningMethodInspect logs each unmet expectation
func (*DigestSignerMock) MinimockSignDigestDone ¶
func (m *DigestSignerMock) MinimockSignDigestDone() bool
MinimockSignDigestDone returns true if the count of the SignDigest invocations corresponds the number of defined expectations
func (*DigestSignerMock) MinimockSignDigestInspect ¶
func (m *DigestSignerMock) MinimockSignDigestInspect()
MinimockSignDigestInspect logs each unmet expectation
func (*DigestSignerMock) MinimockWait ¶
func (m *DigestSignerMock) MinimockWait(timeout mm_time.Duration)
MinimockWait waits for all mocked methods to be called the expected number of times
func (*DigestSignerMock) SignDigest ¶
func (mmSignDigest *DigestSignerMock) SignDigest(digest Digest) (s1 Signature)
SignDigest implements DigestSigner
func (*DigestSignerMock) SignDigestAfterCounter ¶
func (mmSignDigest *DigestSignerMock) SignDigestAfterCounter() uint64
SignDigestAfterCounter returns a count of finished DigestSignerMock.SignDigest invocations
func (*DigestSignerMock) SignDigestBeforeCounter ¶
func (mmSignDigest *DigestSignerMock) SignDigestBeforeCounter() uint64
SignDigestBeforeCounter returns a count of DigestSignerMock.SignDigest invocations
type DigestSignerMockGetSigningMethodExpectation ¶
type DigestSignerMockGetSigningMethodExpectation struct { Counter uint64 // contains filtered or unexported fields }
DigestSignerMockGetSigningMethodExpectation specifies expectation struct of the DigestSigner.GetSigningMethod
type DigestSignerMockGetSigningMethodResults ¶
type DigestSignerMockGetSigningMethodResults struct {
// contains filtered or unexported fields
}
DigestSignerMockGetSigningMethodResults contains results of the DigestSigner.GetSigningMethod
type DigestSignerMockSignDigestExpectation ¶
type DigestSignerMockSignDigestExpectation struct { Counter uint64 // contains filtered or unexported fields }
DigestSignerMockSignDigestExpectation specifies expectation struct of the DigestSigner.SignDigest
func (*DigestSignerMockSignDigestExpectation) Then ¶
func (e *DigestSignerMockSignDigestExpectation) Then(s1 Signature) *DigestSignerMock
Then sets up DigestSigner.SignDigest return parameters for the expectation previously defined by the When method
type DigestSignerMockSignDigestParams ¶
type DigestSignerMockSignDigestParams struct {
// contains filtered or unexported fields
}
DigestSignerMockSignDigestParams contains parameters of the DigestSigner.SignDigest
type DigestSignerMockSignDigestResults ¶
type DigestSignerMockSignDigestResults struct {
// contains filtered or unexported fields
}
DigestSignerMockSignDigestResults contains results of the DigestSigner.SignDigest
type ForkingDigester ¶
type ForkingDigester interface { SequenceDigester ForkSequence() ForkingDigester }
type ForkingDigesterMock ¶
type ForkingDigesterMock struct { AddNextMock mForkingDigesterMockAddNext FinishSequenceMock mForkingDigesterMockFinishSequence ForkSequenceMock mForkingDigesterMockForkSequence GetDigestMethodMock mForkingDigesterMockGetDigestMethod GetDigestSizeMock mForkingDigesterMockGetDigestSize // contains filtered or unexported fields }
ForkingDigesterMock implements ForkingDigester
func NewForkingDigesterMock ¶
func NewForkingDigesterMock(t minimock.Tester) *ForkingDigesterMock
NewForkingDigesterMock returns a mock for ForkingDigester
func (*ForkingDigesterMock) AddNext ¶
func (mmAddNext *ForkingDigesterMock) AddNext(digest longbits.FoldableReader)
AddNext implements ForkingDigester
func (*ForkingDigesterMock) AddNextAfterCounter ¶
func (mmAddNext *ForkingDigesterMock) AddNextAfterCounter() uint64
AddNextAfterCounter returns a count of finished ForkingDigesterMock.AddNext invocations
func (*ForkingDigesterMock) AddNextBeforeCounter ¶
func (mmAddNext *ForkingDigesterMock) AddNextBeforeCounter() uint64
AddNextBeforeCounter returns a count of ForkingDigesterMock.AddNext invocations
func (*ForkingDigesterMock) FinishSequence ¶
func (mmFinishSequence *ForkingDigesterMock) FinishSequence() (d1 Digest)
FinishSequence implements ForkingDigester
func (*ForkingDigesterMock) FinishSequenceAfterCounter ¶
func (mmFinishSequence *ForkingDigesterMock) FinishSequenceAfterCounter() uint64
FinishSequenceAfterCounter returns a count of finished ForkingDigesterMock.FinishSequence invocations
func (*ForkingDigesterMock) FinishSequenceBeforeCounter ¶
func (mmFinishSequence *ForkingDigesterMock) FinishSequenceBeforeCounter() uint64
FinishSequenceBeforeCounter returns a count of ForkingDigesterMock.FinishSequence invocations
func (*ForkingDigesterMock) ForkSequence ¶
func (mmForkSequence *ForkingDigesterMock) ForkSequence() (f1 ForkingDigester)
ForkSequence implements ForkingDigester
func (*ForkingDigesterMock) ForkSequenceAfterCounter ¶
func (mmForkSequence *ForkingDigesterMock) ForkSequenceAfterCounter() uint64
ForkSequenceAfterCounter returns a count of finished ForkingDigesterMock.ForkSequence invocations
func (*ForkingDigesterMock) ForkSequenceBeforeCounter ¶
func (mmForkSequence *ForkingDigesterMock) ForkSequenceBeforeCounter() uint64
ForkSequenceBeforeCounter returns a count of ForkingDigesterMock.ForkSequence invocations
func (*ForkingDigesterMock) GetDigestMethod ¶
func (mmGetDigestMethod *ForkingDigesterMock) GetDigestMethod() (d1 DigestMethod)
GetDigestMethod implements ForkingDigester
func (*ForkingDigesterMock) GetDigestMethodAfterCounter ¶
func (mmGetDigestMethod *ForkingDigesterMock) GetDigestMethodAfterCounter() uint64
GetDigestMethodAfterCounter returns a count of finished ForkingDigesterMock.GetDigestMethod invocations
func (*ForkingDigesterMock) GetDigestMethodBeforeCounter ¶
func (mmGetDigestMethod *ForkingDigesterMock) GetDigestMethodBeforeCounter() uint64
GetDigestMethodBeforeCounter returns a count of ForkingDigesterMock.GetDigestMethod invocations
func (*ForkingDigesterMock) GetDigestSize ¶
func (mmGetDigestSize *ForkingDigesterMock) GetDigestSize() (i1 int)
GetDigestSize implements ForkingDigester
func (*ForkingDigesterMock) GetDigestSizeAfterCounter ¶
func (mmGetDigestSize *ForkingDigesterMock) GetDigestSizeAfterCounter() uint64
GetDigestSizeAfterCounter returns a count of finished ForkingDigesterMock.GetDigestSize invocations
func (*ForkingDigesterMock) GetDigestSizeBeforeCounter ¶
func (mmGetDigestSize *ForkingDigesterMock) GetDigestSizeBeforeCounter() uint64
GetDigestSizeBeforeCounter returns a count of ForkingDigesterMock.GetDigestSize invocations
func (*ForkingDigesterMock) MinimockAddNextDone ¶
func (m *ForkingDigesterMock) MinimockAddNextDone() bool
MinimockAddNextDone returns true if the count of the AddNext invocations corresponds the number of defined expectations
func (*ForkingDigesterMock) MinimockAddNextInspect ¶
func (m *ForkingDigesterMock) MinimockAddNextInspect()
MinimockAddNextInspect logs each unmet expectation
func (*ForkingDigesterMock) MinimockFinish ¶
func (m *ForkingDigesterMock) MinimockFinish()
MinimockFinish checks that all mocked methods have been called the expected number of times
func (*ForkingDigesterMock) MinimockFinishSequenceDone ¶
func (m *ForkingDigesterMock) MinimockFinishSequenceDone() bool
MinimockFinishSequenceDone returns true if the count of the FinishSequence invocations corresponds the number of defined expectations
func (*ForkingDigesterMock) MinimockFinishSequenceInspect ¶
func (m *ForkingDigesterMock) MinimockFinishSequenceInspect()
MinimockFinishSequenceInspect logs each unmet expectation
func (*ForkingDigesterMock) MinimockForkSequenceDone ¶
func (m *ForkingDigesterMock) MinimockForkSequenceDone() bool
MinimockForkSequenceDone returns true if the count of the ForkSequence invocations corresponds the number of defined expectations
func (*ForkingDigesterMock) MinimockForkSequenceInspect ¶
func (m *ForkingDigesterMock) MinimockForkSequenceInspect()
MinimockForkSequenceInspect logs each unmet expectation
func (*ForkingDigesterMock) MinimockGetDigestMethodDone ¶
func (m *ForkingDigesterMock) MinimockGetDigestMethodDone() bool
MinimockGetDigestMethodDone returns true if the count of the GetDigestMethod invocations corresponds the number of defined expectations
func (*ForkingDigesterMock) MinimockGetDigestMethodInspect ¶
func (m *ForkingDigesterMock) MinimockGetDigestMethodInspect()
MinimockGetDigestMethodInspect logs each unmet expectation
func (*ForkingDigesterMock) MinimockGetDigestSizeDone ¶
func (m *ForkingDigesterMock) MinimockGetDigestSizeDone() bool
MinimockGetDigestSizeDone returns true if the count of the GetDigestSize invocations corresponds the number of defined expectations
func (*ForkingDigesterMock) MinimockGetDigestSizeInspect ¶
func (m *ForkingDigesterMock) MinimockGetDigestSizeInspect()
MinimockGetDigestSizeInspect logs each unmet expectation
func (*ForkingDigesterMock) MinimockWait ¶
func (m *ForkingDigesterMock) MinimockWait(timeout mm_time.Duration)
MinimockWait waits for all mocked methods to be called the expected number of times
type ForkingDigesterMockAddNextExpectation ¶
type ForkingDigesterMockAddNextExpectation struct { Counter uint64 // contains filtered or unexported fields }
ForkingDigesterMockAddNextExpectation specifies expectation struct of the ForkingDigester.AddNext
type ForkingDigesterMockAddNextParams ¶
type ForkingDigesterMockAddNextParams struct {
// contains filtered or unexported fields
}
ForkingDigesterMockAddNextParams contains parameters of the ForkingDigester.AddNext
type ForkingDigesterMockFinishSequenceExpectation ¶
type ForkingDigesterMockFinishSequenceExpectation struct { Counter uint64 // contains filtered or unexported fields }
ForkingDigesterMockFinishSequenceExpectation specifies expectation struct of the ForkingDigester.FinishSequence
type ForkingDigesterMockFinishSequenceResults ¶
type ForkingDigesterMockFinishSequenceResults struct {
// contains filtered or unexported fields
}
ForkingDigesterMockFinishSequenceResults contains results of the ForkingDigester.FinishSequence
type ForkingDigesterMockForkSequenceExpectation ¶
type ForkingDigesterMockForkSequenceExpectation struct { Counter uint64 // contains filtered or unexported fields }
ForkingDigesterMockForkSequenceExpectation specifies expectation struct of the ForkingDigester.ForkSequence
type ForkingDigesterMockForkSequenceResults ¶
type ForkingDigesterMockForkSequenceResults struct {
// contains filtered or unexported fields
}
ForkingDigesterMockForkSequenceResults contains results of the ForkingDigester.ForkSequence
type ForkingDigesterMockGetDigestMethodExpectation ¶
type ForkingDigesterMockGetDigestMethodExpectation struct { Counter uint64 // contains filtered or unexported fields }
ForkingDigesterMockGetDigestMethodExpectation specifies expectation struct of the ForkingDigester.GetDigestMethod
type ForkingDigesterMockGetDigestMethodResults ¶
type ForkingDigesterMockGetDigestMethodResults struct {
// contains filtered or unexported fields
}
ForkingDigesterMockGetDigestMethodResults contains results of the ForkingDigester.GetDigestMethod
type ForkingDigesterMockGetDigestSizeExpectation ¶
type ForkingDigesterMockGetDigestSizeExpectation struct { Counter uint64 // contains filtered or unexported fields }
ForkingDigesterMockGetDigestSizeExpectation specifies expectation struct of the ForkingDigester.GetDigestSize
type ForkingDigesterMockGetDigestSizeResults ¶
type ForkingDigesterMockGetDigestSizeResults struct {
// contains filtered or unexported fields
}
ForkingDigesterMockGetDigestSizeResults contains results of the ForkingDigester.GetDigestSize
type HashingTeeReader ¶
type HashingTeeReader struct { BasicDigester iokit.TeeReader }
func NewHashingTeeReader ¶
func NewHashingTeeReader(hasher DigestHasher, r io.Reader) HashingTeeReader
func (*HashingTeeReader) ReadAndVerifySignature ¶
func (v *HashingTeeReader) ReadAndVerifySignature(verifier DataSignatureVerifier) ([]byte, error)
func (*HashingTeeReader) ReadSignature ¶
func (v *HashingTeeReader) ReadSignature(m SigningMethod) (Signature, error)
func (*HashingTeeReader) ReadSignatureBytes ¶
func (v *HashingTeeReader) ReadSignatureBytes() ([]byte, error)
func (HashingTeeReader) SumToDigest ¶
func (v HashingTeeReader) SumToDigest() Digest
func (*HashingTeeReader) SumToDigestAndSignature ¶
func (v *HashingTeeReader) SumToDigestAndSignature(m SigningMethod) (d Digest, s Signature, err error)
type KeyStoreFactory ¶
type KeyStoreFactory interface {
CreatePublicKeyStore(SigningKeyHolder) PublicKeyStore
}
type KeyStoreFactoryMock ¶
type KeyStoreFactoryMock struct { CreatePublicKeyStoreMock mKeyStoreFactoryMockCreatePublicKeyStore // contains filtered or unexported fields }
KeyStoreFactoryMock implements KeyStoreFactory
func NewKeyStoreFactoryMock ¶
func NewKeyStoreFactoryMock(t minimock.Tester) *KeyStoreFactoryMock
NewKeyStoreFactoryMock returns a mock for KeyStoreFactory
func (*KeyStoreFactoryMock) CreatePublicKeyStore ¶
func (mmCreatePublicKeyStore *KeyStoreFactoryMock) CreatePublicKeyStore(s1 SigningKeyHolder) (p1 PublicKeyStore)
CreatePublicKeyStore implements KeyStoreFactory
func (*KeyStoreFactoryMock) CreatePublicKeyStoreAfterCounter ¶
func (mmCreatePublicKeyStore *KeyStoreFactoryMock) CreatePublicKeyStoreAfterCounter() uint64
CreatePublicKeyStoreAfterCounter returns a count of finished KeyStoreFactoryMock.CreatePublicKeyStore invocations
func (*KeyStoreFactoryMock) CreatePublicKeyStoreBeforeCounter ¶
func (mmCreatePublicKeyStore *KeyStoreFactoryMock) CreatePublicKeyStoreBeforeCounter() uint64
CreatePublicKeyStoreBeforeCounter returns a count of KeyStoreFactoryMock.CreatePublicKeyStore invocations
func (*KeyStoreFactoryMock) MinimockCreatePublicKeyStoreDone ¶
func (m *KeyStoreFactoryMock) MinimockCreatePublicKeyStoreDone() bool
MinimockCreatePublicKeyStoreDone returns true if the count of the CreatePublicKeyStore invocations corresponds the number of defined expectations
func (*KeyStoreFactoryMock) MinimockCreatePublicKeyStoreInspect ¶
func (m *KeyStoreFactoryMock) MinimockCreatePublicKeyStoreInspect()
MinimockCreatePublicKeyStoreInspect logs each unmet expectation
func (*KeyStoreFactoryMock) MinimockFinish ¶
func (m *KeyStoreFactoryMock) MinimockFinish()
MinimockFinish checks that all mocked methods have been called the expected number of times
func (*KeyStoreFactoryMock) MinimockWait ¶
func (m *KeyStoreFactoryMock) MinimockWait(timeout mm_time.Duration)
MinimockWait waits for all mocked methods to be called the expected number of times
type KeyStoreFactoryMockCreatePublicKeyStoreExpectation ¶
type KeyStoreFactoryMockCreatePublicKeyStoreExpectation struct { Counter uint64 // contains filtered or unexported fields }
KeyStoreFactoryMockCreatePublicKeyStoreExpectation specifies expectation struct of the KeyStoreFactory.CreatePublicKeyStore
func (*KeyStoreFactoryMockCreatePublicKeyStoreExpectation) Then ¶
func (e *KeyStoreFactoryMockCreatePublicKeyStoreExpectation) Then(p1 PublicKeyStore) *KeyStoreFactoryMock
Then sets up KeyStoreFactory.CreatePublicKeyStore return parameters for the expectation previously defined by the When method
type KeyStoreFactoryMockCreatePublicKeyStoreParams ¶
type KeyStoreFactoryMockCreatePublicKeyStoreParams struct {
// contains filtered or unexported fields
}
KeyStoreFactoryMockCreatePublicKeyStoreParams contains parameters of the KeyStoreFactory.CreatePublicKeyStore
type KeyStoreFactoryMockCreatePublicKeyStoreResults ¶
type KeyStoreFactoryMockCreatePublicKeyStoreResults struct {
// contains filtered or unexported fields
}
KeyStoreFactoryMockCreatePublicKeyStoreResults contains results of the KeyStoreFactory.CreatePublicKeyStore
type PairDigester ¶
type PairDigester interface { BasicDigester DigestPair(digest0 longbits.FoldableReader, digest1 longbits.FoldableReader) Digest }
type PairDigesterMock ¶
type PairDigesterMock struct { DigestPairMock mPairDigesterMockDigestPair GetDigestMethodMock mPairDigesterMockGetDigestMethod GetDigestSizeMock mPairDigesterMockGetDigestSize // contains filtered or unexported fields }
PairDigesterMock implements PairDigester
func NewPairDigesterMock ¶
func NewPairDigesterMock(t minimock.Tester) *PairDigesterMock
NewPairDigesterMock returns a mock for PairDigester
func (*PairDigesterMock) DigestPair ¶
func (mmDigestPair *PairDigesterMock) DigestPair(digest0 longbits.FoldableReader, digest1 longbits.FoldableReader) (d1 Digest)
DigestPair implements PairDigester
func (*PairDigesterMock) DigestPairAfterCounter ¶
func (mmDigestPair *PairDigesterMock) DigestPairAfterCounter() uint64
DigestPairAfterCounter returns a count of finished PairDigesterMock.DigestPair invocations
func (*PairDigesterMock) DigestPairBeforeCounter ¶
func (mmDigestPair *PairDigesterMock) DigestPairBeforeCounter() uint64
DigestPairBeforeCounter returns a count of PairDigesterMock.DigestPair invocations
func (*PairDigesterMock) GetDigestMethod ¶
func (mmGetDigestMethod *PairDigesterMock) GetDigestMethod() (d1 DigestMethod)
GetDigestMethod implements PairDigester
func (*PairDigesterMock) GetDigestMethodAfterCounter ¶
func (mmGetDigestMethod *PairDigesterMock) GetDigestMethodAfterCounter() uint64
GetDigestMethodAfterCounter returns a count of finished PairDigesterMock.GetDigestMethod invocations
func (*PairDigesterMock) GetDigestMethodBeforeCounter ¶
func (mmGetDigestMethod *PairDigesterMock) GetDigestMethodBeforeCounter() uint64
GetDigestMethodBeforeCounter returns a count of PairDigesterMock.GetDigestMethod invocations
func (*PairDigesterMock) GetDigestSize ¶
func (mmGetDigestSize *PairDigesterMock) GetDigestSize() (i1 int)
GetDigestSize implements PairDigester
func (*PairDigesterMock) GetDigestSizeAfterCounter ¶
func (mmGetDigestSize *PairDigesterMock) GetDigestSizeAfterCounter() uint64
GetDigestSizeAfterCounter returns a count of finished PairDigesterMock.GetDigestSize invocations
func (*PairDigesterMock) GetDigestSizeBeforeCounter ¶
func (mmGetDigestSize *PairDigesterMock) GetDigestSizeBeforeCounter() uint64
GetDigestSizeBeforeCounter returns a count of PairDigesterMock.GetDigestSize invocations
func (*PairDigesterMock) MinimockDigestPairDone ¶
func (m *PairDigesterMock) MinimockDigestPairDone() bool
MinimockDigestPairDone returns true if the count of the DigestPair invocations corresponds the number of defined expectations
func (*PairDigesterMock) MinimockDigestPairInspect ¶
func (m *PairDigesterMock) MinimockDigestPairInspect()
MinimockDigestPairInspect logs each unmet expectation
func (*PairDigesterMock) MinimockFinish ¶
func (m *PairDigesterMock) MinimockFinish()
MinimockFinish checks that all mocked methods have been called the expected number of times
func (*PairDigesterMock) MinimockGetDigestMethodDone ¶
func (m *PairDigesterMock) MinimockGetDigestMethodDone() bool
MinimockGetDigestMethodDone returns true if the count of the GetDigestMethod invocations corresponds the number of defined expectations
func (*PairDigesterMock) MinimockGetDigestMethodInspect ¶
func (m *PairDigesterMock) MinimockGetDigestMethodInspect()
MinimockGetDigestMethodInspect logs each unmet expectation
func (*PairDigesterMock) MinimockGetDigestSizeDone ¶
func (m *PairDigesterMock) MinimockGetDigestSizeDone() bool
MinimockGetDigestSizeDone returns true if the count of the GetDigestSize invocations corresponds the number of defined expectations
func (*PairDigesterMock) MinimockGetDigestSizeInspect ¶
func (m *PairDigesterMock) MinimockGetDigestSizeInspect()
MinimockGetDigestSizeInspect logs each unmet expectation
func (*PairDigesterMock) MinimockWait ¶
func (m *PairDigesterMock) MinimockWait(timeout mm_time.Duration)
MinimockWait waits for all mocked methods to be called the expected number of times
type PairDigesterMockDigestPairExpectation ¶
type PairDigesterMockDigestPairExpectation struct { Counter uint64 // contains filtered or unexported fields }
PairDigesterMockDigestPairExpectation specifies expectation struct of the PairDigester.DigestPair
func (*PairDigesterMockDigestPairExpectation) Then ¶
func (e *PairDigesterMockDigestPairExpectation) Then(d1 Digest) *PairDigesterMock
Then sets up PairDigester.DigestPair return parameters for the expectation previously defined by the When method
type PairDigesterMockDigestPairParams ¶
type PairDigesterMockDigestPairParams struct {
// contains filtered or unexported fields
}
PairDigesterMockDigestPairParams contains parameters of the PairDigester.DigestPair
type PairDigesterMockDigestPairResults ¶
type PairDigesterMockDigestPairResults struct {
// contains filtered or unexported fields
}
PairDigesterMockDigestPairResults contains results of the PairDigester.DigestPair
type PairDigesterMockGetDigestMethodExpectation ¶
type PairDigesterMockGetDigestMethodExpectation struct { Counter uint64 // contains filtered or unexported fields }
PairDigesterMockGetDigestMethodExpectation specifies expectation struct of the PairDigester.GetDigestMethod
type PairDigesterMockGetDigestMethodResults ¶
type PairDigesterMockGetDigestMethodResults struct {
// contains filtered or unexported fields
}
PairDigesterMockGetDigestMethodResults contains results of the PairDigester.GetDigestMethod
type PairDigesterMockGetDigestSizeExpectation ¶
type PairDigesterMockGetDigestSizeExpectation struct { Counter uint64 // contains filtered or unexported fields }
PairDigesterMockGetDigestSizeExpectation specifies expectation struct of the PairDigester.GetDigestSize
type PairDigesterMockGetDigestSizeResults ¶
type PairDigesterMockGetDigestSizeResults struct {
// contains filtered or unexported fields
}
PairDigesterMockGetDigestSizeResults contains results of the PairDigester.GetDigestSize
type PublicKeyStore ¶
type PublicKeyStore interface {
PublicKeyStore()
}
type PublicKeyStoreMock ¶
type PublicKeyStoreMock struct { PublicKeyStoreMock mPublicKeyStoreMockPublicKeyStore // contains filtered or unexported fields }
PublicKeyStoreMock implements PublicKeyStore
func NewPublicKeyStoreMock ¶
func NewPublicKeyStoreMock(t minimock.Tester) *PublicKeyStoreMock
NewPublicKeyStoreMock returns a mock for PublicKeyStore
func (*PublicKeyStoreMock) MinimockFinish ¶
func (m *PublicKeyStoreMock) MinimockFinish()
MinimockFinish checks that all mocked methods have been called the expected number of times
func (*PublicKeyStoreMock) MinimockPublicKeyStoreDone ¶
func (m *PublicKeyStoreMock) MinimockPublicKeyStoreDone() bool
MinimockPublicKeyStoreDone returns true if the count of the PublicKeyStore invocations corresponds the number of defined expectations
func (*PublicKeyStoreMock) MinimockPublicKeyStoreInspect ¶
func (m *PublicKeyStoreMock) MinimockPublicKeyStoreInspect()
MinimockPublicKeyStoreInspect logs each unmet expectation
func (*PublicKeyStoreMock) MinimockWait ¶
func (m *PublicKeyStoreMock) MinimockWait(timeout mm_time.Duration)
MinimockWait waits for all mocked methods to be called the expected number of times
func (*PublicKeyStoreMock) PublicKeyStore ¶
func (mmPublicKeyStore *PublicKeyStoreMock) PublicKeyStore()
PublicKeyStore implements PublicKeyStore
func (*PublicKeyStoreMock) PublicKeyStoreAfterCounter ¶
func (mmPublicKeyStore *PublicKeyStoreMock) PublicKeyStoreAfterCounter() uint64
PublicKeyStoreAfterCounter returns a count of finished PublicKeyStoreMock.PublicKeyStore invocations
func (*PublicKeyStoreMock) PublicKeyStoreBeforeCounter ¶
func (mmPublicKeyStore *PublicKeyStoreMock) PublicKeyStoreBeforeCounter() uint64
PublicKeyStoreBeforeCounter returns a count of PublicKeyStoreMock.PublicKeyStore invocations
type PublicKeyStoreMockPublicKeyStoreExpectation ¶
type PublicKeyStoreMockPublicKeyStoreExpectation struct { Counter uint64 // contains filtered or unexported fields }
PublicKeyStoreMockPublicKeyStoreExpectation specifies expectation struct of the PublicKeyStore.PublicKeyStore
type SecretKeyStore ¶
type SecretKeyStore interface { PrivateKeyStore() AsPublicKeyStore() PublicKeyStore }
type SequenceDigester ¶
type SequenceDigester interface { BasicDigester AddNext(digest longbits.FoldableReader) FinishSequence() Digest }
type SequenceDigesterMock ¶
type SequenceDigesterMock struct { AddNextMock mSequenceDigesterMockAddNext FinishSequenceMock mSequenceDigesterMockFinishSequence GetDigestMethodMock mSequenceDigesterMockGetDigestMethod GetDigestSizeMock mSequenceDigesterMockGetDigestSize // contains filtered or unexported fields }
SequenceDigesterMock implements SequenceDigester
func NewSequenceDigesterMock ¶
func NewSequenceDigesterMock(t minimock.Tester) *SequenceDigesterMock
NewSequenceDigesterMock returns a mock for SequenceDigester
func (*SequenceDigesterMock) AddNext ¶
func (mmAddNext *SequenceDigesterMock) AddNext(digest longbits.FoldableReader)
AddNext implements SequenceDigester
func (*SequenceDigesterMock) AddNextAfterCounter ¶
func (mmAddNext *SequenceDigesterMock) AddNextAfterCounter() uint64
AddNextAfterCounter returns a count of finished SequenceDigesterMock.AddNext invocations
func (*SequenceDigesterMock) AddNextBeforeCounter ¶
func (mmAddNext *SequenceDigesterMock) AddNextBeforeCounter() uint64
AddNextBeforeCounter returns a count of SequenceDigesterMock.AddNext invocations
func (*SequenceDigesterMock) FinishSequence ¶
func (mmFinishSequence *SequenceDigesterMock) FinishSequence() (d1 Digest)
FinishSequence implements SequenceDigester
func (*SequenceDigesterMock) FinishSequenceAfterCounter ¶
func (mmFinishSequence *SequenceDigesterMock) FinishSequenceAfterCounter() uint64
FinishSequenceAfterCounter returns a count of finished SequenceDigesterMock.FinishSequence invocations
func (*SequenceDigesterMock) FinishSequenceBeforeCounter ¶
func (mmFinishSequence *SequenceDigesterMock) FinishSequenceBeforeCounter() uint64
FinishSequenceBeforeCounter returns a count of SequenceDigesterMock.FinishSequence invocations
func (*SequenceDigesterMock) GetDigestMethod ¶
func (mmGetDigestMethod *SequenceDigesterMock) GetDigestMethod() (d1 DigestMethod)
GetDigestMethod implements SequenceDigester
func (*SequenceDigesterMock) GetDigestMethodAfterCounter ¶
func (mmGetDigestMethod *SequenceDigesterMock) GetDigestMethodAfterCounter() uint64
GetDigestMethodAfterCounter returns a count of finished SequenceDigesterMock.GetDigestMethod invocations
func (*SequenceDigesterMock) GetDigestMethodBeforeCounter ¶
func (mmGetDigestMethod *SequenceDigesterMock) GetDigestMethodBeforeCounter() uint64
GetDigestMethodBeforeCounter returns a count of SequenceDigesterMock.GetDigestMethod invocations
func (*SequenceDigesterMock) GetDigestSize ¶
func (mmGetDigestSize *SequenceDigesterMock) GetDigestSize() (i1 int)
GetDigestSize implements SequenceDigester
func (*SequenceDigesterMock) GetDigestSizeAfterCounter ¶
func (mmGetDigestSize *SequenceDigesterMock) GetDigestSizeAfterCounter() uint64
GetDigestSizeAfterCounter returns a count of finished SequenceDigesterMock.GetDigestSize invocations
func (*SequenceDigesterMock) GetDigestSizeBeforeCounter ¶
func (mmGetDigestSize *SequenceDigesterMock) GetDigestSizeBeforeCounter() uint64
GetDigestSizeBeforeCounter returns a count of SequenceDigesterMock.GetDigestSize invocations
func (*SequenceDigesterMock) MinimockAddNextDone ¶
func (m *SequenceDigesterMock) MinimockAddNextDone() bool
MinimockAddNextDone returns true if the count of the AddNext invocations corresponds the number of defined expectations
func (*SequenceDigesterMock) MinimockAddNextInspect ¶
func (m *SequenceDigesterMock) MinimockAddNextInspect()
MinimockAddNextInspect logs each unmet expectation
func (*SequenceDigesterMock) MinimockFinish ¶
func (m *SequenceDigesterMock) MinimockFinish()
MinimockFinish checks that all mocked methods have been called the expected number of times
func (*SequenceDigesterMock) MinimockFinishSequenceDone ¶
func (m *SequenceDigesterMock) MinimockFinishSequenceDone() bool
MinimockFinishSequenceDone returns true if the count of the FinishSequence invocations corresponds the number of defined expectations
func (*SequenceDigesterMock) MinimockFinishSequenceInspect ¶
func (m *SequenceDigesterMock) MinimockFinishSequenceInspect()
MinimockFinishSequenceInspect logs each unmet expectation
func (*SequenceDigesterMock) MinimockGetDigestMethodDone ¶
func (m *SequenceDigesterMock) MinimockGetDigestMethodDone() bool
MinimockGetDigestMethodDone returns true if the count of the GetDigestMethod invocations corresponds the number of defined expectations
func (*SequenceDigesterMock) MinimockGetDigestMethodInspect ¶
func (m *SequenceDigesterMock) MinimockGetDigestMethodInspect()
MinimockGetDigestMethodInspect logs each unmet expectation
func (*SequenceDigesterMock) MinimockGetDigestSizeDone ¶
func (m *SequenceDigesterMock) MinimockGetDigestSizeDone() bool
MinimockGetDigestSizeDone returns true if the count of the GetDigestSize invocations corresponds the number of defined expectations
func (*SequenceDigesterMock) MinimockGetDigestSizeInspect ¶
func (m *SequenceDigesterMock) MinimockGetDigestSizeInspect()
MinimockGetDigestSizeInspect logs each unmet expectation
func (*SequenceDigesterMock) MinimockWait ¶
func (m *SequenceDigesterMock) MinimockWait(timeout mm_time.Duration)
MinimockWait waits for all mocked methods to be called the expected number of times
type SequenceDigesterMockAddNextExpectation ¶
type SequenceDigesterMockAddNextExpectation struct { Counter uint64 // contains filtered or unexported fields }
SequenceDigesterMockAddNextExpectation specifies expectation struct of the SequenceDigester.AddNext
type SequenceDigesterMockAddNextParams ¶
type SequenceDigesterMockAddNextParams struct {
// contains filtered or unexported fields
}
SequenceDigesterMockAddNextParams contains parameters of the SequenceDigester.AddNext
type SequenceDigesterMockFinishSequenceExpectation ¶
type SequenceDigesterMockFinishSequenceExpectation struct { Counter uint64 // contains filtered or unexported fields }
SequenceDigesterMockFinishSequenceExpectation specifies expectation struct of the SequenceDigester.FinishSequence
type SequenceDigesterMockFinishSequenceResults ¶
type SequenceDigesterMockFinishSequenceResults struct {
// contains filtered or unexported fields
}
SequenceDigesterMockFinishSequenceResults contains results of the SequenceDigester.FinishSequence
type SequenceDigesterMockGetDigestMethodExpectation ¶
type SequenceDigesterMockGetDigestMethodExpectation struct { Counter uint64 // contains filtered or unexported fields }
SequenceDigesterMockGetDigestMethodExpectation specifies expectation struct of the SequenceDigester.GetDigestMethod
type SequenceDigesterMockGetDigestMethodResults ¶
type SequenceDigesterMockGetDigestMethodResults struct {
// contains filtered or unexported fields
}
SequenceDigesterMockGetDigestMethodResults contains results of the SequenceDigester.GetDigestMethod
type SequenceDigesterMockGetDigestSizeExpectation ¶
type SequenceDigesterMockGetDigestSizeExpectation struct { Counter uint64 // contains filtered or unexported fields }
SequenceDigesterMockGetDigestSizeExpectation specifies expectation struct of the SequenceDigester.GetDigestSize
type SequenceDigesterMockGetDigestSizeResults ¶
type SequenceDigesterMockGetDigestSizeResults struct {
// contains filtered or unexported fields
}
SequenceDigesterMockGetDigestSizeResults contains results of the SequenceDigester.GetDigestSize
type SequenceSigner ¶
type SequenceSigner interface { DigestSigner NewSequenceDigester() SequenceDigester }
type Signature ¶
type Signature struct {
// contains filtered or unexported fields
}
func NewSignature ¶
func NewSignature(data longbits.FoldableReader, method SignatureMethod) Signature
func (Signature) AsSignatureHolder ¶
func (p Signature) AsSignatureHolder() SignatureHolder
func (Signature) CopyOfSignature ¶
func (Signature) Equals ¶
func (p Signature) Equals(o SignatureHolder) bool
func (Signature) FixedByteSize ¶
func (Signature) GetSignatureMethod ¶
func (p Signature) GetSignatureMethod() SignatureMethod
type SignatureHolder ¶
type SignatureHolder interface { longbits.FoldableReader GetSignatureMethod() SignatureMethod Equals(other SignatureHolder) bool }
type SignatureHolderMock ¶
type SignatureHolderMock struct { AsByteStringMock mSignatureHolderMockAsByteString CopyToMock mSignatureHolderMockCopyTo EqualsMock mSignatureHolderMockEquals FixedByteSizeMock mSignatureHolderMockFixedByteSize FoldToUint64Mock mSignatureHolderMockFoldToUint64 GetSignatureMethodMock mSignatureHolderMockGetSignatureMethod WriteToMock mSignatureHolderMockWriteTo // contains filtered or unexported fields }
SignatureHolderMock implements SignatureHolder
func NewSignatureHolderMock ¶
func NewSignatureHolderMock(t minimock.Tester) *SignatureHolderMock
NewSignatureHolderMock returns a mock for SignatureHolder
func (*SignatureHolderMock) AsByteString ¶
func (mmAsByteString *SignatureHolderMock) AsByteString() (b1 longbits.ByteString)
AsByteString implements SignatureHolder
func (*SignatureHolderMock) AsByteStringAfterCounter ¶
func (mmAsByteString *SignatureHolderMock) AsByteStringAfterCounter() uint64
AsByteStringAfterCounter returns a count of finished SignatureHolderMock.AsByteString invocations
func (*SignatureHolderMock) AsByteStringBeforeCounter ¶
func (mmAsByteString *SignatureHolderMock) AsByteStringBeforeCounter() uint64
AsByteStringBeforeCounter returns a count of SignatureHolderMock.AsByteString invocations
func (*SignatureHolderMock) CopyTo ¶
func (mmCopyTo *SignatureHolderMock) CopyTo(p []byte) (i1 int)
CopyTo implements SignatureHolder
func (*SignatureHolderMock) CopyToAfterCounter ¶
func (mmCopyTo *SignatureHolderMock) CopyToAfterCounter() uint64
CopyToAfterCounter returns a count of finished SignatureHolderMock.CopyTo invocations
func (*SignatureHolderMock) CopyToBeforeCounter ¶
func (mmCopyTo *SignatureHolderMock) CopyToBeforeCounter() uint64
CopyToBeforeCounter returns a count of SignatureHolderMock.CopyTo invocations
func (*SignatureHolderMock) Equals ¶
func (mmEquals *SignatureHolderMock) Equals(other SignatureHolder) (b1 bool)
Equals implements SignatureHolder
func (*SignatureHolderMock) EqualsAfterCounter ¶
func (mmEquals *SignatureHolderMock) EqualsAfterCounter() uint64
EqualsAfterCounter returns a count of finished SignatureHolderMock.Equals invocations
func (*SignatureHolderMock) EqualsBeforeCounter ¶
func (mmEquals *SignatureHolderMock) EqualsBeforeCounter() uint64
EqualsBeforeCounter returns a count of SignatureHolderMock.Equals invocations
func (*SignatureHolderMock) FixedByteSize ¶
func (mmFixedByteSize *SignatureHolderMock) FixedByteSize() (i1 int)
FixedByteSize implements SignatureHolder
func (*SignatureHolderMock) FixedByteSizeAfterCounter ¶
func (mmFixedByteSize *SignatureHolderMock) FixedByteSizeAfterCounter() uint64
FixedByteSizeAfterCounter returns a count of finished SignatureHolderMock.FixedByteSize invocations
func (*SignatureHolderMock) FixedByteSizeBeforeCounter ¶
func (mmFixedByteSize *SignatureHolderMock) FixedByteSizeBeforeCounter() uint64
FixedByteSizeBeforeCounter returns a count of SignatureHolderMock.FixedByteSize invocations
func (*SignatureHolderMock) FoldToUint64 ¶
func (mmFoldToUint64 *SignatureHolderMock) FoldToUint64() (u1 uint64)
FoldToUint64 implements SignatureHolder
func (*SignatureHolderMock) FoldToUint64AfterCounter ¶
func (mmFoldToUint64 *SignatureHolderMock) FoldToUint64AfterCounter() uint64
FoldToUint64AfterCounter returns a count of finished SignatureHolderMock.FoldToUint64 invocations
func (*SignatureHolderMock) FoldToUint64BeforeCounter ¶
func (mmFoldToUint64 *SignatureHolderMock) FoldToUint64BeforeCounter() uint64
FoldToUint64BeforeCounter returns a count of SignatureHolderMock.FoldToUint64 invocations
func (*SignatureHolderMock) GetSignatureMethod ¶
func (mmGetSignatureMethod *SignatureHolderMock) GetSignatureMethod() (s1 SignatureMethod)
GetSignatureMethod implements SignatureHolder
func (*SignatureHolderMock) GetSignatureMethodAfterCounter ¶
func (mmGetSignatureMethod *SignatureHolderMock) GetSignatureMethodAfterCounter() uint64
GetSignatureMethodAfterCounter returns a count of finished SignatureHolderMock.GetSignatureMethod invocations
func (*SignatureHolderMock) GetSignatureMethodBeforeCounter ¶
func (mmGetSignatureMethod *SignatureHolderMock) GetSignatureMethodBeforeCounter() uint64
GetSignatureMethodBeforeCounter returns a count of SignatureHolderMock.GetSignatureMethod invocations
func (*SignatureHolderMock) MinimockAsByteStringDone ¶
func (m *SignatureHolderMock) MinimockAsByteStringDone() bool
MinimockAsByteStringDone returns true if the count of the AsByteString invocations corresponds the number of defined expectations
func (*SignatureHolderMock) MinimockAsByteStringInspect ¶
func (m *SignatureHolderMock) MinimockAsByteStringInspect()
MinimockAsByteStringInspect logs each unmet expectation
func (*SignatureHolderMock) MinimockCopyToDone ¶
func (m *SignatureHolderMock) MinimockCopyToDone() bool
MinimockCopyToDone returns true if the count of the CopyTo invocations corresponds the number of defined expectations
func (*SignatureHolderMock) MinimockCopyToInspect ¶
func (m *SignatureHolderMock) MinimockCopyToInspect()
MinimockCopyToInspect logs each unmet expectation
func (*SignatureHolderMock) MinimockEqualsDone ¶
func (m *SignatureHolderMock) MinimockEqualsDone() bool
MinimockEqualsDone returns true if the count of the Equals invocations corresponds the number of defined expectations
func (*SignatureHolderMock) MinimockEqualsInspect ¶
func (m *SignatureHolderMock) MinimockEqualsInspect()
MinimockEqualsInspect logs each unmet expectation
func (*SignatureHolderMock) MinimockFinish ¶
func (m *SignatureHolderMock) MinimockFinish()
MinimockFinish checks that all mocked methods have been called the expected number of times
func (*SignatureHolderMock) MinimockFixedByteSizeDone ¶
func (m *SignatureHolderMock) MinimockFixedByteSizeDone() bool
MinimockFixedByteSizeDone returns true if the count of the FixedByteSize invocations corresponds the number of defined expectations
func (*SignatureHolderMock) MinimockFixedByteSizeInspect ¶
func (m *SignatureHolderMock) MinimockFixedByteSizeInspect()
MinimockFixedByteSizeInspect logs each unmet expectation
func (*SignatureHolderMock) MinimockFoldToUint64Done ¶
func (m *SignatureHolderMock) MinimockFoldToUint64Done() bool
MinimockFoldToUint64Done returns true if the count of the FoldToUint64 invocations corresponds the number of defined expectations
func (*SignatureHolderMock) MinimockFoldToUint64Inspect ¶
func (m *SignatureHolderMock) MinimockFoldToUint64Inspect()
MinimockFoldToUint64Inspect logs each unmet expectation
func (*SignatureHolderMock) MinimockGetSignatureMethodDone ¶
func (m *SignatureHolderMock) MinimockGetSignatureMethodDone() bool
MinimockGetSignatureMethodDone returns true if the count of the GetSignatureMethod invocations corresponds the number of defined expectations
func (*SignatureHolderMock) MinimockGetSignatureMethodInspect ¶
func (m *SignatureHolderMock) MinimockGetSignatureMethodInspect()
MinimockGetSignatureMethodInspect logs each unmet expectation
func (*SignatureHolderMock) MinimockWait ¶
func (m *SignatureHolderMock) MinimockWait(timeout mm_time.Duration)
MinimockWait waits for all mocked methods to be called the expected number of times
func (*SignatureHolderMock) MinimockWriteToDone ¶
func (m *SignatureHolderMock) MinimockWriteToDone() bool
MinimockWriteToDone returns true if the count of the WriteTo invocations corresponds the number of defined expectations
func (*SignatureHolderMock) MinimockWriteToInspect ¶
func (m *SignatureHolderMock) MinimockWriteToInspect()
MinimockWriteToInspect logs each unmet expectation
func (*SignatureHolderMock) WriteTo ¶
func (mmWriteTo *SignatureHolderMock) WriteTo(w io.Writer) (n int64, err error)
WriteTo implements SignatureHolder
func (*SignatureHolderMock) WriteToAfterCounter ¶
func (mmWriteTo *SignatureHolderMock) WriteToAfterCounter() uint64
WriteToAfterCounter returns a count of finished SignatureHolderMock.WriteTo invocations
func (*SignatureHolderMock) WriteToBeforeCounter ¶
func (mmWriteTo *SignatureHolderMock) WriteToBeforeCounter() uint64
WriteToBeforeCounter returns a count of SignatureHolderMock.WriteTo invocations
type SignatureHolderMockAsByteStringExpectation ¶
type SignatureHolderMockAsByteStringExpectation struct { Counter uint64 // contains filtered or unexported fields }
SignatureHolderMockAsByteStringExpectation specifies expectation struct of the SignatureHolder.AsByteString
type SignatureHolderMockAsByteStringResults ¶
type SignatureHolderMockAsByteStringResults struct {
// contains filtered or unexported fields
}
SignatureHolderMockAsByteStringResults contains results of the SignatureHolder.AsByteString
type SignatureHolderMockCopyToExpectation ¶
type SignatureHolderMockCopyToExpectation struct { Counter uint64 // contains filtered or unexported fields }
SignatureHolderMockCopyToExpectation specifies expectation struct of the SignatureHolder.CopyTo
func (*SignatureHolderMockCopyToExpectation) Then ¶
func (e *SignatureHolderMockCopyToExpectation) Then(i1 int) *SignatureHolderMock
Then sets up SignatureHolder.CopyTo return parameters for the expectation previously defined by the When method
type SignatureHolderMockCopyToParams ¶
type SignatureHolderMockCopyToParams struct {
// contains filtered or unexported fields
}
SignatureHolderMockCopyToParams contains parameters of the SignatureHolder.CopyTo
type SignatureHolderMockCopyToResults ¶
type SignatureHolderMockCopyToResults struct {
// contains filtered or unexported fields
}
SignatureHolderMockCopyToResults contains results of the SignatureHolder.CopyTo
type SignatureHolderMockEqualsExpectation ¶
type SignatureHolderMockEqualsExpectation struct { Counter uint64 // contains filtered or unexported fields }
SignatureHolderMockEqualsExpectation specifies expectation struct of the SignatureHolder.Equals
func (*SignatureHolderMockEqualsExpectation) Then ¶
func (e *SignatureHolderMockEqualsExpectation) Then(b1 bool) *SignatureHolderMock
Then sets up SignatureHolder.Equals return parameters for the expectation previously defined by the When method
type SignatureHolderMockEqualsParams ¶
type SignatureHolderMockEqualsParams struct {
// contains filtered or unexported fields
}
SignatureHolderMockEqualsParams contains parameters of the SignatureHolder.Equals
type SignatureHolderMockEqualsResults ¶
type SignatureHolderMockEqualsResults struct {
// contains filtered or unexported fields
}
SignatureHolderMockEqualsResults contains results of the SignatureHolder.Equals
type SignatureHolderMockFixedByteSizeExpectation ¶
type SignatureHolderMockFixedByteSizeExpectation struct { Counter uint64 // contains filtered or unexported fields }
SignatureHolderMockFixedByteSizeExpectation specifies expectation struct of the SignatureHolder.FixedByteSize
type SignatureHolderMockFixedByteSizeResults ¶
type SignatureHolderMockFixedByteSizeResults struct {
// contains filtered or unexported fields
}
SignatureHolderMockFixedByteSizeResults contains results of the SignatureHolder.FixedByteSize
type SignatureHolderMockFoldToUint64Expectation ¶
type SignatureHolderMockFoldToUint64Expectation struct { Counter uint64 // contains filtered or unexported fields }
SignatureHolderMockFoldToUint64Expectation specifies expectation struct of the SignatureHolder.FoldToUint64
type SignatureHolderMockFoldToUint64Results ¶
type SignatureHolderMockFoldToUint64Results struct {
// contains filtered or unexported fields
}
SignatureHolderMockFoldToUint64Results contains results of the SignatureHolder.FoldToUint64
type SignatureHolderMockGetSignatureMethodExpectation ¶
type SignatureHolderMockGetSignatureMethodExpectation struct { Counter uint64 // contains filtered or unexported fields }
SignatureHolderMockGetSignatureMethodExpectation specifies expectation struct of the SignatureHolder.GetSignatureMethod
type SignatureHolderMockGetSignatureMethodResults ¶
type SignatureHolderMockGetSignatureMethodResults struct {
// contains filtered or unexported fields
}
SignatureHolderMockGetSignatureMethodResults contains results of the SignatureHolder.GetSignatureMethod
type SignatureHolderMockWriteToExpectation ¶
type SignatureHolderMockWriteToExpectation struct { Counter uint64 // contains filtered or unexported fields }
SignatureHolderMockWriteToExpectation specifies expectation struct of the SignatureHolder.WriteTo
func (*SignatureHolderMockWriteToExpectation) Then ¶
func (e *SignatureHolderMockWriteToExpectation) Then(n int64, err error) *SignatureHolderMock
Then sets up SignatureHolder.WriteTo return parameters for the expectation previously defined by the When method
type SignatureHolderMockWriteToParams ¶
type SignatureHolderMockWriteToParams struct {
// contains filtered or unexported fields
}
SignatureHolderMockWriteToParams contains parameters of the SignatureHolder.WriteTo
type SignatureHolderMockWriteToResults ¶
type SignatureHolderMockWriteToResults struct {
// contains filtered or unexported fields
}
SignatureHolderMockWriteToResults contains results of the SignatureHolder.WriteTo
type SignatureMethod ¶
type SignatureMethod string /* Digest + Signing methods */
func (SignatureMethod) DigestMethod ¶
func (s SignatureMethod) DigestMethod() DigestMethod
func (SignatureMethod) SigningMethod ¶
func (s SignatureMethod) SigningMethod() SigningMethod
func (SignatureMethod) String ¶
func (s SignatureMethod) String() string
type SignatureVerifier ¶
type SignatureVerifier interface { GetDefaultSigningMethod() SigningMethod IsDigestMethodSupported(m DigestMethod) bool IsSigningMethodSupported(m SigningMethod) bool IsValidDigestSignature(digest DigestHolder, signature SignatureHolder) bool IsValidDataSignature(data io.Reader, signature SignatureHolder) bool }
type SignatureVerifierFactory ¶
type SignatureVerifierFactory interface {
CreateSignatureVerifierWithPKS(PublicKeyStore) SignatureVerifier
}
type SignatureVerifierFactoryMock ¶
type SignatureVerifierFactoryMock struct { CreateSignatureVerifierWithPKSMock mSignatureVerifierFactoryMockCreateSignatureVerifierWithPKS // contains filtered or unexported fields }
SignatureVerifierFactoryMock implements SignatureVerifierFactory
func NewSignatureVerifierFactoryMock ¶
func NewSignatureVerifierFactoryMock(t minimock.Tester) *SignatureVerifierFactoryMock
NewSignatureVerifierFactoryMock returns a mock for SignatureVerifierFactory
func (*SignatureVerifierFactoryMock) CreateSignatureVerifierWithPKS ¶
func (mmCreateSignatureVerifierWithPKS *SignatureVerifierFactoryMock) CreateSignatureVerifierWithPKS(p1 PublicKeyStore) (s1 SignatureVerifier)
CreateSignatureVerifierWithPKS implements SignatureVerifierFactory
func (*SignatureVerifierFactoryMock) CreateSignatureVerifierWithPKSAfterCounter ¶
func (mmCreateSignatureVerifierWithPKS *SignatureVerifierFactoryMock) CreateSignatureVerifierWithPKSAfterCounter() uint64
CreateSignatureVerifierWithPKSAfterCounter returns a count of finished SignatureVerifierFactoryMock.CreateSignatureVerifierWithPKS invocations
func (*SignatureVerifierFactoryMock) CreateSignatureVerifierWithPKSBeforeCounter ¶
func (mmCreateSignatureVerifierWithPKS *SignatureVerifierFactoryMock) CreateSignatureVerifierWithPKSBeforeCounter() uint64
CreateSignatureVerifierWithPKSBeforeCounter returns a count of SignatureVerifierFactoryMock.CreateSignatureVerifierWithPKS invocations
func (*SignatureVerifierFactoryMock) MinimockCreateSignatureVerifierWithPKSDone ¶
func (m *SignatureVerifierFactoryMock) MinimockCreateSignatureVerifierWithPKSDone() bool
MinimockCreateSignatureVerifierWithPKSDone returns true if the count of the CreateSignatureVerifierWithPKS invocations corresponds the number of defined expectations
func (*SignatureVerifierFactoryMock) MinimockCreateSignatureVerifierWithPKSInspect ¶
func (m *SignatureVerifierFactoryMock) MinimockCreateSignatureVerifierWithPKSInspect()
MinimockCreateSignatureVerifierWithPKSInspect logs each unmet expectation
func (*SignatureVerifierFactoryMock) MinimockFinish ¶
func (m *SignatureVerifierFactoryMock) MinimockFinish()
MinimockFinish checks that all mocked methods have been called the expected number of times
func (*SignatureVerifierFactoryMock) MinimockWait ¶
func (m *SignatureVerifierFactoryMock) MinimockWait(timeout mm_time.Duration)
MinimockWait waits for all mocked methods to be called the expected number of times
type SignatureVerifierFactoryMockCreateSignatureVerifierWithPKSExpectation ¶
type SignatureVerifierFactoryMockCreateSignatureVerifierWithPKSExpectation struct { Counter uint64 // contains filtered or unexported fields }
SignatureVerifierFactoryMockCreateSignatureVerifierWithPKSExpectation specifies expectation struct of the SignatureVerifierFactory.CreateSignatureVerifierWithPKS
func (*SignatureVerifierFactoryMockCreateSignatureVerifierWithPKSExpectation) Then ¶
func (e *SignatureVerifierFactoryMockCreateSignatureVerifierWithPKSExpectation) Then(s1 SignatureVerifier) *SignatureVerifierFactoryMock
Then sets up SignatureVerifierFactory.CreateSignatureVerifierWithPKS return parameters for the expectation previously defined by the When method
type SignatureVerifierFactoryMockCreateSignatureVerifierWithPKSParams ¶
type SignatureVerifierFactoryMockCreateSignatureVerifierWithPKSParams struct {
// contains filtered or unexported fields
}
SignatureVerifierFactoryMockCreateSignatureVerifierWithPKSParams contains parameters of the SignatureVerifierFactory.CreateSignatureVerifierWithPKS
type SignatureVerifierFactoryMockCreateSignatureVerifierWithPKSResults ¶
type SignatureVerifierFactoryMockCreateSignatureVerifierWithPKSResults struct {
// contains filtered or unexported fields
}
SignatureVerifierFactoryMockCreateSignatureVerifierWithPKSResults contains results of the SignatureVerifierFactory.CreateSignatureVerifierWithPKS
type SignatureVerifierMock ¶
type SignatureVerifierMock struct { GetDefaultSigningMethodMock mSignatureVerifierMockGetDefaultSigningMethod IsDigestMethodSupportedMock mSignatureVerifierMockIsDigestMethodSupported IsSigningMethodSupportedMock mSignatureVerifierMockIsSigningMethodSupported IsValidDataSignatureMock mSignatureVerifierMockIsValidDataSignature IsValidDigestSignatureMock mSignatureVerifierMockIsValidDigestSignature // contains filtered or unexported fields }
SignatureVerifierMock implements SignatureVerifier
func NewSignatureVerifierMock ¶
func NewSignatureVerifierMock(t minimock.Tester) *SignatureVerifierMock
NewSignatureVerifierMock returns a mock for SignatureVerifier
func (*SignatureVerifierMock) GetDefaultSigningMethod ¶
func (mmGetDefaultSigningMethod *SignatureVerifierMock) GetDefaultSigningMethod() (s1 SigningMethod)
GetDefaultSigningMethod implements SignatureVerifier
func (*SignatureVerifierMock) GetDefaultSigningMethodAfterCounter ¶
func (mmGetDefaultSigningMethod *SignatureVerifierMock) GetDefaultSigningMethodAfterCounter() uint64
GetDefaultSigningMethodAfterCounter returns a count of finished SignatureVerifierMock.GetDefaultSigningMethod invocations
func (*SignatureVerifierMock) GetDefaultSigningMethodBeforeCounter ¶
func (mmGetDefaultSigningMethod *SignatureVerifierMock) GetDefaultSigningMethodBeforeCounter() uint64
GetDefaultSigningMethodBeforeCounter returns a count of SignatureVerifierMock.GetDefaultSigningMethod invocations
func (*SignatureVerifierMock) IsDigestMethodSupported ¶
func (mmIsDigestMethodSupported *SignatureVerifierMock) IsDigestMethodSupported(m DigestMethod) (b1 bool)
IsDigestMethodSupported implements SignatureVerifier
func (*SignatureVerifierMock) IsDigestMethodSupportedAfterCounter ¶
func (mmIsDigestMethodSupported *SignatureVerifierMock) IsDigestMethodSupportedAfterCounter() uint64
IsDigestMethodSupportedAfterCounter returns a count of finished SignatureVerifierMock.IsDigestMethodSupported invocations
func (*SignatureVerifierMock) IsDigestMethodSupportedBeforeCounter ¶
func (mmIsDigestMethodSupported *SignatureVerifierMock) IsDigestMethodSupportedBeforeCounter() uint64
IsDigestMethodSupportedBeforeCounter returns a count of SignatureVerifierMock.IsDigestMethodSupported invocations
func (*SignatureVerifierMock) IsSigningMethodSupported ¶
func (mmIsSigningMethodSupported *SignatureVerifierMock) IsSigningMethodSupported(m SigningMethod) (b1 bool)
IsSigningMethodSupported implements SignatureVerifier
func (*SignatureVerifierMock) IsSigningMethodSupportedAfterCounter ¶
func (mmIsSigningMethodSupported *SignatureVerifierMock) IsSigningMethodSupportedAfterCounter() uint64
IsSigningMethodSupportedAfterCounter returns a count of finished SignatureVerifierMock.IsSigningMethodSupported invocations
func (*SignatureVerifierMock) IsSigningMethodSupportedBeforeCounter ¶
func (mmIsSigningMethodSupported *SignatureVerifierMock) IsSigningMethodSupportedBeforeCounter() uint64
IsSigningMethodSupportedBeforeCounter returns a count of SignatureVerifierMock.IsSigningMethodSupported invocations
func (*SignatureVerifierMock) IsValidDataSignature ¶
func (mmIsValidDataSignature *SignatureVerifierMock) IsValidDataSignature(data io.Reader, signature SignatureHolder) (b1 bool)
IsValidDataSignature implements SignatureVerifier
func (*SignatureVerifierMock) IsValidDataSignatureAfterCounter ¶
func (mmIsValidDataSignature *SignatureVerifierMock) IsValidDataSignatureAfterCounter() uint64
IsValidDataSignatureAfterCounter returns a count of finished SignatureVerifierMock.IsValidDataSignature invocations
func (*SignatureVerifierMock) IsValidDataSignatureBeforeCounter ¶
func (mmIsValidDataSignature *SignatureVerifierMock) IsValidDataSignatureBeforeCounter() uint64
IsValidDataSignatureBeforeCounter returns a count of SignatureVerifierMock.IsValidDataSignature invocations
func (*SignatureVerifierMock) IsValidDigestSignature ¶
func (mmIsValidDigestSignature *SignatureVerifierMock) IsValidDigestSignature(digest DigestHolder, signature SignatureHolder) (b1 bool)
IsValidDigestSignature implements SignatureVerifier
func (*SignatureVerifierMock) IsValidDigestSignatureAfterCounter ¶
func (mmIsValidDigestSignature *SignatureVerifierMock) IsValidDigestSignatureAfterCounter() uint64
IsValidDigestSignatureAfterCounter returns a count of finished SignatureVerifierMock.IsValidDigestSignature invocations
func (*SignatureVerifierMock) IsValidDigestSignatureBeforeCounter ¶
func (mmIsValidDigestSignature *SignatureVerifierMock) IsValidDigestSignatureBeforeCounter() uint64
IsValidDigestSignatureBeforeCounter returns a count of SignatureVerifierMock.IsValidDigestSignature invocations
func (*SignatureVerifierMock) MinimockFinish ¶
func (m *SignatureVerifierMock) MinimockFinish()
MinimockFinish checks that all mocked methods have been called the expected number of times
func (*SignatureVerifierMock) MinimockGetDefaultSigningMethodDone ¶
func (m *SignatureVerifierMock) MinimockGetDefaultSigningMethodDone() bool
MinimockGetDefaultSigningMethodDone returns true if the count of the GetDefaultSigningMethod invocations corresponds the number of defined expectations
func (*SignatureVerifierMock) MinimockGetDefaultSigningMethodInspect ¶
func (m *SignatureVerifierMock) MinimockGetDefaultSigningMethodInspect()
MinimockGetDefaultSigningMethodInspect logs each unmet expectation
func (*SignatureVerifierMock) MinimockIsDigestMethodSupportedDone ¶
func (m *SignatureVerifierMock) MinimockIsDigestMethodSupportedDone() bool
MinimockIsDigestMethodSupportedDone returns true if the count of the IsDigestMethodSupported invocations corresponds the number of defined expectations
func (*SignatureVerifierMock) MinimockIsDigestMethodSupportedInspect ¶
func (m *SignatureVerifierMock) MinimockIsDigestMethodSupportedInspect()
MinimockIsDigestMethodSupportedInspect logs each unmet expectation
func (*SignatureVerifierMock) MinimockIsSigningMethodSupportedDone ¶
func (m *SignatureVerifierMock) MinimockIsSigningMethodSupportedDone() bool
MinimockIsSigningMethodSupportedDone returns true if the count of the IsSigningMethodSupported invocations corresponds the number of defined expectations
func (*SignatureVerifierMock) MinimockIsSigningMethodSupportedInspect ¶
func (m *SignatureVerifierMock) MinimockIsSigningMethodSupportedInspect()
MinimockIsSigningMethodSupportedInspect logs each unmet expectation
func (*SignatureVerifierMock) MinimockIsValidDataSignatureDone ¶
func (m *SignatureVerifierMock) MinimockIsValidDataSignatureDone() bool
MinimockIsValidDataSignatureDone returns true if the count of the IsValidDataSignature invocations corresponds the number of defined expectations
func (*SignatureVerifierMock) MinimockIsValidDataSignatureInspect ¶
func (m *SignatureVerifierMock) MinimockIsValidDataSignatureInspect()
MinimockIsValidDataSignatureInspect logs each unmet expectation
func (*SignatureVerifierMock) MinimockIsValidDigestSignatureDone ¶
func (m *SignatureVerifierMock) MinimockIsValidDigestSignatureDone() bool
MinimockIsValidDigestSignatureDone returns true if the count of the IsValidDigestSignature invocations corresponds the number of defined expectations
func (*SignatureVerifierMock) MinimockIsValidDigestSignatureInspect ¶
func (m *SignatureVerifierMock) MinimockIsValidDigestSignatureInspect()
MinimockIsValidDigestSignatureInspect logs each unmet expectation
func (*SignatureVerifierMock) MinimockWait ¶
func (m *SignatureVerifierMock) MinimockWait(timeout mm_time.Duration)
MinimockWait waits for all mocked methods to be called the expected number of times
type SignatureVerifierMockGetDefaultSigningMethodExpectation ¶
type SignatureVerifierMockGetDefaultSigningMethodExpectation struct { Counter uint64 // contains filtered or unexported fields }
SignatureVerifierMockGetDefaultSigningMethodExpectation specifies expectation struct of the SignatureVerifier.GetDefaultSigningMethod
type SignatureVerifierMockGetDefaultSigningMethodResults ¶
type SignatureVerifierMockGetDefaultSigningMethodResults struct {
// contains filtered or unexported fields
}
SignatureVerifierMockGetDefaultSigningMethodResults contains results of the SignatureVerifier.GetDefaultSigningMethod
type SignatureVerifierMockIsDigestMethodSupportedExpectation ¶
type SignatureVerifierMockIsDigestMethodSupportedExpectation struct { Counter uint64 // contains filtered or unexported fields }
SignatureVerifierMockIsDigestMethodSupportedExpectation specifies expectation struct of the SignatureVerifier.IsDigestMethodSupported
func (*SignatureVerifierMockIsDigestMethodSupportedExpectation) Then ¶
func (e *SignatureVerifierMockIsDigestMethodSupportedExpectation) Then(b1 bool) *SignatureVerifierMock
Then sets up SignatureVerifier.IsDigestMethodSupported return parameters for the expectation previously defined by the When method
type SignatureVerifierMockIsDigestMethodSupportedParams ¶
type SignatureVerifierMockIsDigestMethodSupportedParams struct {
// contains filtered or unexported fields
}
SignatureVerifierMockIsDigestMethodSupportedParams contains parameters of the SignatureVerifier.IsDigestMethodSupported
type SignatureVerifierMockIsDigestMethodSupportedResults ¶
type SignatureVerifierMockIsDigestMethodSupportedResults struct {
// contains filtered or unexported fields
}
SignatureVerifierMockIsDigestMethodSupportedResults contains results of the SignatureVerifier.IsDigestMethodSupported
type SignatureVerifierMockIsSigningMethodSupportedExpectation ¶
type SignatureVerifierMockIsSigningMethodSupportedExpectation struct { Counter uint64 // contains filtered or unexported fields }
SignatureVerifierMockIsSigningMethodSupportedExpectation specifies expectation struct of the SignatureVerifier.IsSigningMethodSupported
func (*SignatureVerifierMockIsSigningMethodSupportedExpectation) Then ¶
func (e *SignatureVerifierMockIsSigningMethodSupportedExpectation) Then(b1 bool) *SignatureVerifierMock
Then sets up SignatureVerifier.IsSigningMethodSupported return parameters for the expectation previously defined by the When method
type SignatureVerifierMockIsSigningMethodSupportedParams ¶
type SignatureVerifierMockIsSigningMethodSupportedParams struct {
// contains filtered or unexported fields
}
SignatureVerifierMockIsSigningMethodSupportedParams contains parameters of the SignatureVerifier.IsSigningMethodSupported
type SignatureVerifierMockIsSigningMethodSupportedResults ¶
type SignatureVerifierMockIsSigningMethodSupportedResults struct {
// contains filtered or unexported fields
}
SignatureVerifierMockIsSigningMethodSupportedResults contains results of the SignatureVerifier.IsSigningMethodSupported
type SignatureVerifierMockIsValidDataSignatureExpectation ¶
type SignatureVerifierMockIsValidDataSignatureExpectation struct { Counter uint64 // contains filtered or unexported fields }
SignatureVerifierMockIsValidDataSignatureExpectation specifies expectation struct of the SignatureVerifier.IsValidDataSignature
func (*SignatureVerifierMockIsValidDataSignatureExpectation) Then ¶
func (e *SignatureVerifierMockIsValidDataSignatureExpectation) Then(b1 bool) *SignatureVerifierMock
Then sets up SignatureVerifier.IsValidDataSignature return parameters for the expectation previously defined by the When method
type SignatureVerifierMockIsValidDataSignatureParams ¶
type SignatureVerifierMockIsValidDataSignatureParams struct {
// contains filtered or unexported fields
}
SignatureVerifierMockIsValidDataSignatureParams contains parameters of the SignatureVerifier.IsValidDataSignature
type SignatureVerifierMockIsValidDataSignatureResults ¶
type SignatureVerifierMockIsValidDataSignatureResults struct {
// contains filtered or unexported fields
}
SignatureVerifierMockIsValidDataSignatureResults contains results of the SignatureVerifier.IsValidDataSignature
type SignatureVerifierMockIsValidDigestSignatureExpectation ¶
type SignatureVerifierMockIsValidDigestSignatureExpectation struct { Counter uint64 // contains filtered or unexported fields }
SignatureVerifierMockIsValidDigestSignatureExpectation specifies expectation struct of the SignatureVerifier.IsValidDigestSignature
func (*SignatureVerifierMockIsValidDigestSignatureExpectation) Then ¶
func (e *SignatureVerifierMockIsValidDigestSignatureExpectation) Then(b1 bool) *SignatureVerifierMock
Then sets up SignatureVerifier.IsValidDigestSignature return parameters for the expectation previously defined by the When method
type SignatureVerifierMockIsValidDigestSignatureParams ¶
type SignatureVerifierMockIsValidDigestSignatureParams struct {
// contains filtered or unexported fields
}
SignatureVerifierMockIsValidDigestSignatureParams contains parameters of the SignatureVerifier.IsValidDigestSignature
type SignatureVerifierMockIsValidDigestSignatureResults ¶
type SignatureVerifierMockIsValidDigestSignatureResults struct {
// contains filtered or unexported fields
}
SignatureVerifierMockIsValidDigestSignatureResults contains results of the SignatureVerifier.IsValidDigestSignature
type SignedData ¶
type SignedData struct {
// contains filtered or unexported fields
}
func NewSignedData ¶
func NewSignedData(data longbits.FixedReader, digest Digest, signature Signature) SignedData
func SignDataByDataSigner ¶
func SignDataByDataSigner(data longbits.FixedReader, signer DataSigner) SignedData
func (SignedData) FixedByteSize ¶
func (r SignedData) FixedByteSize() int
func (SignedData) GetSignedDigest ¶
func (r SignedData) GetSignedDigest() SignedDigest
func (SignedData) IsEmpty ¶
func (r SignedData) IsEmpty() bool
func (SignedData) String ¶
func (r SignedData) String() string
type SignedDigest ¶
type SignedDigest struct {
// contains filtered or unexported fields
}
func NewSignedDigest ¶
func NewSignedDigest(digest Digest, signature Signature) SignedDigest
func (SignedDigest) AsSignedDigestHolder ¶
func (r SignedDigest) AsSignedDigestHolder() SignedDigestHolder
func (SignedDigest) Equals ¶
func (r SignedDigest) Equals(o SignedDigestHolder) bool
func (SignedDigest) GetDigest ¶
func (r SignedDigest) GetDigest() Digest
func (SignedDigest) GetDigestHolder ¶
func (r SignedDigest) GetDigestHolder() DigestHolder
func (SignedDigest) GetSignature ¶
func (r SignedDigest) GetSignature() Signature
func (SignedDigest) GetSignatureHolder ¶
func (r SignedDigest) GetSignatureHolder() SignatureHolder
func (SignedDigest) GetSignatureMethod ¶
func (r SignedDigest) GetSignatureMethod() SignatureMethod
func (SignedDigest) IsEmpty ¶
func (r SignedDigest) IsEmpty() bool
func (SignedDigest) IsVerifiableBy ¶
func (r SignedDigest) IsVerifiableBy(v SignatureVerifier) bool
func (SignedDigest) String ¶
func (r SignedDigest) String() string
func (SignedDigest) VerifyWith ¶
func (r SignedDigest) VerifyWith(v SignatureVerifier) bool
type SignedDigestHolder ¶
type SignedDigestHolder interface { Equals(o SignedDigestHolder) bool GetDigestHolder() DigestHolder GetSignatureHolder() SignatureHolder GetSignatureMethod() SignatureMethod IsVerifiableBy(v SignatureVerifier) bool VerifyWith(v SignatureVerifier) bool }
type SignedEvidenceHolder ¶
type SignedEvidenceHolder interface {
GetEvidence() SignedData
}
type SigningKey ¶
type SigningKey struct {
// contains filtered or unexported fields
}
func NewSigningKey ¶
func NewSigningKey(data longbits.FoldableReader, method SigningMethod, keyType SigningKeyType) SigningKey
func (SigningKey) Equals ¶
func (p SigningKey) Equals(o SigningKeyHolder) bool
func (SigningKey) FixedByteSize ¶
func (p SigningKey) FixedByteSize() int
func (SigningKey) GetSigningKeyType ¶
func (p SigningKey) GetSigningKeyType() SigningKeyType
func (SigningKey) GetSigningMethod ¶
func (p SigningKey) GetSigningMethod() SigningMethod
func (SigningKey) IsEmpty ¶
func (p SigningKey) IsEmpty() bool
func (SigningKey) String ¶
func (p SigningKey) String() string
type SigningKeyHolder ¶
type SigningKeyHolder interface { longbits.FoldableReader GetSigningMethod() SigningMethod GetSigningKeyType() SigningKeyType Equals(other SigningKeyHolder) bool }
type SigningKeyHolderMock ¶
type SigningKeyHolderMock struct { AsByteStringMock mSigningKeyHolderMockAsByteString CopyToMock mSigningKeyHolderMockCopyTo EqualsMock mSigningKeyHolderMockEquals FixedByteSizeMock mSigningKeyHolderMockFixedByteSize FoldToUint64Mock mSigningKeyHolderMockFoldToUint64 GetSigningKeyTypeMock mSigningKeyHolderMockGetSigningKeyType GetSigningMethodMock mSigningKeyHolderMockGetSigningMethod WriteToMock mSigningKeyHolderMockWriteTo // contains filtered or unexported fields }
SigningKeyHolderMock implements SigningKeyHolder
func NewSigningKeyHolderMock ¶
func NewSigningKeyHolderMock(t minimock.Tester) *SigningKeyHolderMock
NewSigningKeyHolderMock returns a mock for SigningKeyHolder
func (*SigningKeyHolderMock) AsByteString ¶
func (mmAsByteString *SigningKeyHolderMock) AsByteString() (b1 longbits.ByteString)
AsByteString implements SigningKeyHolder
func (*SigningKeyHolderMock) AsByteStringAfterCounter ¶
func (mmAsByteString *SigningKeyHolderMock) AsByteStringAfterCounter() uint64
AsByteStringAfterCounter returns a count of finished SigningKeyHolderMock.AsByteString invocations
func (*SigningKeyHolderMock) AsByteStringBeforeCounter ¶
func (mmAsByteString *SigningKeyHolderMock) AsByteStringBeforeCounter() uint64
AsByteStringBeforeCounter returns a count of SigningKeyHolderMock.AsByteString invocations
func (*SigningKeyHolderMock) CopyTo ¶
func (mmCopyTo *SigningKeyHolderMock) CopyTo(p []byte) (i1 int)
CopyTo implements SigningKeyHolder
func (*SigningKeyHolderMock) CopyToAfterCounter ¶
func (mmCopyTo *SigningKeyHolderMock) CopyToAfterCounter() uint64
CopyToAfterCounter returns a count of finished SigningKeyHolderMock.CopyTo invocations
func (*SigningKeyHolderMock) CopyToBeforeCounter ¶
func (mmCopyTo *SigningKeyHolderMock) CopyToBeforeCounter() uint64
CopyToBeforeCounter returns a count of SigningKeyHolderMock.CopyTo invocations
func (*SigningKeyHolderMock) Equals ¶
func (mmEquals *SigningKeyHolderMock) Equals(other SigningKeyHolder) (b1 bool)
Equals implements SigningKeyHolder
func (*SigningKeyHolderMock) EqualsAfterCounter ¶
func (mmEquals *SigningKeyHolderMock) EqualsAfterCounter() uint64
EqualsAfterCounter returns a count of finished SigningKeyHolderMock.Equals invocations
func (*SigningKeyHolderMock) EqualsBeforeCounter ¶
func (mmEquals *SigningKeyHolderMock) EqualsBeforeCounter() uint64
EqualsBeforeCounter returns a count of SigningKeyHolderMock.Equals invocations
func (*SigningKeyHolderMock) FixedByteSize ¶
func (mmFixedByteSize *SigningKeyHolderMock) FixedByteSize() (i1 int)
FixedByteSize implements SigningKeyHolder
func (*SigningKeyHolderMock) FixedByteSizeAfterCounter ¶
func (mmFixedByteSize *SigningKeyHolderMock) FixedByteSizeAfterCounter() uint64
FixedByteSizeAfterCounter returns a count of finished SigningKeyHolderMock.FixedByteSize invocations
func (*SigningKeyHolderMock) FixedByteSizeBeforeCounter ¶
func (mmFixedByteSize *SigningKeyHolderMock) FixedByteSizeBeforeCounter() uint64
FixedByteSizeBeforeCounter returns a count of SigningKeyHolderMock.FixedByteSize invocations
func (*SigningKeyHolderMock) FoldToUint64 ¶
func (mmFoldToUint64 *SigningKeyHolderMock) FoldToUint64() (u1 uint64)
FoldToUint64 implements SigningKeyHolder
func (*SigningKeyHolderMock) FoldToUint64AfterCounter ¶
func (mmFoldToUint64 *SigningKeyHolderMock) FoldToUint64AfterCounter() uint64
FoldToUint64AfterCounter returns a count of finished SigningKeyHolderMock.FoldToUint64 invocations
func (*SigningKeyHolderMock) FoldToUint64BeforeCounter ¶
func (mmFoldToUint64 *SigningKeyHolderMock) FoldToUint64BeforeCounter() uint64
FoldToUint64BeforeCounter returns a count of SigningKeyHolderMock.FoldToUint64 invocations
func (*SigningKeyHolderMock) GetSigningKeyType ¶
func (mmGetSigningKeyType *SigningKeyHolderMock) GetSigningKeyType() (s1 SigningKeyType)
GetSigningKeyType implements SigningKeyHolder
func (*SigningKeyHolderMock) GetSigningKeyTypeAfterCounter ¶
func (mmGetSigningKeyType *SigningKeyHolderMock) GetSigningKeyTypeAfterCounter() uint64
GetSigningKeyTypeAfterCounter returns a count of finished SigningKeyHolderMock.GetSigningKeyType invocations
func (*SigningKeyHolderMock) GetSigningKeyTypeBeforeCounter ¶
func (mmGetSigningKeyType *SigningKeyHolderMock) GetSigningKeyTypeBeforeCounter() uint64
GetSigningKeyTypeBeforeCounter returns a count of SigningKeyHolderMock.GetSigningKeyType invocations
func (*SigningKeyHolderMock) GetSigningMethod ¶
func (mmGetSigningMethod *SigningKeyHolderMock) GetSigningMethod() (s1 SigningMethod)
GetSigningMethod implements SigningKeyHolder
func (*SigningKeyHolderMock) GetSigningMethodAfterCounter ¶
func (mmGetSigningMethod *SigningKeyHolderMock) GetSigningMethodAfterCounter() uint64
GetSigningMethodAfterCounter returns a count of finished SigningKeyHolderMock.GetSigningMethod invocations
func (*SigningKeyHolderMock) GetSigningMethodBeforeCounter ¶
func (mmGetSigningMethod *SigningKeyHolderMock) GetSigningMethodBeforeCounter() uint64
GetSigningMethodBeforeCounter returns a count of SigningKeyHolderMock.GetSigningMethod invocations
func (*SigningKeyHolderMock) MinimockAsByteStringDone ¶
func (m *SigningKeyHolderMock) MinimockAsByteStringDone() bool
MinimockAsByteStringDone returns true if the count of the AsByteString invocations corresponds the number of defined expectations
func (*SigningKeyHolderMock) MinimockAsByteStringInspect ¶
func (m *SigningKeyHolderMock) MinimockAsByteStringInspect()
MinimockAsByteStringInspect logs each unmet expectation
func (*SigningKeyHolderMock) MinimockCopyToDone ¶
func (m *SigningKeyHolderMock) MinimockCopyToDone() bool
MinimockCopyToDone returns true if the count of the CopyTo invocations corresponds the number of defined expectations
func (*SigningKeyHolderMock) MinimockCopyToInspect ¶
func (m *SigningKeyHolderMock) MinimockCopyToInspect()
MinimockCopyToInspect logs each unmet expectation
func (*SigningKeyHolderMock) MinimockEqualsDone ¶
func (m *SigningKeyHolderMock) MinimockEqualsDone() bool
MinimockEqualsDone returns true if the count of the Equals invocations corresponds the number of defined expectations
func (*SigningKeyHolderMock) MinimockEqualsInspect ¶
func (m *SigningKeyHolderMock) MinimockEqualsInspect()
MinimockEqualsInspect logs each unmet expectation
func (*SigningKeyHolderMock) MinimockFinish ¶
func (m *SigningKeyHolderMock) MinimockFinish()
MinimockFinish checks that all mocked methods have been called the expected number of times
func (*SigningKeyHolderMock) MinimockFixedByteSizeDone ¶
func (m *SigningKeyHolderMock) MinimockFixedByteSizeDone() bool
MinimockFixedByteSizeDone returns true if the count of the FixedByteSize invocations corresponds the number of defined expectations
func (*SigningKeyHolderMock) MinimockFixedByteSizeInspect ¶
func (m *SigningKeyHolderMock) MinimockFixedByteSizeInspect()
MinimockFixedByteSizeInspect logs each unmet expectation
func (*SigningKeyHolderMock) MinimockFoldToUint64Done ¶
func (m *SigningKeyHolderMock) MinimockFoldToUint64Done() bool
MinimockFoldToUint64Done returns true if the count of the FoldToUint64 invocations corresponds the number of defined expectations
func (*SigningKeyHolderMock) MinimockFoldToUint64Inspect ¶
func (m *SigningKeyHolderMock) MinimockFoldToUint64Inspect()
MinimockFoldToUint64Inspect logs each unmet expectation
func (*SigningKeyHolderMock) MinimockGetSigningKeyTypeDone ¶
func (m *SigningKeyHolderMock) MinimockGetSigningKeyTypeDone() bool
MinimockGetSigningKeyTypeDone returns true if the count of the GetSigningKeyType invocations corresponds the number of defined expectations
func (*SigningKeyHolderMock) MinimockGetSigningKeyTypeInspect ¶
func (m *SigningKeyHolderMock) MinimockGetSigningKeyTypeInspect()
MinimockGetSigningKeyTypeInspect logs each unmet expectation
func (*SigningKeyHolderMock) MinimockGetSigningMethodDone ¶
func (m *SigningKeyHolderMock) MinimockGetSigningMethodDone() bool
MinimockGetSigningMethodDone returns true if the count of the GetSigningMethod invocations corresponds the number of defined expectations
func (*SigningKeyHolderMock) MinimockGetSigningMethodInspect ¶
func (m *SigningKeyHolderMock) MinimockGetSigningMethodInspect()
MinimockGetSigningMethodInspect logs each unmet expectation
func (*SigningKeyHolderMock) MinimockWait ¶
func (m *SigningKeyHolderMock) MinimockWait(timeout mm_time.Duration)
MinimockWait waits for all mocked methods to be called the expected number of times
func (*SigningKeyHolderMock) MinimockWriteToDone ¶
func (m *SigningKeyHolderMock) MinimockWriteToDone() bool
MinimockWriteToDone returns true if the count of the WriteTo invocations corresponds the number of defined expectations
func (*SigningKeyHolderMock) MinimockWriteToInspect ¶
func (m *SigningKeyHolderMock) MinimockWriteToInspect()
MinimockWriteToInspect logs each unmet expectation
func (*SigningKeyHolderMock) WriteTo ¶
func (mmWriteTo *SigningKeyHolderMock) WriteTo(w io.Writer) (n int64, err error)
WriteTo implements SigningKeyHolder
func (*SigningKeyHolderMock) WriteToAfterCounter ¶
func (mmWriteTo *SigningKeyHolderMock) WriteToAfterCounter() uint64
WriteToAfterCounter returns a count of finished SigningKeyHolderMock.WriteTo invocations
func (*SigningKeyHolderMock) WriteToBeforeCounter ¶
func (mmWriteTo *SigningKeyHolderMock) WriteToBeforeCounter() uint64
WriteToBeforeCounter returns a count of SigningKeyHolderMock.WriteTo invocations
type SigningKeyHolderMockAsByteStringExpectation ¶
type SigningKeyHolderMockAsByteStringExpectation struct { Counter uint64 // contains filtered or unexported fields }
SigningKeyHolderMockAsByteStringExpectation specifies expectation struct of the SigningKeyHolder.AsByteString
type SigningKeyHolderMockAsByteStringResults ¶
type SigningKeyHolderMockAsByteStringResults struct {
// contains filtered or unexported fields
}
SigningKeyHolderMockAsByteStringResults contains results of the SigningKeyHolder.AsByteString
type SigningKeyHolderMockCopyToExpectation ¶
type SigningKeyHolderMockCopyToExpectation struct { Counter uint64 // contains filtered or unexported fields }
SigningKeyHolderMockCopyToExpectation specifies expectation struct of the SigningKeyHolder.CopyTo
func (*SigningKeyHolderMockCopyToExpectation) Then ¶
func (e *SigningKeyHolderMockCopyToExpectation) Then(i1 int) *SigningKeyHolderMock
Then sets up SigningKeyHolder.CopyTo return parameters for the expectation previously defined by the When method
type SigningKeyHolderMockCopyToParams ¶
type SigningKeyHolderMockCopyToParams struct {
// contains filtered or unexported fields
}
SigningKeyHolderMockCopyToParams contains parameters of the SigningKeyHolder.CopyTo
type SigningKeyHolderMockCopyToResults ¶
type SigningKeyHolderMockCopyToResults struct {
// contains filtered or unexported fields
}
SigningKeyHolderMockCopyToResults contains results of the SigningKeyHolder.CopyTo
type SigningKeyHolderMockEqualsExpectation ¶
type SigningKeyHolderMockEqualsExpectation struct { Counter uint64 // contains filtered or unexported fields }
SigningKeyHolderMockEqualsExpectation specifies expectation struct of the SigningKeyHolder.Equals
func (*SigningKeyHolderMockEqualsExpectation) Then ¶
func (e *SigningKeyHolderMockEqualsExpectation) Then(b1 bool) *SigningKeyHolderMock
Then sets up SigningKeyHolder.Equals return parameters for the expectation previously defined by the When method
type SigningKeyHolderMockEqualsParams ¶
type SigningKeyHolderMockEqualsParams struct {
// contains filtered or unexported fields
}
SigningKeyHolderMockEqualsParams contains parameters of the SigningKeyHolder.Equals
type SigningKeyHolderMockEqualsResults ¶
type SigningKeyHolderMockEqualsResults struct {
// contains filtered or unexported fields
}
SigningKeyHolderMockEqualsResults contains results of the SigningKeyHolder.Equals
type SigningKeyHolderMockFixedByteSizeExpectation ¶
type SigningKeyHolderMockFixedByteSizeExpectation struct { Counter uint64 // contains filtered or unexported fields }
SigningKeyHolderMockFixedByteSizeExpectation specifies expectation struct of the SigningKeyHolder.FixedByteSize
type SigningKeyHolderMockFixedByteSizeResults ¶
type SigningKeyHolderMockFixedByteSizeResults struct {
// contains filtered or unexported fields
}
SigningKeyHolderMockFixedByteSizeResults contains results of the SigningKeyHolder.FixedByteSize
type SigningKeyHolderMockFoldToUint64Expectation ¶
type SigningKeyHolderMockFoldToUint64Expectation struct { Counter uint64 // contains filtered or unexported fields }
SigningKeyHolderMockFoldToUint64Expectation specifies expectation struct of the SigningKeyHolder.FoldToUint64
type SigningKeyHolderMockFoldToUint64Results ¶
type SigningKeyHolderMockFoldToUint64Results struct {
// contains filtered or unexported fields
}
SigningKeyHolderMockFoldToUint64Results contains results of the SigningKeyHolder.FoldToUint64
type SigningKeyHolderMockGetSigningKeyTypeExpectation ¶
type SigningKeyHolderMockGetSigningKeyTypeExpectation struct { Counter uint64 // contains filtered or unexported fields }
SigningKeyHolderMockGetSigningKeyTypeExpectation specifies expectation struct of the SigningKeyHolder.GetSigningKeyType
type SigningKeyHolderMockGetSigningKeyTypeResults ¶
type SigningKeyHolderMockGetSigningKeyTypeResults struct {
// contains filtered or unexported fields
}
SigningKeyHolderMockGetSigningKeyTypeResults contains results of the SigningKeyHolder.GetSigningKeyType
type SigningKeyHolderMockGetSigningMethodExpectation ¶
type SigningKeyHolderMockGetSigningMethodExpectation struct { Counter uint64 // contains filtered or unexported fields }
SigningKeyHolderMockGetSigningMethodExpectation specifies expectation struct of the SigningKeyHolder.GetSigningMethod
type SigningKeyHolderMockGetSigningMethodResults ¶
type SigningKeyHolderMockGetSigningMethodResults struct {
// contains filtered or unexported fields
}
SigningKeyHolderMockGetSigningMethodResults contains results of the SigningKeyHolder.GetSigningMethod
type SigningKeyHolderMockWriteToExpectation ¶
type SigningKeyHolderMockWriteToExpectation struct { Counter uint64 // contains filtered or unexported fields }
SigningKeyHolderMockWriteToExpectation specifies expectation struct of the SigningKeyHolder.WriteTo
func (*SigningKeyHolderMockWriteToExpectation) Then ¶
func (e *SigningKeyHolderMockWriteToExpectation) Then(n int64, err error) *SigningKeyHolderMock
Then sets up SigningKeyHolder.WriteTo return parameters for the expectation previously defined by the When method
type SigningKeyHolderMockWriteToParams ¶
type SigningKeyHolderMockWriteToParams struct {
// contains filtered or unexported fields
}
SigningKeyHolderMockWriteToParams contains parameters of the SigningKeyHolder.WriteTo
type SigningKeyHolderMockWriteToResults ¶
type SigningKeyHolderMockWriteToResults struct {
// contains filtered or unexported fields
}
SigningKeyHolderMockWriteToResults contains results of the SigningKeyHolder.WriteTo
type SigningKeyType ¶
type SigningKeyType uint8
const ( SymmetricKey SigningKeyType = iota SecretAsymmetricKey PublicAsymmetricKey )
func (SigningKeyType) IsSecret ¶
func (v SigningKeyType) IsSecret() bool
func (SigningKeyType) IsSymmetric ¶
func (v SigningKeyType) IsSymmetric() bool
type SigningMethod ¶
type SigningMethod string
func (SigningMethod) String ¶
func (s SigningMethod) String() string
Source Files ¶
- cert.go
- certificate_holder_mock.go
- ciphers.go
- containers.go
- data_digester_mock.go
- data_signer_mock.go
- digest.go
- digest_holder_mock.go
- digest_signer_mock.go
- forking_digester_mock.go
- hasher.go
- key_store_factory_mock.go
- keystore.go
- pair_digester_mock.go
- public_key_store_mock.go
- sequence_digester_mock.go
- signature.go
- signature_holder_mock.go
- signature_verifier_factory_mock.go
- signature_verifier_mock.go
- signing_key_holder_mock.go