webapi: github.com/gowebapi/webapi/crypto Index | Files | Directories

package crypto

import "github.com/gowebapi/webapi/crypto"

Package crypto is basic cryptographic operations in web applications, such as hashing, signature generation and verification, and encryption and decryption.

Index

Package Files

crypto.go doc.go

type AesCbcParams Uses

type AesCbcParams struct {
    Name string
    Iv   *Union
}

dictionary: AesCbcParams

func AesCbcParamsFromJS Uses

func AesCbcParamsFromJS(value js.Wrapper) *AesCbcParams

AesCbcParamsFromJS is allocating a new AesCbcParams object and copy all values from input javascript object

func (*AesCbcParams) JSValue Uses

func (_this *AesCbcParams) JSValue() js.Value

JSValue is allocating a new javasript object and copy all values

type AesCtrParams Uses

type AesCtrParams struct {
    Name    string
    Counter *Union
    Length  int
}

dictionary: AesCtrParams

func AesCtrParamsFromJS Uses

func AesCtrParamsFromJS(value js.Wrapper) *AesCtrParams

AesCtrParamsFromJS is allocating a new AesCtrParams object and copy all values from input javascript object

func (*AesCtrParams) JSValue Uses

func (_this *AesCtrParams) JSValue() js.Value

JSValue is allocating a new javasript object and copy all values

type AesDerivedKeyParams Uses

type AesDerivedKeyParams struct {
    Name   string
    Length int
}

dictionary: AesDerivedKeyParams

func AesDerivedKeyParamsFromJS Uses

func AesDerivedKeyParamsFromJS(value js.Wrapper) *AesDerivedKeyParams

AesDerivedKeyParamsFromJS is allocating a new AesDerivedKeyParams object and copy all values from input javascript object

func (*AesDerivedKeyParams) JSValue Uses

func (_this *AesDerivedKeyParams) JSValue() js.Value

JSValue is allocating a new javasript object and copy all values

type AesGcmParams Uses

type AesGcmParams struct {
    Name           string
    Iv             *Union
    AdditionalData *Union
    TagLength      int
}

dictionary: AesGcmParams

func AesGcmParamsFromJS Uses

func AesGcmParamsFromJS(value js.Wrapper) *AesGcmParams

AesGcmParamsFromJS is allocating a new AesGcmParams object and copy all values from input javascript object

func (*AesGcmParams) JSValue Uses

func (_this *AesGcmParams) JSValue() js.Value

JSValue is allocating a new javasript object and copy all values

type AesKeyAlgorithm Uses

type AesKeyAlgorithm struct {
    Name   string
    Length int
}

dictionary: AesKeyAlgorithm

func AesKeyAlgorithmFromJS Uses

func AesKeyAlgorithmFromJS(value js.Wrapper) *AesKeyAlgorithm

AesKeyAlgorithmFromJS is allocating a new AesKeyAlgorithm object and copy all values from input javascript object

func (*AesKeyAlgorithm) JSValue Uses

func (_this *AesKeyAlgorithm) JSValue() js.Value

JSValue is allocating a new javasript object and copy all values

type AesKeyGenParams Uses

type AesKeyGenParams struct {
    Name   string
    Length int
}

dictionary: AesKeyGenParams

func AesKeyGenParamsFromJS Uses

func AesKeyGenParamsFromJS(value js.Wrapper) *AesKeyGenParams

AesKeyGenParamsFromJS is allocating a new AesKeyGenParams object and copy all values from input javascript object

func (*AesKeyGenParams) JSValue Uses

func (_this *AesKeyGenParams) JSValue() js.Value

JSValue is allocating a new javasript object and copy all values

type Algorithm Uses

type Algorithm struct {
    Name string
}

dictionary: Algorithm

func AlgorithmFromJS Uses

func AlgorithmFromJS(value js.Wrapper) *Algorithm

AlgorithmFromJS is allocating a new Algorithm object and copy all values from input javascript object

