lib/eet.js
function getFooterItems (privateKey, items) {
  const pkp = generatePKP(
    privateKey,
    items.dicPopl,
    items.idProvoz,
    items.idPokl,
    items.poradCis,
    formatDate(items.datTrzby),
    formatNumber(items.celkTrzba)
  )
  const bkp = generateBKP(pkp)

  return {
    pkp: {
      attributes: {
        digest: 'SHA256',
        cipher: 'RSA2048',
        encoding: 'base64'
      },
      $value: pkp
    },
    bkp: {
      attributes: {
        digest: 'SHA1',
        encoding: 'base16'
      },
      $value: bkp
    }
  }
}
function getFooterItems (privateKey, items) {
  const pkp = generatePKP(
    privateKey,
    items.dicPopl,
    items.idProvoz,
    items.idPokl,
    items.poradCis,
    formatDate(items.datTrzby),
    formatNumber(items.celkTrzba)
  )
  const bkp = generateBKP(pkp)

  return {
    pkp: {
      attributes: {
        digest: 'SHA256',
        cipher: 'RSA2048',
        encoding: 'base64'
      },
      $value: pkp
    },
    bkp: {
      attributes: {
        digest: 'SHA1',
        encoding: 'base16'
      },
      $value: bkp
    }
  }
}
function getFooterItems ( privateKey , items ) { const pkp = generatePKP ( privateKey , items . dicPopl , items . idProvoz , items . idPokl , items . poradCis , formatDate ( items . datTrzby ) , formatNumber ( items . celkTrzba ) ) const bkp = generateBKP ( pkp ) return { pkp : { attributes : { digest : 'SHA256' , cipher : 'RSA2048' , encoding : 'base64' } , $value : pkp } , bkp : { attributes : { digest : 'SHA1' , encoding : 'base16' } , $value : bkp } } }
Vygeneruje polozky pro element KontrolniKody.
Vygeneruje polozky pro element KontrolniKody .