Class PACE

Object
   |
   +--PACE

class PACE


This class implements the PACE protocol
Defined in pace.js


Field Summary
 Object algo
          
 Object crypto
          
 Object domparam
          
 Object sym
          
 Object symalgo
          
 Object version
          
<static>  Object bsi_de
          
<static>  Object id_IS
          
<static>  Object id_PACE
          
<static>  Object id_PACE_ECDH_GM
          
<static>  Object id_PACE_ECDH_GM_3DES_CBC_CBC
          
<static>  Object id_PACE_ECDH_GM_AES_CBC_CMAC_128
          
<static>  Object id_PACE_ECDH_GM_AES_CBC_CMAC_192
          
<static>  Object id_PACE_ECDH_GM_AES_CBC_CMAC_256
          
<static>  Object id_roles
          
 
Constructor Summary
PACE(<Crypto> crypto, <ByteString> algo, domparam, <Number> version)
            Create a PACE protocol object
 
Method Summary
 ByteString calculateAuthenticationToken()
           Calculate the authentication token over the public key received from the other side
 void decryptNonce(encnonce)
           Decrypt and store nonce using PACE key.
 Key deriveKey(<ByteString> input, <Number> counter, nonce)
           Derive key from input parameter, counter and optional nonce
 Key generateEphemeralKeyPair(domainParameter)
           Generate ephemeral ECC key pair.
 ByteString getEncryptedNonce()
           Generate nonce and encrypt using PACE key.
 ByteString getEphemeralPublicKey()
           Returns the ephemeral public key based on the new domain parameter
 ByteString getMappingData()
           Generates and returns the mapping data for this instance
 Number getSymmetricAlgorithm()
           Return algorithm type
 Boolean hasMapping()
           Returns true, if the mapping has been performed.
 Boolean hasNonce()
           Returns true, if the nonce is known.
 void performKeyAgreement(<ByteString> publicKey)
           Performs the mapping operation with mapping data from the other side
 void performMapping(mappingData)
           Performs the mapping operation with mapping data from the other side
 Object setPassword(<ByteString> pwd)
           Set the password and derive the PACE key.
 Object toString()
           Returns a human readable presentation of the current pace state.
 Boolean verifyAuthenticationToken(authToken)
           Calculate and verify the authentication token over the public key received from the other side
<static> ASN1 encodePublicKey(<String> oid, <Key> key, <Boolean> withDP)
           Encode an ECC public key in the format defined by the EAC 2.0 specification
<static> String keyToString(key)
           Describe key
<static> ByteString stripLeadingZeros(<ByteString> value)
           Strips leading zeros of a ByteString

Field Detail

algo

Object algo

crypto

Object crypto

domparam

Object domparam

sym

Object sym

symalgo

Object symalgo

version

Object version

bsi_de

<static> Object bsi_de

id_IS

<static> Object id_IS

id_PACE

<static> Object id_PACE

id_PACE_ECDH_GM

<static> Object id_PACE_ECDH_GM

id_PACE_ECDH_GM_3DES_CBC_CBC

<static> Object id_PACE_ECDH_GM_3DES_CBC_CBC

id_PACE_ECDH_GM_AES_CBC_CMAC_128

<static> Object id_PACE_ECDH_GM_AES_CBC_CMAC_128

id_PACE_ECDH_GM_AES_CBC_CMAC_192

<static> Object id_PACE_ECDH_GM_AES_CBC_CMAC_192

id_PACE_ECDH_GM_AES_CBC_CMAC_256

<static> Object id_PACE_ECDH_GM_AES_CBC_CMAC_256

id_roles

<static> Object id_roles

Constructor Detail

PACE

PACE(<Crypto> crypto, <ByteString> algo, domparam, <Number> version)

Method Detail

calculateAuthenticationToken

ByteString calculateAuthenticationToken()

decryptNonce

void decryptNonce(encnonce)

deriveKey

Key deriveKey(<ByteString> input, <Number> counter, nonce)

generateEphemeralKeyPair

Key generateEphemeralKeyPair(domainParameter)

getEncryptedNonce

ByteString getEncryptedNonce()

getEphemeralPublicKey

ByteString getEphemeralPublicKey()

getMappingData

ByteString getMappingData()

getSymmetricAlgorithm

Number getSymmetricAlgorithm()

hasMapping

Boolean hasMapping()

hasNonce

Boolean hasNonce()

performKeyAgreement

void performKeyAgreement(<ByteString> publicKey)

performMapping

void performMapping(mappingData)

setPassword

Object setPassword(<ByteString> pwd)

toString

Object toString()

verifyAuthenticationToken

Boolean verifyAuthenticationToken(authToken)

encodePublicKey

<static> ASN1 encodePublicKey(<String> oid, <Key> key, <Boolean> withDP)

keyToString

<static> String keyToString(key)

stripLeadingZeros

<static> ByteString stripLeadingZeros(<ByteString> value)


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