func (*Algorithm) JSValue Uses

func (_this *Algorithm) JSValue() js.Value

JSValue is allocating a new javasript object and copy all values

type Crypto Uses

type Crypto struct {
    // Value_JS holds a reference to a javascript value
    Value_JS js.Value
}

class: Crypto

func CryptoFromJS Uses

func CryptoFromJS(value js.Wrapper) *Crypto

CryptoFromJS is casting a js.Wrapper into Crypto.

func (*Crypto) GetRandomValues Uses

func (_this *Crypto) GetRandomValues(array *Union) (_result *Union)

func (*Crypto) JSValue Uses

func (_this *Crypto) JSValue() js.Value

func (*Crypto) Subtle Uses

func (_this *Crypto) Subtle() *SubtleCrypto

Subtle returning attribute 'subtle' with type SubtleCrypto (idl: SubtleCrypto).

type CryptoKey Uses

type CryptoKey struct {
    // Value_JS holds a reference to a javascript value
    Value_JS js.Value
}

class: CryptoKey

func CryptoKeyFromJS Uses

func CryptoKeyFromJS(value js.Wrapper) *CryptoKey

CryptoKeyFromJS is casting a js.Wrapper into CryptoKey.

func (*CryptoKey) Algorithm Uses

func (_this *CryptoKey) Algorithm() *javascript.Object

Algorithm returning attribute 'algorithm' with type javascript.Object (idl: object).

func (*CryptoKey) Extractable Uses

func (_this *CryptoKey) Extractable() bool

Extractable returning attribute 'extractable' with type bool (idl: boolean).

func (*CryptoKey) JSValue Uses

func (_this *CryptoKey) JSValue() js.Value

func (*CryptoKey) Type Uses

func (_this *CryptoKey) Type() KeyType

Type returning attribute 'type' with type KeyType (idl: KeyType).

func (*CryptoKey) Usages Uses

func (_this *CryptoKey) Usages() *javascript.Object

Usages returning attribute 'usages' with type javascript.Object (idl: object).

type CryptoKeyPair Uses

type CryptoKeyPair struct {
    PublicKey  *CryptoKey
    PrivateKey *CryptoKey
}

dictionary: CryptoKeyPair

func CryptoKeyPairFromJS Uses

func CryptoKeyPairFromJS(value js.Wrapper) *CryptoKeyPair

CryptoKeyPairFromJS is allocating a new CryptoKeyPair object and copy all values from input javascript object

func (*CryptoKeyPair) JSValue Uses

func (_this *CryptoKeyPair) JSValue() js.Value

JSValue is allocating a new javasript object and copy all values

type EcKeyAlgorithm Uses

type EcKeyAlgorithm struct {
    Name       string
    NamedCurve string
}

dictionary: EcKeyAlgorithm

func EcKeyAlgorithmFromJS Uses

func EcKeyAlgorithmFromJS(value js.Wrapper) *EcKeyAlgorithm

EcKeyAlgorithmFromJS is allocating a new EcKeyAlgorithm object and copy all values from input javascript object

func (*EcKeyAlgorithm) JSValue Uses

func (_this *EcKeyAlgorithm) JSValue() js.Value

JSValue is allocating a new javasript object and copy all values

type EcKeyGenParams Uses

type EcKeyGenParams struct {
    Name       string
    NamedCurve string
}

dictionary: EcKeyGenParams

func EcKeyGenParamsFromJS Uses

func EcKeyGenParamsFromJS(value js.Wrapper) *EcKeyGenParams

EcKeyGenParamsFromJS is allocating a new EcKeyGenParams object and copy all values from input javascript object

func (*EcKeyGenParams) JSValue Uses

func (_this *EcKeyGenParams) JSValue() js.Value

JSValue is allocating a new javasript object and copy all values

type EcKeyImportParams Uses

type EcKeyImportParams struct {
    Name       string
    NamedCurve string
}

dictionary: EcKeyImportParams

