AesKeyGenParams
dictionary of the
Web 加密 API
represents the object that should be passed as the
algorithm
parameter into
SubtleCrypto.generateKey()
, when generating an AES key: that is, when the algorithm is identified as any of
AES-CBC
,
AES-CTR
,
AES-GCM
,或
AES-KW
.
名称
DOMString
. This should be set to
AES-CBC
,
AES-CTR
,
AES-GCM
,或
AES-KW
, depending on the algorithm you want to use.
length
A
Number
— the length in bits of the key to generate. This must be one of: 128, 192, or 256.
See the examples for
SubtleCrypto.generateKey()
.
| 规范 | 状态 | 注释 |
|---|---|---|
|
Web Cryptography API
The definition of 'SubtleCrypto.AesKeyGenParams' in that specification. |
推荐 |
Browsers that support any of the the AES-based algorithms for the
SubtleCrypto.generateKey()
method will support this type.
AesKeyGenParams