Namespace KJUR.crypto
Defined in: crypto-1.1.js.
Constructor Attributes | Constructor Name and Description |
---|---|
kjur's cryptographic algorithm provider library name space
This namespace privides following crytpgrahic classes. |
Method Attributes | Method Name and Description |
---|---|
<static> |
KJUR.crypto.digest()
|
<static> |
KJUR.crypto.digestHex(hex)
|
<static> |
KJUR.crypto.digestString(str)
|
<static> |
KJUR.crypto.doFinal()
|
<static> |
KJUR.crypto.doFinalHex(hex)
|
<static> |
KJUR.crypto.doFinalString(str)
|
<static> |
KJUR.crypto.init(keyparam, pass)
|
<static> |
KJUR.crypto.parseSig(sig)
Parses a byte array containing a DER-encoded signature.
|
<static> |
KJUR.crypto.serializeSig(r, s)
Serialize a signature into DER format.
|
<static> |
KJUR.crypto.setAlgAndProvider(alg, prov)
|
<static> |
KJUR.crypto.sign()
|
<static> |
KJUR.crypto.signHex(hex)
|
<static> |
KJUR.crypto.signString(str)
|
<static> |
KJUR.crypto.updateHex(hex)
|
<static> |
KJUR.crypto.updateString(str)
|
<static> |
KJUR.crypto.verify(hSigVal)
|
Namespace Detail
KJUR.crypto
kjur's cryptographic algorithm provider library name space
This namespace privides following crytpgrahic classes.
- KJUR.crypto.MessageDigest - Java JCE(cryptograhic extension) style MessageDigest class
- KJUR.crypto.Signature - Java JCE(cryptograhic extension) style Signature class
- KJUR.crypto.Util - cryptographic utility functions and properties
Method Detail
<static>
KJUR.crypto.digest()
<static>
KJUR.crypto.digestHex(hex)
- Parameters:
- hex
<static>
KJUR.crypto.digestString(str)
- Parameters:
- str
<static>
KJUR.crypto.doFinal()
<static>
KJUR.crypto.doFinalHex(hex)
- Parameters:
- hex
<static>
KJUR.crypto.doFinalString(str)
- Parameters:
- str
<static>
KJUR.crypto.init(keyparam, pass)
- Parameters:
- keyparam
- pass
<static>
KJUR.crypto.parseSig(sig)
Parses a byte array containing a DER-encoded signature.
This function will return an object of the form:
{
r: BigInteger,
s: BigInteger
}
Defined in: ecdsa-modified-1.0.js.
Defined in: ecdsa-modified-1.0.js.
- Parameters:
- sig
<static>
KJUR.crypto.serializeSig(r, s)
Serialize a signature into DER format.
Takes two BigIntegers representing r and s and returns a byte array.
Defined in: ecdsa-modified-1.0.js.
Defined in: ecdsa-modified-1.0.js.
- Parameters:
- r
- s
<static>
KJUR.crypto.setAlgAndProvider(alg, prov)
- Parameters:
- alg
- prov
<static>
KJUR.crypto.sign()
<static>
KJUR.crypto.signHex(hex)
- Parameters:
- hex
<static>
KJUR.crypto.signString(str)
- Parameters:
- str
<static>
KJUR.crypto.updateHex(hex)
- Parameters:
- hex
<static>
KJUR.crypto.updateString(str)
- Parameters:
- str
<static>
KJUR.crypto.verify(hSigVal)
- Parameters:
- hSigVal