func EcKeyImportParamsFromJS Uses

func EcKeyImportParamsFromJS(value js.Wrapper) *EcKeyImportParams

EcKeyImportParamsFromJS is allocating a new EcKeyImportParams object and copy all values from input javascript object

func (*EcKeyImportParams) JSValue Uses

func (_this *EcKeyImportParams) JSValue() js.Value

JSValue is allocating a new javasript object and copy all values

type EcdhKeyDeriveParams Uses

type EcdhKeyDeriveParams struct {
    Name   string
    Public *CryptoKey
}

dictionary: EcdhKeyDeriveParams

func EcdhKeyDeriveParamsFromJS Uses

func EcdhKeyDeriveParamsFromJS(value js.Wrapper) *EcdhKeyDeriveParams

EcdhKeyDeriveParamsFromJS is allocating a new EcdhKeyDeriveParams object and copy all values from input javascript object

func (*EcdhKeyDeriveParams) JSValue Uses

func (_this *EcdhKeyDeriveParams) JSValue() js.Value

JSValue is allocating a new javasript object and copy all values

type EcdsaParams Uses

type EcdsaParams struct {
    Name string
    Hash *Union
}

dictionary: EcdsaParams

func EcdsaParamsFromJS Uses

func EcdsaParamsFromJS(value js.Wrapper) *EcdsaParams

EcdsaParamsFromJS is allocating a new EcdsaParams object and copy all values from input javascript object

func (*EcdsaParams) JSValue Uses

func (_this *EcdsaParams) JSValue() js.Value

JSValue is allocating a new javasript object and copy all values

type HkdfParams Uses

type HkdfParams struct {
    Name string
    Hash *Union
    Salt *Union
    Info *Union
}

dictionary: HkdfParams

func HkdfParamsFromJS Uses

func HkdfParamsFromJS(value js.Wrapper) *HkdfParams

HkdfParamsFromJS is allocating a new HkdfParams object and copy all values from input javascript object

func (*HkdfParams) JSValue Uses

func (_this *HkdfParams) JSValue() js.Value

JSValue is allocating a new javasript object and copy all values

type HmacImportParams Uses

type HmacImportParams struct {
    Name   string
    Hash   *Union
    Length uint
}

dictionary: HmacImportParams

func HmacImportParamsFromJS Uses

func HmacImportParamsFromJS(value js.Wrapper) *HmacImportParams

HmacImportParamsFromJS is allocating a new HmacImportParams object and copy all values from input javascript object

func (*HmacImportParams) JSValue Uses

func (_this *HmacImportParams) JSValue() js.Value

JSValue is allocating a new javasript object and copy all values

type HmacKeyAlgorithm Uses

type HmacKeyAlgorithm struct {
    Name   string
    Hash   *KeyAlgorithm
    Length uint
}

dictionary: HmacKeyAlgorithm

func HmacKeyAlgorithmFromJS Uses

func HmacKeyAlgorithmFromJS(value js.Wrapper) *HmacKeyAlgorithm

HmacKeyAlgorithmFromJS is allocating a new HmacKeyAlgorithm object and copy all values from input javascript object

func (*HmacKeyAlgorithm) JSValue Uses

func (_this *HmacKeyAlgorithm) JSValue() js.Value

JSValue is allocating a new javasript object and copy all values

type HmacKeyGenParams Uses

type HmacKeyGenParams struct {
    Name   string
    Hash   *Union
    Length uint
}

dictionary: HmacKeyGenParams

func HmacKeyGenParamsFromJS Uses

func HmacKeyGenParamsFromJS(value js.Wrapper) *HmacKeyGenParams

HmacKeyGenParamsFromJS is allocating a new HmacKeyGenParams object and copy all values from input javascript object

func (*HmacKeyGenParams) JSValue Uses

func (_this *HmacKeyGenParams) JSValue() js.Value

JSValue is allocating a new javasript object and copy all values

type JsonWebKey Uses

