Class PKCS15_PrivateKey

Object
   |
   +--PKCS15_CIO
         |
         +--PKCS15_CommonKeyAttributes
               |
               +--PKCS15_CommonPrivateKeyAttributes
                     |
                     +--PKCS15_PrivateKey

class PKCS15_PrivateKey
extends PKCS15_CommonPrivateKeyAttributes


This class adds private key attributes to the common private key attribute class.

The class supports RSA and ECC keys.

RSA keys are decoded from the following ASN.1 structure:

 PrivateRSAKeyAttributes ::= SEQUENCE {
 value Path,
 modulusLength INTEGER, -- modulus length in bits, e.g. 1024
 keyInfo KeyInfo {NULL, PublicKeyOperations} OPTIONAL,
 ... -- For future extensions
 }
 

ECC keys are decoded from the following ASN.1 structure:

 PrivateECKeyAttributes ::= SEQUENCE {
 value Path,
 keyInfo KeyInfo {Parameters, PublicKeyOperations} OPTIONAL,
 ... -- For future extensions
 }
 

Defined in p15classes.js

See:


Field Summary
 Object type
          
   
Fields inherited from class PKCS15_CommonKeyAttributes
iD, usage, native_, accessFlags, keyReference, startDate, endDate, algReference
   
Fields inherited from class PKCS15_CIO
tlv, label, flags, authId, userConsent, accessControlRules
 
Constructor Summary
PKCS15_PrivateKey(tlv)
            Create a Private Key Object
   
Methods inherited from class PKCS15_CommonKeyAttributes
getUsageAsString, getAccessFlagsAsString, toString
   
Methods inherited from class PKCS15_CIO
getFlagsAsString
 

Field Detail

type

Object type

Constructor Detail

PKCS15_PrivateKey

PKCS15_PrivateKey(tlv)


Documentation generated by JSDoc on Tue Apr 15 22:10:49 2025