crypto

package
v0.0.0-...-41cedfc Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 21, 2022 License: BSD-3-Clause Imports: 3 Imported by: 2

Documentation

Overview

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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AesCbcParams

type AesCbcParams struct {
	Name string
	Iv   *Union
}

dictionary: AesCbcParams

func AesCbcParamsFromJS

func AesCbcParamsFromJS(value js.Value) *AesCbcParams

AesCbcParamsFromJS is allocating a new AesCbcParams object and copy all values in the value javascript object.

func (*AesCbcParams) JSValue

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

JSValue is allocating a new javascript object and copy all values

type AesCtrParams

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

dictionary: AesCtrParams

func AesCtrParamsFromJS

func AesCtrParamsFromJS(value js.Value) *AesCtrParams

AesCtrParamsFromJS is allocating a new AesCtrParams object and copy all values in the value javascript object.

func (*AesCtrParams) JSValue

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

JSValue is allocating a new javascript object and copy all values

type AesDerivedKeyParams

type AesDerivedKeyParams struct {
	Name   string
	Length int
}

dictionary: AesDerivedKeyParams

func AesDerivedKeyParamsFromJS

func AesDerivedKeyParamsFromJS(value js.Value) *AesDerivedKeyParams

AesDerivedKeyParamsFromJS is allocating a new AesDerivedKeyParams object and copy all values in the value javascript object.

func (*AesDerivedKeyParams) JSValue

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

JSValue is allocating a new javascript object and copy all values

type AesGcmParams

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

dictionary: AesGcmParams

func AesGcmParamsFromJS

func AesGcmParamsFromJS(value js.Value) *AesGcmParams

AesGcmParamsFromJS is allocating a new AesGcmParams object and copy all values in the value javascript object.

func (*AesGcmParams) JSValue

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

JSValue is allocating a new javascript object and copy all values

type AesKeyAlgorithm

type AesKeyAlgorithm struct {
	Name   string
	Length int
}

dictionary: AesKeyAlgorithm

func AesKeyAlgorithmFromJS

func AesKeyAlgorithmFromJS(value js.Value) *AesKeyAlgorithm

AesKeyAlgorithmFromJS is allocating a new AesKeyAlgorithm object and copy all values in the value javascript object.

func (*AesKeyAlgorithm) JSValue

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

JSValue is allocating a new javascript object and copy all values

type AesKeyGenParams

type AesKeyGenParams struct {
	Name   string
	Length int
}

dictionary: AesKeyGenParams

func AesKeyGenParamsFromJS

func AesKeyGenParamsFromJS(value js.Value) *AesKeyGenParams

AesKeyGenParamsFromJS is allocating a new AesKeyGenParams object and copy all values in the value javascript object.

func (*AesKeyGenParams) JSValue

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

JSValue is allocating a new javascript object and copy all values

type Algorithm

type Algorithm struct {
	Name string
}

dictionary: Algorithm

func AlgorithmFromJS

func AlgorithmFromJS(value js.Value) *Algorithm

AlgorithmFromJS is allocating a new Algorithm object and copy all values in the value javascript object.

func (*Algorithm) JSValue

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

JSValue is allocating a new javascript object and copy all values

type Crypto

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

class: Crypto

func CryptoFromJS

func CryptoFromJS(value js.Value) *Crypto

CryptoFromJS is casting a js.Value into Crypto.

func CryptoFromWrapper

func CryptoFromWrapper(input core.Wrapper) *Crypto

CryptoFromJS is casting from something that holds a js.Value into Crypto.

func (*Crypto) GetRandomValues

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

func (*Crypto) JSValue

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

JSValue returns the js.Value or js.Null() if _this is nil

func (*Crypto) Subtle

func (_this *Crypto) Subtle() *SubtleCrypto

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

type CryptoKey

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

class: CryptoKey

func CryptoKeyFromJS

func CryptoKeyFromJS(value js.Value) *CryptoKey

CryptoKeyFromJS is casting a js.Value into CryptoKey.

func CryptoKeyFromWrapper

func CryptoKeyFromWrapper(input core.Wrapper) *CryptoKey

CryptoKeyFromJS is casting from something that holds a js.Value into CryptoKey.

func (*CryptoKey) Algorithm

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

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

func (*CryptoKey) Extractable

func (_this *CryptoKey) Extractable() bool

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

func (*CryptoKey) JSValue

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

JSValue returns the js.Value or js.Null() if _this is nil

func (*CryptoKey) Type

func (_this *CryptoKey) Type() KeyType

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

func (*CryptoKey) Usages

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

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

type CryptoKeyPair

type CryptoKeyPair struct {
	PublicKey  *CryptoKey
	PrivateKey *CryptoKey
}

dictionary: CryptoKeyPair