type JsonWebKey struct {
    Kty    string
    Use    string
    KeyOps []string
    Alg    string
    Ext    bool
    Crv    string
    X      string
    Y      string
    D      string
    N      string
    E      string
    P      string
    Q      string
    Dp     string
    Dq     string
    Qi     string
    Oth    []*RsaOtherPrimesInfo
    K      string
}

dictionary: JsonWebKey

func JsonWebKeyFromJS Uses

func JsonWebKeyFromJS(value js.Wrapper) *JsonWebKey

JsonWebKeyFromJS is allocating a new JsonWebKey object and copy all values from input javascript object

func (*JsonWebKey) JSValue Uses

func (_this *JsonWebKey) JSValue() js.Value

JSValue is allocating a new javasript object and copy all values

type KeyAlgorithm Uses

type KeyAlgorithm struct {
    Name string
}

dictionary: KeyAlgorithm

func KeyAlgorithmFromJS Uses

func KeyAlgorithmFromJS(value js.Wrapper) *KeyAlgorithm

KeyAlgorithmFromJS is allocating a new KeyAlgorithm object and copy all values from input javascript object

func (*KeyAlgorithm) JSValue Uses

func (_this *KeyAlgorithm) JSValue() js.Value

JSValue is allocating a new javasript object and copy all values

type KeyFormat Uses

type KeyFormat int

enum: KeyFormat

const (
    RawKeyFormat KeyFormat = iota
    SpkiKeyFormat
    Pkcs8KeyFormat
    JwkKeyFormat
)

func KeyFormatFromJS Uses

func KeyFormatFromJS(value js.Value) KeyFormat

KeyFormatFromJS is converting a javascript value into a KeyFormat enum value.

func (*KeyFormat) JSValue Uses

func (this *KeyFormat) JSValue() js.Value

JSValue is converting this enum into a javascript object

func (KeyFormat) Value Uses

func (this KeyFormat) Value() string

Value is converting this into javascript defined string value

type KeyType Uses

type KeyType int

enum: KeyType

const (
    PublicKeyType KeyType = iota
    PrivateKeyType
    SecretKeyType
)

func KeyTypeFromJS Uses

func KeyTypeFromJS(value js.Value) KeyType

KeyTypeFromJS is converting a javascript value into a KeyType enum value.

func (*KeyType) JSValue Uses

func (this *KeyType) JSValue() js.Value

JSValue is converting this enum into a javascript object

func (KeyType) Value Uses

func (this KeyType) Value() string

Value is converting this into javascript defined string value

type KeyUsage Uses

type KeyUsage int

enum: KeyUsage

const (
    EncryptKeyUsage KeyUsage = iota
    DecryptKeyUsage
    SignKeyUsage
    VerifyKeyUsage
    DeriveKeyKeyUsage
    DeriveBitsKeyUsage
    WrapKeyKeyUsage
    UnwrapKeyKeyUsage
)

func KeyUsageFromJS Uses

func KeyUsageFromJS(value js.Value) KeyUsage

KeyUsageFromJS is converting a javascript value into a KeyUsage enum value.

func (*KeyUsage) JSValue Uses

func (this *KeyUsage) JSValue() js.Value

JSValue is converting this enum into a javascript object

func (KeyUsage) Value Uses

func (this KeyUsage) Value() string

Value is converting this into javascript defined string value

type Pbkdf2Params Uses

type Pbkdf2Params struct {
    Name       string
    Salt       *Union
    Iterations uint
    Hash       *Union
}

dictionary: Pbkdf2Params

func Pbkdf2ParamsFromJS Uses

func Pbkdf2ParamsFromJS(value js.Wrapper) *Pbkdf2Params

Pbkdf2ParamsFromJS is allocating a new Pbkdf2Params object and copy all values from input javascript object

func (*Pbkdf2Params) JSValue Uses

func (_this *Pbkdf2Params) JSValue() js.Value

JSValue is allocating a new javasript object and copy all values

