API Docs for: 1.3.12
Show:

EcRsaOaepAsyncWorker Class

Asynchronous implementation of EcRsaOaep. Uses web workers and assumes 8 workers.

Item Index

Methods

Methods

decrypt

(
  • ppk
  • ciphertext
  • success
  • failure
)
static

Asynchronous form of EcRsaOaep.decrypt

Parameters:

  • ppk EcPpk

    Public private keypair to use to decrypt.

  • ciphertext String

    Ciphertext to decrypt.

  • success Function(string)

    Success method, result is unencoded plaintext.

  • failure Function(string)

    Failure method, parameter is error message.

encrypt

(
  • pk
  • plaintext
  • success
  • failure
)
static

Asynchronous form of EcRsaOaep.encrypt

Parameters:

  • pk EcPk

    Public Key to use to encrypt.

  • plaintext String

    Plaintext to encrypt.

  • success Function(string)

    Success method, result is Base64 encoded Ciphertext.

  • failure Function(string)

    Failure method, parameter is error message.

sign

(
  • ppk
  • text
  • success
  • failure
)
static

Asynchronous form of EcRsaOaep.sign

Parameters:

  • ppk EcPpk

    Public private keypair to use to sign message.

  • text String

    Text to sign.

  • success Function(string)

    Success method, result is Base64 encoded signature.

  • failure Function(string)

    Failure method, parameter is error message.

signSha256

(
  • ppk
  • text
  • success
  • failure
)
static

Asynchronous form of EcRsaOaep.signSha256

Parameters:

  • ppk EcPpk

    Public private keypair to use to sign message.

  • text String

    Text to sign.

  • success Function(string)

    Success method, result is Base64 encoded signature.

  • failure Function(string)

    Failure method, parameter is error message.

verify

(
  • pk
  • text
  • signature
  • success
  • failure
)
static

Asynchronous form of EcRsaOaep.verify

Parameters:

  • pk EcPk

    Public key to use to verify message.

  • text String

    Text to use in verification.

  • signature String

    Signature to use in verification.

  • success Function(boolean)

    Success method, result is whether signature is valid.

  • failure Function(string)

    Failure method, parameter is error message.