func CryptoKeyPairFromJS

func CryptoKeyPairFromJS(value js.Value) *CryptoKeyPair

CryptoKeyPairFromJS is allocating a new CryptoKeyPair object and copy all values in the value javascript object.

func (*CryptoKeyPair) JSValue

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

JSValue is allocating a new javascript object and copy all values

type EcKeyAlgorithm

type EcKeyAlgorithm struct {
	Name       string
	NamedCurve string
}

dictionary: EcKeyAlgorithm

func EcKeyAlgorithmFromJS

func EcKeyAlgorithmFromJS(value js.Value) *EcKeyAlgorithm

EcKeyAlgorithmFromJS is allocating a new EcKeyAlgorithm object and copy all values in the value javascript object.

func (*EcKeyAlgorithm) JSValue

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

JSValue is allocating a new javascript object and copy all values

type EcKeyGenParams

type EcKeyGenParams struct {
	Name       string
	NamedCurve string
}

dictionary: EcKeyGenParams

func EcKeyGenParamsFromJS

func EcKeyGenParamsFromJS(value js.Value) *EcKeyGenParams

EcKeyGenParamsFromJS is allocating a new EcKeyGenParams object and copy all values in the value javascript object.

func (*EcKeyGenParams) JSValue

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

JSValue is allocating a new javascript object and copy all values

type EcKeyImportParams

type EcKeyImportParams struct {
	Name       string
	NamedCurve string
}

dictionary: EcKeyImportParams

func EcKeyImportParamsFromJS

func EcKeyImportParamsFromJS(value js.Value) *EcKeyImportParams

EcKeyImportParamsFromJS is allocating a new EcKeyImportParams object and copy all values in the value javascript object.

func (*EcKeyImportParams) JSValue

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

JSValue is allocating a new javascript object and copy all values

type EcdhKeyDeriveParams

type EcdhKeyDeriveParams struct {
	Name   string
	Public *CryptoKey
}

dictionary: EcdhKeyDeriveParams

func EcdhKeyDeriveParamsFromJS

func EcdhKeyDeriveParamsFromJS(value js.Value) *EcdhKeyDeriveParams

EcdhKeyDeriveParamsFromJS is allocating a new EcdhKeyDeriveParams object and copy all values in the value javascript object.

func (*EcdhKeyDeriveParams) JSValue

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

JSValue is allocating a new javascript object and copy all values

type EcdsaParams

type EcdsaParams struct {
	Name string
	Hash *Union
}

dictionary: EcdsaParams

func EcdsaParamsFromJS

func EcdsaParamsFromJS(value js.Value) *EcdsaParams

EcdsaParamsFromJS is allocating a new EcdsaParams object and copy all values in the value javascript object.

func (*EcdsaParams) JSValue

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

JSValue is allocating a new javascript object and copy all values

type HkdfParams

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

dictionary: HkdfParams

func HkdfParamsFromJS

func HkdfParamsFromJS(value js.Value) *HkdfParams

HkdfParamsFromJS is allocating a new HkdfParams object and copy all values in the value javascript object.

func (*HkdfParams) JSValue

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

JSValue is allocating a new javascript object and copy all values

type HmacImportParams

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

dictionary: HmacImportParams

func HmacImportParamsFromJS

func HmacImportParamsFromJS(value js.Value) *HmacImportParams

HmacImportParamsFromJS is allocating a new HmacImportParams object and copy all values in the value javascript object.

func (*HmacImportParams) JSValue

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

JSValue is allocating a new javascript object and copy all values

type HmacKeyAlgorithm

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

dictionary: HmacKeyAlgorithm

func HmacKeyAlgorithmFromJS

func HmacKeyAlgorithmFromJS(value js.Value) *HmacKeyAlgorithm

HmacKeyAlgorithmFromJS is allocating a new HmacKeyAlgorithm object and copy all values in the value javascript object.

func (*HmacKeyAlgorithm) JSValue

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

JSValue is allocating a new javascript object and copy all values

type HmacKeyGenParams

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

dictionary: HmacKeyGenParams

func HmacKeyGenParamsFromJS

func HmacKeyGenParamsFromJS(value js.Value) *HmacKeyGenParams

HmacKeyGenParamsFromJS is allocating a new HmacKeyGenParams object and copy all values in the value javascript object.

func (*HmacKeyGenParams) JSValue

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

JSValue is allocating a new javascript object and copy all values

type JsonWebKey

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

func JsonWebKeyFromJS(value js.Value) *JsonWebKey

JsonWebKeyFromJS is allocating a new JsonWebKey object and copy all values in the value javascript object.

func (*JsonWebKey) JSValue

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

JSValue is allocating a new javascript object and copy all values

type KeyAlgorithm

