deriveKey method
Not yet supported. Returns a Promise object which will generate a key for the specified derivedKeyType, using the specified cryptographic key derivation algorithm with the given baseKey as input.
Syntax
var retVal = SubtleCrypto.deriveKey(algorithm, baseKey, derivedKeyType, extractable, keyUsages);Parameters
Not supported.
- algorithm [in]
-
Type: any
A supported key generation algorithm.
- baseKey [in]
-
Type: Key
A valid Key object.
- derivedKeyType [in]
-
Type: any
The desired key type.
- extractable [in, optional]
-
Type: bool
Whether or not the keying material may be exported by the application. The default value is false.
- keyUsages [in, optional]
-
Type: sequence<DOMString>
Must contain the DOM string derive.
- retVal [out, retval]
-
Type: Promise
A Promiseobject that will return a key that can be used to perform the operations specified by the keyUsages parameter.
Return value
Type: Promise
A Promiseobject that will return a key that can be used to perform the operations specified by the keyUsages parameter.
Remarks
This method is present in the DOM but is not supported. If called, this method always throws a NOT_SUPPORTED_ERR DOM exception when called.
See also