Preparing search index...
The search index is not available
Documentation - v0.19.5
Documentation
@mtcute/node
utils
BaseNodeCryptoProvider
Class BaseNodeCryptoProvider
Abstract
Hierarchy (
View Summary
)
BaseCryptoProvider
BaseNodeCryptoProvider
NodeCryptoProvider
NodeNativeCryptoProvider
Index
Constructors
constructor
Methods
create
Aes
Ctr
factorizePQ
gunzip
gzip
hmac
Sha256
pbkdf2
random
Bytes
random
Fill
sha1
sha256
Constructors
constructor
new
BaseNodeCryptoProvider
()
:
BaseNodeCryptoProvider
Returns
BaseNodeCryptoProvider
Methods
create
Aes
Ctr
createAesCtr
(
key
:
Uint8Array
,
iv
:
Uint8Array
)
:
IAesCtr
Parameters
key
:
Uint8Array
iv
:
Uint8Array
Returns
IAesCtr
factorizePQ
factorizePQ
(
pq
:
Uint8Array
)
:
[
Uint8Array
,
Uint8Array
]
Parameters
pq
:
Uint8Array
Returns
[
Uint8Array
,
Uint8Array
]
gunzip
gunzip
(
data
:
Uint8Array
)
:
Uint8Array
Parameters
data
:
Uint8Array
Returns
Uint8Array
gzip
gzip
(
data
:
Uint8Array
,
maxSize
:
number
)
:
null
|
Uint8Array
Parameters
data
:
Uint8Array
maxSize
:
number
Returns
null
|
Uint8Array
hmac
Sha256
hmacSha256
(
data
:
Uint8Array
,
key
:
Uint8Array
)
:
Uint8Array
Parameters
data
:
Uint8Array
key
:
Uint8Array
Returns
Uint8Array
pbkdf2
pbkdf2
(
password
:
Uint8Array
,
salt
:
Uint8Array
,
iterations
:
number
,
keylen
?:
number
,
algo
?:
string
,
)
:
Promise
<
Uint8Array
>
Parameters
password
:
Uint8Array
salt
:
Uint8Array
iterations
:
number
keylen
:
number
= 64
algo
:
string
= 'sha512'
Returns
Promise
<
Uint8Array
>
random
Bytes
randomBytes
(
size
:
number
)
:
Uint8Array
Parameters
size
:
number
Returns
Uint8Array
random
Fill
randomFill
(
buf
:
Uint8Array
)
:
void
Parameters
buf
:
Uint8Array
Returns
void
sha1
sha1
(
data
:
Uint8Array
)
:
Uint8Array
Parameters
data
:
Uint8Array
Returns
Uint8Array
sha256
sha256
(
data
:
Uint8Array
)
:
Uint8Array
Parameters
data
:
Uint8Array
Returns
Uint8Array
Settings
Member Visibility
Protected
Inherited
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Methods
create
Aes
Ctr
factorizePQ
gunzip
gzip
hmac
Sha256
pbkdf2
random
Bytes
random
Fill
sha1
sha256
Documentation - v0.19.5
Loading...