Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Salsa

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

    Salsa represents a security cipher which can encrypt/decrypt security keys.

    func NewSalsa

    func NewSalsa(key, nonce []byte) (*Salsa, error)

      NewSalsa creates a new salsa cipher.

      func (*Salsa) DecryptKey

      func (c *Salsa) DecryptKey(buffer []byte) (security.Key, error)

        DecryptKey decrypts the security key from a base64 encoded string.

        func (*Salsa) EncryptKey

        func (c *Salsa) EncryptKey(k security.Key) (string, error)

          EncryptKey encrypts the key and return a base-64 encoded string.

          type Shuffle

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

            Shuffle represents a security cipher which can encrypt/decrypt security keys.

            func NewShuffle

            func NewShuffle(key, nonce []byte) (*Shuffle, error)

              NewShuffle creates a new shuffled salsa cipher.

              func (*Shuffle) DecryptKey

              func (c *Shuffle) DecryptKey(buffer []byte) (security.Key, error)

                DecryptKey decrypts the security key from a base64 encoded string.

                func (*Shuffle) EncryptKey

                func (c *Shuffle) EncryptKey(k security.Key) (string, error)

                  EncryptKey encrypts the key and return a base-64 encoded string.

                  type Xtea

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

                    Xtea represents a security cipher which can encrypt/decrypt security keys.

                    func NewXtea

                    func NewXtea(value string) (*Xtea, error)

                      NewXtea creates a new cipher.

                      func (*Xtea) DecryptKey

                      func (c *Xtea) DecryptKey(buffer []byte) (security.Key, error)

                        DecryptKey decrypts the security key from a base64 encoded string.

                        func (*Xtea) EncryptKey

                        func (c *Xtea) EncryptKey(k security.Key) (string, error)

                          EncryptKey encrypts the key and return a base-64 encoded string.