WebCrypto GOST Class: KeyFormat



new KeyFormat()

Specifies a serialization format for a key. The recognized key format values are:
  • 'raw' - An unformatted sequence of bytes. Intended for secret keys.
  • 'pkcs8' - The DER encoding of the PrivateKeyInfo structure from RFC 5208.
  • 'spki' - The DER encoding of the SubjectPublicKeyInfo structure from RFC 5280.
  • 'jwk' - The key is represented as JSON according to the JSON Web Key format.
 typedef DOMString KeyFormat;
WebCrypto API reference http://www.w3.org/TR/WebCryptoAPI/#key-interface