|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Object | +--PKCS8
Defined in pkcs8.js
Field Summary | |
<static> Object |
idEcPublicKey
|
<static> Object |
PAD
|
<static> Object |
rsaEncryption
|
Constructor Summary | |
PKCS8()
Empty constructor |
Method Summary | |
<static> ByteString
|
convertUnsignedInteger(<ByteString> value)
Removes leading zeros and prepends a single '00' to ByteStrings which have the most significant bit set. |
<static> Key
|
decodeECCKeyFromPKCS8Format(domainParameter, encodedKey)
Decode a given PKCS#8 ECC private key from the given ByteString and create a GP key object |
<static> Key
|
decodeKeyFromPKCS8Format(encodedKey)
Decode a given PKCS#8 private key from the given ByteString and create a GP key object |
<static> Key
|
decodeRSAKeyFromPKCS8Format(<ASN1> algparam, <ASN1> privateKey)
Decode a given PKCS#8 RSA private key from the given ByteString and create a GP key object |
<static> Object
|
decodeUncompressedECPoint(uncompressedPoint)
Convert uncompressed format to x and y coordinates |
<static> ByteString
|
encodeECCKeyUsingPKCS8Format(privateKey)
Encode a given GP ECC private key as specified by the PKCS#8 format |
<static> ByteString
|
encodeKeyUsingPKCS8Format(privateKey, publicKey)
Encode a given GP private key as specified by the PKCS#8 format |
<static> ByteString
|
encodeRSAKey(<Key> privateKey, publicKey)
Encode RSA private key as defined in PKCS#1 |
<static> ByteString
|
encodeRSAKeyUsingPKCS8Format(privateKey, publicKey)
Encode a given GP RSA private key as specified by the PKCS#8 format |
<static> ByteString
|
encodeUncompressedECPoint(<ByteString> x,<ByteString> y)
Convert x/y coordinates to uncompressed format |
<static> ByteString
|
I2O(<ByteString> value, length)
Integer to octet string conversion |
<static> ByteString
|
stripLeadingZeros(<ByteString> value, size)
Strips leading zeros of a ByteString |
<static> void
|
test()
Simple self-test |
Field Detail |
<static> Object idEcPublicKey
<static> Object PAD
<static> Object rsaEncryption
Constructor Detail |
PKCS8()
Method Detail |
<static> ByteString convertUnsignedInteger(<ByteString> value)
value
- the value to convert
<static> Key decodeECCKeyFromPKCS8Format(domainParameter, encodedKey)
algparam
- the algorithm parameter from AlgorithmInfo
privateKey
- the privateKey element from the PKCS#8 structure
<static> Key decodeKeyFromPKCS8Format(encodedKey)
the
- private key object in PKCS#8 format
<static> Key decodeRSAKeyFromPKCS8Format(<ASN1> algparam, <ASN1> privateKey)
algparam
- the algorithm parameter from AlgorithmInfo
privateKey
- the privateKey element from the PKCS#8 structure
the
- private key object in PKCS#8 format
<static> Object decodeUncompressedECPoint(uncompressedPoint)
compressed
- point
<static> ByteString encodeECCKeyUsingPKCS8Format(privateKey)
the
- private key object that should be encoded
<static> ByteString encodeKeyUsingPKCS8Format(privateKey, publicKey)
the
- private key object that should be encoded
<static> ByteString encodeRSAKey(<Key> privateKey, publicKey)
privateKey
- the private RSA key in CRT format
<static> ByteString encodeRSAKeyUsingPKCS8Format(privateKey, publicKey)
the
- private key object that should be encoded
<static> ByteString encodeUncompressedECPoint(<ByteString> x,<ByteString> y)
x
- the x coordinate
y
- the y coordinate
<static> ByteString I2O(<ByteString> value, length)
value
- the encoded integer value
the
- number of digits
<static> ByteString stripLeadingZeros(<ByteString> value, size)
value
- the ByteString value
<static> void test()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |