deriveKey method

Returns a KeyOperation object which will generate a key for the specified derivedKeyType, using the specified cryptographic key derivation algorithm with the given baseKey as input.

IE11

 

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: KeyOperation

An object that will return a key that can be used to perform the operations specified by the keyUsages parameter.

Return value

Type: KeyOperation

An object 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

SubtleCrypto

 

 

Show:
© 2014 Microsoft