type PromiseCryptoKey Uses

type PromiseCryptoKey struct {
    // Value_JS holds a reference to a javascript value
    Value_JS js.Value
}

class: Promise

func PromiseCryptoKeyFromJS Uses

func PromiseCryptoKeyFromJS(value js.Wrapper) *PromiseCryptoKey

PromiseCryptoKeyFromJS is casting a js.Wrapper into PromiseCryptoKey.

func (*PromiseCryptoKey) Catch Uses

func (_this *PromiseCryptoKey) Catch(onRejected *PromiseCryptoKeyOnRejected) (_result *PromiseCryptoKey)

func (*PromiseCryptoKey) Finally Uses

func (_this *PromiseCryptoKey) Finally(onFinally *javascript.PromiseFinally) (_result *PromiseCryptoKey)

func (*PromiseCryptoKey) JSValue Uses

func (_this *PromiseCryptoKey) JSValue() js.Value

func (*PromiseCryptoKey) Then Uses

func (_this *PromiseCryptoKey) Then(onFulfilled *PromiseCryptoKeyOnFulfilled, onRejected *PromiseCryptoKeyOnRejected) (_result *PromiseCryptoKey)

type PromiseCryptoKeyOnFulfilled Uses

type PromiseCryptoKeyOnFulfilled js.Func

PromiseCryptoKeyOnFulfilled is a javascript function type.

Call Release() when done to release resouces allocated to this type.

func PromiseCryptoKeyOnFulfilledToJS Uses

func PromiseCryptoKeyOnFulfilledToJS(callback PromiseCryptoKeyOnFulfilledFunc) *PromiseCryptoKeyOnFulfilled

type PromiseCryptoKeyOnFulfilledFunc Uses

type PromiseCryptoKeyOnFulfilledFunc func(value *CryptoKey)

callback: PromiseTemplateOnFulfilled

func PromiseCryptoKeyOnFulfilledFromJS Uses

func PromiseCryptoKeyOnFulfilledFromJS(_value js.Value) PromiseCryptoKeyOnFulfilledFunc

type PromiseCryptoKeyOnRejected Uses

type PromiseCryptoKeyOnRejected js.Func

PromiseCryptoKeyOnRejected is a javascript function type.

Call Release() when done to release resouces allocated to this type.

func PromiseCryptoKeyOnRejectedToJS Uses

func PromiseCryptoKeyOnRejectedToJS(callback PromiseCryptoKeyOnRejectedFunc) *PromiseCryptoKeyOnRejected

type PromiseCryptoKeyOnRejectedFunc Uses

type PromiseCryptoKeyOnRejectedFunc func(reason js.Value)

callback: PromiseTemplateOnRejected

func PromiseCryptoKeyOnRejectedFromJS Uses

func PromiseCryptoKeyOnRejectedFromJS(_value js.Value) PromiseCryptoKeyOnRejectedFunc

type RsaHashedImportParams Uses

type RsaHashedImportParams struct {
    Name string
    Hash *Union
}

dictionary: RsaHashedImportParams

func RsaHashedImportParamsFromJS Uses

func RsaHashedImportParamsFromJS(value js.Wrapper) *RsaHashedImportParams

RsaHashedImportParamsFromJS is allocating a new RsaHashedImportParams object and copy all values from input javascript object

func (*RsaHashedImportParams) JSValue Uses

func (_this *RsaHashedImportParams) JSValue() js.Value

JSValue is allocating a new javasript object and copy all values

type RsaHashedKeyAlgorithm Uses

type RsaHashedKeyAlgorithm struct {
    Name           string
    ModulusLength  uint
    PublicExponent *javascript.Uint8Array
    Hash           *KeyAlgorithm
}

dictionary: RsaHashedKeyAlgorithm

func RsaHashedKeyAlgorithmFromJS Uses

func RsaHashedKeyAlgorithmFromJS(value js.Wrapper) *RsaHashedKeyAlgorithm