type KeyAlgorithm struct {
	Name string
}

dictionary: KeyAlgorithm

func KeyAlgorithmFromJS

func KeyAlgorithmFromJS(value js.Value) *KeyAlgorithm

KeyAlgorithmFromJS is allocating a new KeyAlgorithm object and copy all values in the value javascript object.

func (*KeyAlgorithm) JSValue

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

JSValue is allocating a new javascript object and copy all values

type KeyFormat

type KeyFormat int

enum: KeyFormat

const (
	RawKeyFormat KeyFormat = iota
	SpkiKeyFormat
	Pkcs8KeyFormat
	JwkKeyFormat
)

func KeyFormatFromJS

func KeyFormatFromJS(value js.Value) KeyFormat

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

func (*KeyFormat) JSValue

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

JSValue is converting this enum into a javascript object

func (KeyFormat) Value

func (this KeyFormat) Value() string

Value is converting this into javascript defined string value

type KeyType

type KeyType int

enum: KeyType

const (
	PublicKeyType KeyType = iota
	PrivateKeyType
	SecretKeyType
)

func KeyTypeFromJS

func KeyTypeFromJS(value js.Value) KeyType

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

func (*KeyType) JSValue

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

JSValue is converting this enum into a javascript object

func (KeyType) Value

func (this KeyType) Value() string

Value is converting this into javascript defined string value

type KeyUsage

type KeyUsage int

enum: KeyUsage

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

func KeyUsageFromJS

func KeyUsageFromJS(value js.Value) KeyUsage

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

func (*KeyUsage) JSValue

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

JSValue is converting this enum into a javascript object

func (KeyUsage) Value

func (this KeyUsage) Value() string

Value is converting this into javascript defined string value

type Pbkdf2Params

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

dictionary: Pbkdf2Params

func Pbkdf2ParamsFromJS

func Pbkdf2ParamsFromJS(value js.Value) *Pbkdf2Params

Pbkdf2ParamsFromJS is allocating a new Pbkdf2Params object and copy all values in the value javascript object.

func (*Pbkdf2Params) JSValue

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

JSValue is allocating a new javascript object and copy all values

type PromiseCryptoKey

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

class: Promise

func PromiseCryptoKeyFromJS

func PromiseCryptoKeyFromJS(value js.Value) *PromiseCryptoKey

PromiseCryptoKeyFromJS is casting a js.Value into PromiseCryptoKey.

func PromiseCryptoKeyFromWrapper

func PromiseCryptoKeyFromWrapper(input core.Wrapper) *PromiseCryptoKey

PromiseCryptoKeyFromJS is casting from something that holds a js.Value into PromiseCryptoKey.

func (*PromiseCryptoKey) Catch

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

func (*PromiseCryptoKey) Finally

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

func (*PromiseCryptoKey) JSValue

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

JSValue returns the js.Value or js.Null() if _this is nil

func (*PromiseCryptoKey) Then

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

type PromiseCryptoKeyOnFulfilled

type PromiseCryptoKeyOnFulfilled js.Func

PromiseCryptoKeyOnFulfilled is a javascript function type.

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

type PromiseCryptoKeyOnFulfilledFunc

type PromiseCryptoKeyOnFulfilledFunc func(value *CryptoKey)

callback: PromiseTemplateOnFulfilled

func PromiseCryptoKeyOnFulfilledFromJS

func PromiseCryptoKeyOnFulfilledFromJS(_value js.Value) PromiseCryptoKeyOnFulfilledFunc

type PromiseCryptoKeyOnRejected

type PromiseCryptoKeyOnRejected js.Func

PromiseCryptoKeyOnRejected is a javascript function type.

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

type PromiseCryptoKeyOnRejectedFunc

type PromiseCryptoKeyOnRejectedFunc func(reason js.Value)

callback: PromiseTemplateOnRejected

func PromiseCryptoKeyOnRejectedFromJS

func PromiseCryptoKeyOnRejectedFromJS(_value js.Value) PromiseCryptoKeyOnRejectedFunc

type RsaHashedImportParams

type RsaHashedImportParams struct {
	Name string
	Hash *Union
}

dictionary: RsaHashedImportParams

func RsaHashedImportParamsFromJS

func RsaHashedImportParamsFromJS(value js.Value) *RsaHashedImportParams

RsaHashedImportParamsFromJS is allocating a new RsaHashedImportParams object and copy all values in the value javascript object.

func (*RsaHashedImportParams) JSValue

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

JSValue is allocating a new javascript object and copy all values

type RsaHashedKeyAlgorithm

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

dictionary: RsaHashedKeyAlgorithm

func RsaHashedKeyAlgorithmFromJS

func RsaHashedKeyAlgorithmFromJS(value js.Value) *RsaHashedKeyAlgorithm

