Versions in this module Expand all Collapse all v0 v0.2.0 Feb 25, 2016 Changes in this version + const A128CBC_HS256 + const A128GCM + const A128GCMKW + const A128KW + const A192CBC_HS384 + const A192GCM + const A192GCMKW + const A192KW + const A256CBC_HS512 + const A256GCM + const A256GCMKW + const A256KW + const DEF + const DIR + const ECDH_ES + const ECDH_ES_A128KW + const ECDH_ES_A192KW + const ECDH_ES_A256KW + const ES256 + const ES384 + const ES512 + const HS256 + const HS384 + const HS512 + const NONE + const PBES2_HS256_A128KW + const PBES2_HS384_A192KW + const PBES2_HS512_A256KW + const PS256 + const PS384 + const PS512 + const RS256 + const RS384 + const RS512 + const RSA1_5 + const RSA_OAEP + const RSA_OAEP_256 + func Compress(payload string, alg string, enc string, zip string, key interface{}) (token string, err error) + func Decode(token string, key interface{}) (string, map[string]interface{}, error) + func Encrypt(payload string, alg string, enc string, key interface{}, ...) (token string, err error) + func Header(name string, value interface{}) func(cfg *joseConfig) + func Headers(headers map[string]interface{}) func(cfg *joseConfig) + func RegisterJwa(alg JwaAlgorithm) + func RegisterJwc(alg JwcAlgorithm) + func RegisterJwe(alg JweEncryption) + func RegisterJws(alg JwsAlgorithm) + func Sign(payload string, signingAlg string, key interface{}, ...) (token string, err error) + func Zip(alg string) func(cfg *joseConfig) + type AesCbcHmac struct + func (alg *AesCbcHmac) Decrypt(aad, cek, iv, cipherText, authTag []byte) (plainText []byte, err error) + func (alg *AesCbcHmac) Encrypt(aad, plainText, cek []byte) (iv, cipherText, authTag []byte, err error) + func (alg *AesCbcHmac) KeySizeBits() int + func (alg *AesCbcHmac) Name() string + type AesGcm struct + func (alg *AesGcm) Decrypt(aad, cek, iv, cipherText, authTag []byte) (plainText []byte, err error) + func (alg *AesGcm) Encrypt(aad, plainText, cek []byte) (iv, cipherText, authTag []byte, err error) + func (alg *AesGcm) KeySizeBits() int + func (alg *AesGcm) Name() string + type AesGcmKW struct + func (alg *AesGcmKW) Name() string + func (alg *AesGcmKW) Unwrap(encryptedCek []byte, key interface{}, cekSizeBits int, ...) (cek []byte, err error) + func (alg *AesGcmKW) WrapNewKey(cekSizeBits int, key interface{}, header map[string]interface{}) (cek []byte, encryptedCek []byte, err error) + type AesKW struct + func (alg *AesKW) Name() string + func (alg *AesKW) Unwrap(encryptedCek []byte, key interface{}, cekSizeBits int, ...) (cek []byte, err error) + func (alg *AesKW) WrapNewKey(cekSizeBits int, key interface{}, header map[string]interface{}) (cek []byte, encryptedCek []byte, err error) + type Deflate struct + func (alg *Deflate) Compress(plainText []byte) []byte + func (alg *Deflate) Decompress(compressedText []byte) []byte + func (alg *Deflate) Name() string + type Direct struct + func (alg *Direct) Name() string + func (alg *Direct) Unwrap(encryptedCek []byte, key interface{}, cekSizeBits int, ...) (cek []byte, err error) + func (alg *Direct) WrapNewKey(cekSizeBits int, key interface{}, header map[string]interface{}) (cek []byte, encryptedCek []byte, err error) + type Ecdh struct + func (alg *Ecdh) Name() string + func (alg *Ecdh) Unwrap(encryptedCek []byte, key interface{}, cekSizeBits int, ...) (cek []byte, err error) + func (alg *Ecdh) WrapNewKey(cekSizeBits int, key interface{}, header map[string]interface{}) (cek []byte, encryptedCek []byte, err error) + type EcdhAesKW struct + func (alg *EcdhAesKW) Name() string + func (alg *EcdhAesKW) Unwrap(encryptedCek []byte, key interface{}, cekSizeBits int, ...) (cek []byte, err error) + func (alg *EcdhAesKW) WrapNewKey(cekSizeBits int, key interface{}, header map[string]interface{}) (cek []byte, encryptedCek []byte, err error) + type EcdsaUsingSha struct + func (alg *EcdsaUsingSha) Name() string + func (alg *EcdsaUsingSha) Sign(securedInput []byte, key interface{}) (signature []byte, err error) + func (alg *EcdsaUsingSha) Verify(securedInput, signature []byte, key interface{}) error + type HmacUsingSha struct + func (alg *HmacUsingSha) Name() string + func (alg *HmacUsingSha) Sign(securedInput []byte, key interface{}) (signature []byte, err error) + func (alg *HmacUsingSha) Verify(securedInput, signature []byte, key interface{}) error + type JwaAlgorithm interface + Name func() string + Unwrap func(encryptedCek []byte, key interface{}, cekSizeBits int, ...) (cek []byte, err error) + WrapNewKey func(cekSizeBits int, key interface{}, header map[string]interface{}) (cek []byte, encryptedCek []byte, err error) + type JwcAlgorithm interface + Compress func(plainText []byte) []byte + Decompress func(compressedText []byte) []byte + Name func() string + type JweEncryption interface + Decrypt func(aad, cek, iv, cipherText, authTag []byte) (plainText []byte, err error) + Encrypt func(aad, plainText, cek []byte) (iv, cipherText, authTag []byte, err error) + KeySizeBits func() int + Name func() string + type JwsAlgorithm interface + Name func() string + Sign func(securedInput []byte, key interface{}) (signature []byte, err error) + Verify func(securedInput, signature []byte, key interface{}) error + type Pbse2HmacAesKW struct + func (alg *Pbse2HmacAesKW) Name() string + func (alg *Pbse2HmacAesKW) Unwrap(encryptedCek []byte, key interface{}, cekSizeBits int, ...) (cek []byte, err error) + func (alg *Pbse2HmacAesKW) WrapNewKey(cekSizeBits int, key interface{}, header map[string]interface{}) (cek []byte, encryptedCek []byte, err error) + type Plaintext struct + func (alg *Plaintext) Name() string + func (alg *Plaintext) Sign(securedInput []byte, key interface{}) (signature []byte, err error) + func (alg *Plaintext) Verify(securedInput []byte, signature []byte, key interface{}) error + type RsaOaep struct + func (alg *RsaOaep) Name() string + func (alg *RsaOaep) Unwrap(encryptedCek []byte, key interface{}, cekSizeBits int, ...) (cek []byte, err error) + func (alg *RsaOaep) WrapNewKey(cekSizeBits int, key interface{}, header map[string]interface{}) (cek []byte, encryptedCek []byte, err error) + type RsaPkcs1v15 struct + func (alg *RsaPkcs1v15) Name() string + func (alg *RsaPkcs1v15) Unwrap(encryptedCek []byte, key interface{}, cekSizeBits int, ...) (cek []byte, err error) + func (alg *RsaPkcs1v15) WrapNewKey(cekSizeBits int, key interface{}, header map[string]interface{}) (cek []byte, encryptedCek []byte, err error) + type RsaPssUsingSha struct + func (alg *RsaPssUsingSha) Name() string + func (alg *RsaPssUsingSha) Sign(securedInput []byte, key interface{}) (signature []byte, err error) + func (alg *RsaPssUsingSha) Verify(securedInput, signature []byte, key interface{}) error + type RsaUsingSha struct + func (alg *RsaUsingSha) Name() string + func (alg *RsaUsingSha) Sign(securedInput []byte, key interface{}) (signature []byte, err error) + func (alg *RsaUsingSha) Verify(securedInput, signature []byte, key interface{}) error