You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

der.js 792B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. var constants = require('../constants');
  2. exports.tagClass = {
  3. 0: 'universal',
  4. 1: 'application',
  5. 2: 'context',
  6. 3: 'private'
  7. };
  8. exports.tagClassByName = constants._reverse(exports.tagClass);
  9. exports.tag = {
  10. 0x00: 'end',
  11. 0x01: 'bool',
  12. 0x02: 'int',
  13. 0x03: 'bitstr',
  14. 0x04: 'octstr',
  15. 0x05: 'null_',
  16. 0x06: 'objid',
  17. 0x07: 'objDesc',
  18. 0x08: 'external',
  19. 0x09: 'real',
  20. 0x0a: 'enum',
  21. 0x0b: 'embed',
  22. 0x0c: 'utf8str',
  23. 0x0d: 'relativeOid',
  24. 0x10: 'seq',
  25. 0x11: 'set',
  26. 0x12: 'numstr',
  27. 0x13: 'printstr',
  28. 0x14: 't61str',
  29. 0x15: 'videostr',
  30. 0x16: 'ia5str',
  31. 0x17: 'utctime',
  32. 0x18: 'gentime',
  33. 0x19: 'graphstr',
  34. 0x1a: 'iso646str',
  35. 0x1b: 'genstr',
  36. 0x1c: 'unistr',
  37. 0x1d: 'charstr',
  38. 0x1e: 'bmpstr'
  39. };
  40. exports.tagByName = constants._reverse(exports.tag);