RsaHashedKeyAlgorithmFromJS is allocating a new RsaHashedKeyAlgorithm object and copy all values from input javascript object

func (*RsaHashedKeyAlgorithm) JSValue Uses

func (_this *RsaHashedKeyAlgorithm) JSValue() js.Value

JSValue is allocating a new javasript object and copy all values

type RsaHashedKeyGenParams Uses

type RsaHashedKeyGenParams struct {
    Name           string
    ModulusLength  uint
    PublicExponent *javascript.Uint8Array
    Hash           *Union
}

dictionary: RsaHashedKeyGenParams

func RsaHashedKeyGenParamsFromJS Uses

func RsaHashedKeyGenParamsFromJS(value js.Wrapper) *RsaHashedKeyGenParams

RsaHashedKeyGenParamsFromJS is allocating a new RsaHashedKeyGenParams object and copy all values from input javascript object

func (*RsaHashedKeyGenParams) JSValue Uses

func (_this *RsaHashedKeyGenParams) JSValue() js.Value

JSValue is allocating a new javasript object and copy all values

type RsaKeyAlgorithm Uses

type RsaKeyAlgorithm struct {
    Name           string
    ModulusLength  uint
    PublicExponent *javascript.Uint8Array
}

dictionary: RsaKeyAlgorithm

func RsaKeyAlgorithmFromJS Uses

func RsaKeyAlgorithmFromJS(value js.Wrapper) *RsaKeyAlgorithm

RsaKeyAlgorithmFromJS is allocating a new RsaKeyAlgorithm object and copy all values from input javascript object

func (*RsaKeyAlgorithm) JSValue Uses

func (_this *RsaKeyAlgorithm) JSValue() js.Value

JSValue is allocating a new javasript object and copy all values

type RsaKeyGenParams Uses

type RsaKeyGenParams struct {
    Name           string
    ModulusLength  uint
    PublicExponent *javascript.Uint8Array
}

dictionary: RsaKeyGenParams

func RsaKeyGenParamsFromJS Uses

func RsaKeyGenParamsFromJS(value js.Wrapper) *RsaKeyGenParams

RsaKeyGenParamsFromJS is allocating a new RsaKeyGenParams object and copy all values from input javascript object

func (*RsaKeyGenParams) JSValue Uses

func (_this *RsaKeyGenParams) JSValue() js.Value

JSValue is allocating a new javasript object and copy all values

type RsaOaepParams Uses

type RsaOaepParams struct {
    Name  string
    Label *Union
}

dictionary: RsaOaepParams

func RsaOaepParamsFromJS Uses

func RsaOaepParamsFromJS(value js.Wrapper) *RsaOaepParams

RsaOaepParamsFromJS is allocating a new RsaOaepParams object and copy all values from input javascript object

func (*RsaOaepParams) JSValue Uses

func (_this *RsaOaepParams) JSValue() js.Value

JSValue is allocating a new javasript object and copy all values

type RsaOtherPrimesInfo Uses

type RsaOtherPrimesInfo struct {
    R   string
    D   string
    T   string
}

dictionary: RsaOtherPrimesInfo

func RsaOtherPrimesInfoFromJS Uses

func RsaOtherPrimesInfoFromJS(value js.Wrapper) *RsaOtherPrimesInfo

RsaOtherPrimesInfoFromJS is allocating a new RsaOtherPrimesInfo object and copy all values from input javascript object

func (*RsaOtherPrimesInfo) JSValue Uses

func (_this *RsaOtherPrimesInfo) JSValue() js.Value

JSValue is allocating a new javasript object and copy all values

type RsaPssParams Uses

type RsaPssParams struct {
    Name       string
    SaltLength uint
}

dictionary: RsaPssParams

func RsaPssParamsFromJS Uses

func RsaPssParamsFromJS(value js.Wrapper) *RsaPssParams

RsaPssParamsFromJS is allocating a new RsaPssParams object and copy all values from input javascript object

