| Package | Description |
|---|---|
| com.eduworks.ec.crypto |
| Modifier and Type | Method and Description |
|---|---|
static EcPpk |
EcPpk.fromPem(String pem)
Decodes a PEM encoded PrivateKeyInfo (PKCS#8) or RSAPrivateKey (PKCS#1) formatted RSA Public Key.
|
static EcPpk |
EcPpk.generateKey()
Generates an RSA Keypair synchronously.
|
| Modifier and Type | Method and Description |
|---|---|
static String |
EcRsaOaep.decrypt(EcPpk ppk,
String ciphertext)
Decrypts a block of ciphertext (no more than 256 bytes) with a private
key using RSA OAEP encryption.
|
static void |
EcRsaOaepAsync.decrypt(EcPpk ppk,
String text,
org.stjs.javascript.functions.Callback1<String> success,
org.stjs.javascript.functions.Callback1<String> failure) |
static void |
EcRsaOaepAsyncWorker.decrypt(EcPpk ppk,
String ciphertext,
org.stjs.javascript.functions.Callback1<String> success,
org.stjs.javascript.functions.Callback1<String> failure)
Asynchronous form of {{#crossLink
"EcRsaOaep/decrypt:method"}}EcRsaOaep.decrypt{{/crossLink}}
|
static String |
EcRsaOaep.sign(EcPpk ppk,
String text)
Creates a signature for the provided text using the public private
keypair.
|
static void |
EcRsaOaepAsync.sign(EcPpk ppk,
String text,
org.stjs.javascript.functions.Callback1<String> success,
org.stjs.javascript.functions.Callback1<String> failure) |
static void |
EcRsaOaepAsyncWorker.sign(EcPpk ppk,
String text,
org.stjs.javascript.functions.Callback1<String> success,
org.stjs.javascript.functions.Callback1<String> failure)
Asynchronous form of {{#crossLink
"EcRsaOaep/sign:method"}}EcRsaOaep.sign{{/crossLink}}
|
static String |
EcRsaOaep.signSha256(EcPpk ppk,
String text)
Creates a signature for the provided text using the public private
keypair.
|
static void |
EcRsaOaepAsync.signSha256(EcPpk ppk,
String text,
org.stjs.javascript.functions.Callback1<String> success,
org.stjs.javascript.functions.Callback1<String> failure) |
static void |
EcRsaOaepAsyncWorker.signSha256(EcPpk ppk,
String text,
org.stjs.javascript.functions.Callback1<String> success,
org.stjs.javascript.functions.Callback1<String> failure)
Asynchronous form of {{#crossLink
"EcRsaOaep/signSha256:method"}}EcRsaOaep.signSha256{{/crossLink}}
|
| Modifier and Type | Method and Description |
|---|---|
static void |
EcPpk.generateKeyAsync(org.stjs.javascript.functions.Callback1<EcPpk> callback)
Generates an RSA Keypair using web workers.
|
boolean |
EcPpk.inArray(org.stjs.javascript.Array<EcPpk> ppks)
Returns true if this PPK is in an array of PPKs.
|
Copyright © 2018 Eduworks Corporation. All rights reserved.