Documentation ¶
Index ¶
- type BCCSPEncrypterEntity
- type BCCSPEncrypterSignerEntity
- type BCCSPEntity
- type BCCSPSignerEntity
- func NewECDSASignerEntity(ID string, b bccsp.BCCSP, signKeyBytes []byte) (*BCCSPSignerEntity, error)
- func NewECDSAVerifierEntity(ID string, b bccsp.BCCSP, signKeyBytes []byte) (*BCCSPSignerEntity, error)
- func NewSignerEntity(ID string, bccsp bccsp.BCCSP, sKey bccsp.Key, sOpts bccsp.SignerOpts, ...) (*BCCSPSignerEntity, error)
- type Encrypter
- type EncrypterEntity
- type EncrypterSignerEntity
- type Entity
- type SignedMessage
- type Signer
- type SignerEntity
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BCCSPEncrypterEntity ¶
type BCCSPEncrypterEntity struct { BCCSPEntity EKey bccsp.Key EOpts bccsp.EncrypterOpts DOpts bccsp.DecrypterOpts }
func NewEncrypterEntity ¶
func NewEncrypterEntity(ID string, bccsp bccsp.BCCSP, eKey bccsp.Key, eOpts bccsp.EncrypterOpts, dOpts bccsp.DecrypterOpts) (*BCCSPEncrypterEntity, error)
func (*BCCSPEncrypterEntity) Decrypt ¶
func (e *BCCSPEncrypterEntity) Decrypt(ciphertext []byte) ([]byte, error)
func (*BCCSPEncrypterEntity) Encrypt ¶
func (e *BCCSPEncrypterEntity) Encrypt(plaintext []byte) ([]byte, error)
func (*BCCSPEncrypterEntity) Equals ¶
func (this *BCCSPEncrypterEntity) Equals(e Entity) bool
func (*BCCSPEncrypterEntity) Public ¶
func (pe *BCCSPEncrypterEntity) Public() (Entity, error)
type BCCSPEncrypterSignerEntity ¶
type BCCSPEncrypterSignerEntity struct { BCCSPEncrypterEntity BCCSPSignerEntity }
func NewEncrypterSignerEntity ¶
func NewEncrypterSignerEntity(ID string, bccsp bccsp.BCCSP, eKey, sKey bccsp.Key, eOpts bccsp.EncrypterOpts, dOpts bccsp.DecrypterOpts, sOpts bccsp.SignerOpts, hOpts bccsp.HashOpts) (*BCCSPEncrypterSignerEntity, error)
func (*BCCSPEncrypterSignerEntity) Equals ¶
func (this *BCCSPEncrypterSignerEntity) Equals(e Entity) bool
func (*BCCSPEncrypterSignerEntity) ID ¶
func (e *BCCSPEncrypterSignerEntity) ID() string
func (*BCCSPEncrypterSignerEntity) Public ¶
func (pe *BCCSPEncrypterSignerEntity) Public() (Entity, error)
type BCCSPEntity ¶
func (*BCCSPEntity) ID ¶
func (e *BCCSPEntity) ID() string
type BCCSPSignerEntity ¶
type BCCSPSignerEntity struct { BCCSPEntity SKey bccsp.Key SOpts bccsp.SignerOpts HOpts bccsp.HashOpts }
func NewECDSASignerEntity ¶
func NewECDSAVerifierEntity ¶
func NewSignerEntity ¶
func (*BCCSPSignerEntity) Equals ¶
func (this *BCCSPSignerEntity) Equals(e Entity) bool
func (*BCCSPSignerEntity) Public ¶
func (e *BCCSPSignerEntity) Public() (Entity, error)
type EncrypterEntity ¶
func GetEncrypterEntityForTest ¶
func GetEncrypterEntityForTest(id string) (EncrypterEntity, error)
type EncrypterSignerEntity ¶
func GetEncrypterSignerEntityForTest ¶
func GetEncrypterSignerEntityForTest(id string) (EncrypterSignerEntity, error)
type SignedMessage ¶
type SignedMessage struct { ID []byte `json:"id"` Payload []byte `json:"payload"` Sig []byte `json:"sig"` }
func (*SignedMessage) FromBytes ¶
func (m *SignedMessage) FromBytes(d []byte) error
func (*SignedMessage) Sign ¶
func (m *SignedMessage) Sign(signer Signer) error
func (*SignedMessage) ToBytes ¶
func (m *SignedMessage) ToBytes() ([]byte, error)
type SignerEntity ¶
Click to show internal directories.
Click to hide internal directories.