func (*RsaPssParams) JSValue Uses

func (_this *RsaPssParams) JSValue() js.Value

JSValue is allocating a new javasript object and copy all values

type SubtleCrypto Uses

type SubtleCrypto struct {
    // Value_JS holds a reference to a javascript value
    Value_JS js.Value
}

class: SubtleCrypto

func SubtleCryptoFromJS Uses

func SubtleCryptoFromJS(value js.Wrapper) *SubtleCrypto

SubtleCryptoFromJS is casting a js.Wrapper into SubtleCrypto.

func (*SubtleCrypto) Decrypt Uses

func (_this *SubtleCrypto) Decrypt(algorithm *Union, key *CryptoKey, data *Union) (_result *javascript.Promise)

func (*SubtleCrypto) DeriveBits Uses

func (_this *SubtleCrypto) DeriveBits(algorithm *Union, baseKey *CryptoKey, length uint) (_result *javascript.PromiseArrayBuffer)

func (*SubtleCrypto) DeriveKey Uses

func (_this *SubtleCrypto) DeriveKey(algorithm *Union, baseKey *CryptoKey, derivedKeyType *Union, extractable bool, keyUsages []KeyUsage) (_result *javascript.Promise)

func (*SubtleCrypto) Digest Uses

func (_this *SubtleCrypto) Digest(algorithm *Union, data *Union) (_result *javascript.Promise)

func (*SubtleCrypto) Encrypt Uses

func (_this *SubtleCrypto) Encrypt(algorithm *Union, key *CryptoKey, data *Union) (_result *javascript.Promise)

func (*SubtleCrypto) ExportKey Uses

func (_this *SubtleCrypto) ExportKey(format KeyFormat, key *CryptoKey) (_result *javascript.Promise)

func (*SubtleCrypto) GenerateKey Uses

func (_this *SubtleCrypto) GenerateKey(algorithm *Union, extractable bool, keyUsages []KeyUsage) (_result *javascript.Promise)

func (*SubtleCrypto) ImportKey Uses

func (_this *SubtleCrypto) ImportKey(format KeyFormat, keyData *Union, algorithm *Union, extractable bool, keyUsages []KeyUsage) (_result *PromiseCryptoKey)

func (*SubtleCrypto) JSValue Uses

func (_this *SubtleCrypto) JSValue() js.Value

func (*SubtleCrypto) Sign Uses

func (_this *SubtleCrypto) Sign(algorithm *Union, key *CryptoKey, data *Union) (_result *javascript.Promise)

func (*SubtleCrypto) UnwrapKey Uses

func (_this *SubtleCrypto) UnwrapKey(format KeyFormat, wrappedKey *Union, unwrappingKey *CryptoKey, unwrapAlgorithm *Union, unwrappedKeyAlgorithm *Union, extractable bool, keyUsages []KeyUsage) (_result *PromiseCryptoKey)

func (*SubtleCrypto) Verify Uses

func (_this *SubtleCrypto) Verify(algorithm *Union, key *CryptoKey, signature *Union, data *Union) (_result *javascript.Promise)

func (*SubtleCrypto) WrapKey Uses

func (_this *SubtleCrypto) WrapKey(format KeyFormat, key *CryptoKey, wrappingKey *CryptoKey, wrapAlgorithm *Union) (_result *javascript.Promise)

type Union Uses

type Union struct {
    Value js.Value
}

func UnionFromJS Uses

func UnionFromJS(value js.Value) *Union

func (*Union) JSValue Uses

func (u *Union) JSValue() js.Value

Directories

PathSynopsis
authenticationPackage authentication enabling the creation and use of strong, attested, scoped, public key-based credentials by web applications, for the purpose of strongly authenticating users.
credentialPackage credential is enabling a website to request a user’s credentials from a user agent, and to help the user agent correctly store user credentials for future use.

Package crypto imports 2 packages (graph) and is imported by 2 packages. Updated 2019-09-18. Refresh now. Tools for package owners.