org.http4s.js.crypto

Type members

Classlikes

@native @JSType
trait AesCbcParams extends Algorithm
Companion
object
object AesCbcParams
Companion
class
@native @JSType
trait AesCfbParams extends Algorithm
Companion
object
object AesCfbParams
Companion
class
@native @JSType
trait AesCmacParams extends Algorithm
Companion
object
Companion
class
@native @JSType
trait AesCtrParams extends Algorithm
Companion
object
object AesCtrParams
Companion
class
@native @JSType
Companion
object
Companion
class
@native @JSType
trait AesGcmParams extends Algorithm
Companion
object
object AesGcmParams
Companion
class
@native @JSType
Companion
object
Companion
class
@native @JSType
Companion
object
Companion
class
@native @JSType
trait Algorithm extends Object
@native @nowarn @JSType
sealed trait BufferSource extends Any
@native @JSType
trait ConcatParams extends Algorithm
Companion
object
object ConcatParams
Companion
class
@native @JSType
trait Crypto extends Object

The Crypto interface represents basic cryptography features available in the current context. It allows access to a cryptographically strong random number generator and to cryptographic primitives.

The Crypto interface represents basic cryptography features available in the current context. It allows access to a cryptographically strong random number generator and to cryptographic primitives.

MDN

@native @JSType
trait CryptoKey extends Object

The CryptoKey object represents an opaque reference to keying material that is managed by the user agent.

The CryptoKey object represents an opaque reference to keying material that is managed by the user agent.

defined at ¶13 The CryptoKey Interface

@native @JSType
trait CryptoKeyPair extends Object

The CryptoKeyPair dictionary represents an asymmetric key pair that is comprised of both public and private keys. defined at ¶17 CryptoKeyPair dictionary of spec

The CryptoKeyPair dictionary represents an asymmetric key pair that is comprised of both public and private keys. defined at ¶17 CryptoKeyPair dictionary of spec

@native @JSType
Companion
object
Companion
class
@native @JSType
Companion
object
Companion
class
@native @JSType
Companion
object
Companion
class
@native @JSType
trait DhKeyGenParams extends Algorithm
Companion
object
Companion
class
@native @JSType
Companion
object
Companion
class
@native @JSType
trait EcKeyGenParams extends Algorithm
Companion
object
Companion
class
@native @JSType
Companion
object
Companion
class
@native @JSType
Companion
object
Companion
class
@native @JSType
trait EcdsaParams extends Algorithm
Companion
object
object EcdsaParams
Companion
class
@native @JSGlobalScope @JSType
object GlobalCrypto extends Object
@native @JSType
trait HashAlgorithm extends Algorithm

A HashAlgorithm type is not defined in the W3C Web Crypto API, even though a KeyAlgorithm dictionary type is. There are nevertheless a number of indications that HashAlgorithm's are a type of their own, as searching the spec will show.

A HashAlgorithm type is not defined in the W3C Web Crypto API, even though a KeyAlgorithm dictionary type is. There are nevertheless a number of indications that HashAlgorithm's are a type of their own, as searching the spec will show.

Companion
object
Companion
class
@native @JSType
trait HkdfCtrParams extends Algorithm
Companion
object
Companion
class
@native @JSType
Companion
object
Companion
class
@native @JSType
Companion
object
Companion
class
@native @JSType
Companion
object
Companion
class
@native @JSType
trait JsonWebKey extends Object
@native @JSType
trait KeyAlgorithm extends Algorithm

The KeyAlgorithm dictionary represents information about the contents of a given CryptoKey object.

The KeyAlgorithm dictionary represents information about the contents of a given CryptoKey object.

See ¶12 KeyAlgorithm dictionary in w3c spec.

@native @JSType
trait KeyFormat extends Any

see ¶14.2 Data Types in W3C spec

see ¶14.2 Data Types in W3C spec

Companion
object
object KeyFormat
Companion
class
@native @JSType
trait KeyType extends Any

see ¶13 CryptoKey interface in W3C doc

see ¶13 CryptoKey interface in W3C doc

Companion
object
object KeyType
Companion
class
@native @JSType
trait KeyUsage extends Any
Companion
object
object KeyUsage
Companion
class
@native @JSType
Companion
object
object Pbkdf2Params
Companion
class
@native @JSType
trait RSAPublicKey extends Object

see example http://tools.ietf.org/html/rfc7517#appendix-A.1 //todo: where is the specification of n and e?

see example http://tools.ietf.org/html/rfc7517#appendix-A.1 //todo: where is the specification of n and e?

@native @JSType
Companion
object
@native @JSType
Companion
object
@native @JSType
Companion
object
Companion
class
@native @JSType
Companion
object
Companion
class
@native @JSType
trait RsaOaepParams extends Algorithm
Companion
object
Companion
class
@native @JSType
trait RsaOtherPrimesInfo extends Object
@native @JSType
trait RsaPssParams extends Algorithm
Companion
object
object RsaPssParams
Companion
class
@native @JSType
trait SubtleCrypto extends Object

w3c ¶14 Subtle Crytpo interface

The SubtleCrypto interface represents a set of cryptographic primitives. It is available via the Crypto.subtle properties available in a window context (via Window.crypto).

MDN

Types

According to ¶11 Algorithm Identifier of the WebCryptoAPI an AlgorithmIdentifier is an object or DOMString. We make this more precise here and specify an Algorithm. note: it may be that we can do only with KeyAlgorithmIdentifier and HashAlgorithmIdentifier

According to ¶11 Algorithm Identifier of the WebCryptoAPI an AlgorithmIdentifier is an object or DOMString. We make this more precise here and specify an Algorithm. note: it may be that we can do only with KeyAlgorithmIdentifier and HashAlgorithmIdentifier

type BigInteger = Uint8Array

According to ¶11 Algorithm Identifier a HashAlgorithmIdentifier is an AlgorithmIdentifier. Here we distinguish between Hash and Key Algorithm Identifiers. At the JS layer these have the same structure.

According to ¶11 Algorithm Identifier a HashAlgorithmIdentifier is an AlgorithmIdentifier. Here we distinguish between Hash and Key Algorithm Identifiers. At the JS layer these have the same structure.

According to ¶11 Algorithm Identifier of the WebCryptoAPI an AlgorithmIdentifier is an object or DOMString. We make this more precise here and distinguish the non overlapping classes of Key and Hash Algorithms.

According to ¶11 Algorithm Identifier of the WebCryptoAPI an AlgorithmIdentifier is an object or DOMString. We make this more precise here and distinguish the non overlapping classes of Key and Hash Algorithms.

Implicits

Implicits

implicit def arrayBuffer2BufferSource(b: ArrayBuffer): BufferSource
implicit def arrayBufferView2BufferSource(b: ArrayBufferView): BufferSource