Preparing search index...
The search index is not available
mtcute - v0.17.2
mtcute
@mtcute/web
WebCryptoProvider
Class WebCryptoProvider
Hierarchy (
view full
)
BaseCryptoProvider
WebCryptoProvider
Implements
ICryptoProvider
Index
Constructors
constructor
Properties
crypto
Methods
create
Aes
Ctr
create
Aes
Ige
gunzip
gzip
hmac
Sha256
initialize
pbkdf2
random
Fill
sha1
sha256
Constructors
constructor
new
Web
Crypto
Provider
(
params
?
)
:
WebCryptoProvider
Parameters
Optional
params
:
WebCryptoProviderOptions
Returns
WebCryptoProvider
Properties
Readonly
crypto
crypto
:
Crypto
Methods
create
Aes
Ctr
create
Aes
Ctr
(
key
,
iv
)
:
IAesCtr
Parameters
key
:
Uint8Array
iv
:
Uint8Array
Returns
IAesCtr
create
Aes
Ige
create
Aes
Ige
(
key
,
iv
)
:
IEncryptionScheme
Parameters
key
:
Uint8Array
iv
:
Uint8Array
Returns
IEncryptionScheme
gunzip
gunzip
(
data
)
:
Uint8Array
Parameters
data
:
Uint8Array
Returns
Uint8Array
gzip
gzip
(
data
,
maxSize
)
:
null
|
Uint8Array
Parameters
data
:
Uint8Array
maxSize
:
number
Returns
null
|
Uint8Array
hmac
Sha256
hmac
Sha256
(
data
,
key
)
:
Promise
<
Uint8Array
>
Parameters
data
:
Uint8Array
key
:
Uint8Array
Returns
Promise
<
Uint8Array
>
initialize
initialize
(
)
:
Promise
<
void
>
Returns
Promise
<
void
>
pbkdf2
pbkdf2
(
password
,
salt
,
iterations
,
keylen
?
,
algo
?
)
:
Promise
<
Uint8Array
>
Parameters
password
:
Uint8Array
salt
:
Uint8Array
iterations
:
number
Optional
keylen
:
number
Optional
algo
:
string
Returns
Promise
<
Uint8Array
>
random
Fill
random
Fill
(
buf
)
:
void
Parameters
buf
:
Uint8Array
Returns
void
sha1
sha1
(
data
)
:
Uint8Array
Parameters
data
:
Uint8Array
Returns
Uint8Array
sha256
sha256
(
data
)
:
Uint8Array
Parameters
data
:
Uint8Array
Returns
Uint8Array
Settings
Member Visibility
Protected
Inherited
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
crypto
Methods
create
Aes
Ctr
create
Aes
Ige
gunzip
gzip
hmac
Sha256
initialize
pbkdf2
random
Fill
sha1
sha256
mtcute - v0.17.2
Loading...