Class PKCS8

Object
   |
   +--PKCS8

class 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

idEcPublicKey

<static> Object idEcPublicKey

PAD

<static> Object PAD

rsaEncryption

<static> Object rsaEncryption

Constructor Detail

PKCS8

PKCS8()

Method Detail

convertUnsignedInteger

<static> ByteString convertUnsignedInteger(<ByteString> value)

decodeECCKeyFromPKCS8Format

<static> Key decodeECCKeyFromPKCS8Format(domainParameter, encodedKey)

decodeKeyFromPKCS8Format

<static> Key decodeKeyFromPKCS8Format(encodedKey)

decodeRSAKeyFromPKCS8Format

<static> Key decodeRSAKeyFromPKCS8Format(<ASN1> algparam, <ASN1> privateKey)

decodeUncompressedECPoint

<static> Object decodeUncompressedECPoint(uncompressedPoint)

encodeECCKeyUsingPKCS8Format

<static> ByteString encodeECCKeyUsingPKCS8Format(privateKey)

encodeKeyUsingPKCS8Format

<static> ByteString encodeKeyUsingPKCS8Format(privateKey, publicKey)

encodeRSAKey

<static> ByteString encodeRSAKey(<Key> privateKey, publicKey)

encodeRSAKeyUsingPKCS8Format

<static> ByteString encodeRSAKeyUsingPKCS8Format(privateKey, publicKey)

encodeUncompressedECPoint

<static> ByteString encodeUncompressedECPoint(<ByteString> x,<ByteString> y)

I2O

<static> ByteString I2O(<ByteString> value, length)

stripLeadingZeros

<static> ByteString stripLeadingZeros(<ByteString> value, size)

test

<static> void test()


Documentation generated by JSDoc on Tue Sep 3 22:29:38 2013