☰
@nfen/webcrypto-ts
Version 0.1.8
Exports
. .
AesShared
Alg
Properties
algorithm
extractable
self
type
usages
Methods
decrypt
encrypt
exportKey
unwrapKey
wrapKey
?
Interface
aes/shared
.
AesCtrProxiedCryptoKey
source
·
[
−
]
Properties
source
algorithm
source
algorithm:
KeyAlgorithm
source
extractable
source
extractable:
boolean
source
self
source
self:
AesCtrCryptoKey
source
type
source
type:
KeyType
source
usages
source
usages:
KeyUsage
[]
Methods
decrypt
source
(
algorithm
:
Omit
<
EnforcedAesCtrParams
,
"name"
>
, data
:
BufferSource
)
:
Promise
<
ArrayBuffer
>
encrypt
source
(
algorithm
:
Omit
<
EnforcedAesCtrParams
,
"name"
>
, data
:
BufferSource
)
:
Promise
<
ArrayBuffer
>
source
exportKey
source
(
format
:
KeyFormat
)
:
Promise
<
ArrayBuffer
|
JsonWebKey
>
unwrapKey
source
(
format
:
KeyFormat
, wrappedKey
:
BufferSource
, wrappedKeyAlgorithm
:
EnforcedImportParams
, unwrappingKeyAlgorithm
:
Omit
<
EnforcedAesCtrParams
,
"name"
>
, extractable
?:
boolean
, keyUsages
?:
KeyUsage
[]
)
:
Promise
<
CryptoKey
>
wrapKey
source
(
format
:
KeyFormat
, key
:
CryptoKey
, wrapAlgorithm
:
Omit
<
EnforcedAesCtrParams
,
"name"
>
)
:
Promise
<
ArrayBuffer
>