RsaHashedKeyAlgorithmFromJS is allocating a new RsaHashedKeyAlgorithm object and copy all values in the value javascript object.

func (*RsaHashedKeyAlgorithm) JSValue

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

JSValue is allocating a new javascript object and copy all values

type RsaHashedKeyGenParams

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

dictionary: RsaHashedKeyGenParams

func RsaHashedKeyGenParamsFromJS

func RsaHashedKeyGenParamsFromJS(value js.Value) *RsaHashedKeyGenParams

RsaHashedKeyGenParamsFromJS is allocating a new RsaHashedKeyGenParams object and copy all values in the value javascript object.

func (*RsaHashedKeyGenParams) JSValue

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

JSValue is allocating a new javascript object and copy all values

type RsaKeyAlgorithm

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

dictionary: RsaKeyAlgorithm

func RsaKeyAlgorithmFromJS

func RsaKeyAlgorithmFromJS(value js.Value) *RsaKeyAlgorithm

RsaKeyAlgorithmFromJS is allocating a new RsaKeyAlgorithm object and copy all values in the value javascript object.

func (*RsaKeyAlgorithm) JSValue

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

JSValue is allocating a new javascript object and copy all values

type RsaKeyGenParams

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

dictionary: RsaKeyGenParams

func RsaKeyGenParamsFromJS

func RsaKeyGenParamsFromJS(value js.Value) *RsaKeyGenParams

RsaKeyGenParamsFromJS is allocating a new RsaKeyGenParams object and copy all values in the value javascript object.

func (*RsaKeyGenParams) JSValue

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

JSValue is allocating a new javascript object and copy all values

type RsaOaepParams

type RsaOaepParams struct {
	Name  string
	Label *Union
}

dictionary: RsaOaepParams

func RsaOaepParamsFromJS

func RsaOaepParamsFromJS(value js.Value) *RsaOaepParams

RsaOaepParamsFromJS is allocating a new RsaOaepParams object and copy all values in the value javascript object.

func (*RsaOaepParams) JSValue

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

JSValue is allocating a new javascript object and copy all values

type RsaOtherPrimesInfo

type RsaOtherPrimesInfo struct {
	R string
	D string
	T string
}

dictionary: RsaOtherPrimesInfo

func RsaOtherPrimesInfoFromJS

func RsaOtherPrimesInfoFromJS(value js.Value) *RsaOtherPrimesInfo

RsaOtherPrimesInfoFromJS is allocating a new RsaOtherPrimesInfo object and copy all values in the value javascript object.

func (*RsaOtherPrimesInfo) JSValue

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

JSValue is allocating a new javascript object and copy all values

type RsaPssParams

type RsaPssParams struct {
	Name       string
	SaltLength uint
}

dictionary: RsaPssParams

func RsaPssParamsFromJS

func RsaPssParamsFromJS(value js.Value) *RsaPssParams

RsaPssParamsFromJS is allocating a new RsaPssParams object and copy all values in the value javascript object.

func (*RsaPssParams) JSValue

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

JSValue is allocating a new javascript object and copy all values

type SubtleCrypto

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

class: SubtleCrypto

func SubtleCryptoFromJS

func SubtleCryptoFromJS(value js.Value) *SubtleCrypto

SubtleCryptoFromJS is casting a js.Value into SubtleCrypto.

func SubtleCryptoFromWrapper

func SubtleCryptoFromWrapper(input core.Wrapper) *SubtleCrypto

SubtleCryptoFromJS is casting from something that holds a js.Value into SubtleCrypto.

func (*SubtleCrypto) Decrypt

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

func (*SubtleCrypto) DeriveBits

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

func (*SubtleCrypto) DeriveKey

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

func (*SubtleCrypto) Digest

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

func (*SubtleCrypto) Encrypt

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

func (*SubtleCrypto) ExportKey

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

func (*SubtleCrypto) GenerateKey

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

func (*SubtleCrypto) ImportKey

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

func (*SubtleCrypto) JSValue

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

JSValue returns the js.Value or js.Null() if _this is nil

func (*SubtleCrypto) Sign

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

func (*SubtleCrypto) UnwrapKey

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

func (*SubtleCrypto) Verify

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

func (*SubtleCrypto) WrapKey

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

type Union

type Union struct {
	Value js.Value
}

func UnionFromJS

func UnionFromJS(value js.Value) *Union

func (*Union) JSValue

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

Directories

Path Synopsis
Package authentication enabling the creation and use of strong, attested, scoped, public key-based credentials by web applications, for the purpose of strongly authenticating users.
Package authentication enabling the creation and use of strong, attested, scoped, public key-based credentials by web applications, for the purpose of strongly authenticating users.
Package 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 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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL