krypt 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (70) hide show
  1. data/LICENSE +20 -0
  2. data/README.md +82 -0
  3. data/lib/krypt.rb +49 -0
  4. data/lib/krypt/asn1.rb +3 -0
  5. data/lib/krypt/asn1/common.rb +96 -0
  6. data/lib/krypt/asn1/template.rb +257 -0
  7. data/lib/krypt/codec.rb +57 -0
  8. data/lib/krypt/codec/base64.rb +140 -0
  9. data/lib/krypt/codec/base_codec.rb +36 -0
  10. data/lib/krypt/codec/hex.rb +122 -0
  11. data/lib/krypt/digest.rb +112 -0
  12. data/lib/krypt/hmac.rb +69 -0
  13. data/lib/krypt/pkcs5.rb +1 -0
  14. data/lib/krypt/pkcs5/pbkdf2.rb +41 -0
  15. data/lib/krypt/provider.rb +35 -0
  16. data/lib/krypt/x509.rb +3 -0
  17. data/lib/krypt/x509/certificate.rb +36 -0
  18. data/lib/krypt/x509/common.rb +41 -0
  19. data/lib/krypt/x509/crl.rb +33 -0
  20. data/lib/krypt_missing.rb +32 -0
  21. data/spec/krypt-core/MEMO.txt +85 -0
  22. data/spec/krypt-core/asn1/asn1_bit_string_spec.rb +475 -0
  23. data/spec/krypt-core/asn1/asn1_boolean_spec.rb +392 -0
  24. data/spec/krypt-core/asn1/asn1_constants_spec.rb +71 -0
  25. data/spec/krypt-core/asn1/asn1_data_spec.rb +1153 -0
  26. data/spec/krypt-core/asn1/asn1_end_of_contents_spec.rb +133 -0
  27. data/spec/krypt-core/asn1/asn1_enumerated_spec.rb +458 -0
  28. data/spec/krypt-core/asn1/asn1_generalized_time_spec.rb +492 -0
  29. data/spec/krypt-core/asn1/asn1_integer_spec.rb +557 -0
  30. data/spec/krypt-core/asn1/asn1_null_spec.rb +360 -0
  31. data/spec/krypt-core/asn1/asn1_object_id_spec.rb +495 -0
  32. data/spec/krypt-core/asn1/asn1_octet_string_spec.rb +456 -0
  33. data/spec/krypt-core/asn1/asn1_parser_spec.rb +503 -0
  34. data/spec/krypt-core/asn1/asn1_pem_spec.rb +282 -0
  35. data/spec/krypt-core/asn1/asn1_sequence_spec.rb +637 -0
  36. data/spec/krypt-core/asn1/asn1_set_spec.rb +795 -0
  37. data/spec/krypt-core/asn1/asn1_utc_time_spec.rb +495 -0
  38. data/spec/krypt-core/asn1/asn1_utf8_string_spec.rb +404 -0
  39. data/spec/krypt-core/asn1/resources.rb +53 -0
  40. data/spec/krypt-core/base64/base64_spec.rb +97 -0
  41. data/spec/krypt-core/digest/digest_spec.rb +707 -0
  42. data/spec/krypt-core/hex/hex_spec.rb +102 -0
  43. data/spec/krypt-core/pem/pem_decode_spec.rb +235 -0
  44. data/spec/krypt-core/resources.rb +1 -0
  45. data/spec/krypt-core/template/template_choice_parse_spec.rb +289 -0
  46. data/spec/krypt-core/template/template_dsl_spec.rb +351 -0
  47. data/spec/krypt-core/template/template_seq_of_parse_spec.rb +64 -0
  48. data/spec/krypt-core/template/template_seq_parse_spec.rb +1241 -0
  49. data/spec/krypt/codec/base64_decoder_spec.rb +94 -0
  50. data/spec/krypt/codec/base64_encoder_spec.rb +94 -0
  51. data/spec/krypt/codec/base64_mixed_spec.rb +16 -0
  52. data/spec/krypt/codec/hex_decoder_spec.rb +94 -0
  53. data/spec/krypt/codec/hex_encoder_spec.rb +94 -0
  54. data/spec/krypt/codec/hex_mixed_spec.rb +17 -0
  55. data/spec/krypt/codec/identity_shared.rb +119 -0
  56. data/spec/krypt/hmac/hmac_spec.rb +311 -0
  57. data/spec/krypt/pkcs5/pbkdf2_spec.rb +79 -0
  58. data/spec/krypt/provider/provider_spec.rb +83 -0
  59. data/spec/res/ca-bundle.crt +11758 -0
  60. data/spec/res/certificate.cer +0 -0
  61. data/spec/res/certificate.pem +20 -0
  62. data/spec/res/multiple_certs.pem +60 -0
  63. data/spec/resources.rb +66 -0
  64. data/test/helper.rb +8 -0
  65. data/test/res/certificate.cer +0 -0
  66. data/test/resources.rb +48 -0
  67. data/test/scratch.rb +28 -0
  68. data/test/test_krypt_asn1.rb +119 -0
  69. data/test/test_krypt_parser.rb +331 -0
  70. metadata +134 -0
metadata ADDED
@@ -0,0 +1,134 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: krypt
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ prerelease:
6
+ platform: ruby
7
+ authors:
8
+ - Hiroshi Nakamura, Martin Bosslet
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2013-02-27 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: krypt-core
16
+ requirement: !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - '='
20
+ - !ruby/object:Gem::Version
21
+ version: 0.0.1
22
+ type: :runtime
23
+ prerelease: false
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - '='
28
+ - !ruby/object:Gem::Version
29
+ version: 0.0.1
30
+ description: krypt provides a unified framework for Ruby cryptography by offering
31
+ a platform- and library-independent provider mechanism.
32
+ email: Martin.Bosslet@gmail.com
33
+ executables: []
34
+ extensions: []
35
+ extra_rdoc_files:
36
+ - README.md
37
+ files:
38
+ - lib/krypt/x509/certificate.rb
39
+ - lib/krypt/x509/common.rb
40
+ - lib/krypt/x509/crl.rb
41
+ - lib/krypt/codec/base_codec.rb
42
+ - lib/krypt/codec/base64.rb
43
+ - lib/krypt/codec/hex.rb
44
+ - lib/krypt/pkcs5/pbkdf2.rb
45
+ - lib/krypt/provider.rb
46
+ - lib/krypt/x509.rb
47
+ - lib/krypt/asn1/template.rb
48
+ - lib/krypt/asn1/common.rb
49
+ - lib/krypt/hmac.rb
50
+ - lib/krypt/pkcs5.rb
51
+ - lib/krypt/digest.rb
52
+ - lib/krypt/asn1.rb
53
+ - lib/krypt/codec.rb
54
+ - lib/krypt.rb
55
+ - lib/krypt_missing.rb
56
+ - spec/krypt/codec/hex_decoder_spec.rb
57
+ - spec/krypt/codec/hex_mixed_spec.rb
58
+ - spec/krypt/codec/hex_encoder_spec.rb
59
+ - spec/krypt/codec/base64_encoder_spec.rb
60
+ - spec/krypt/codec/base64_mixed_spec.rb
61
+ - spec/krypt/codec/identity_shared.rb
62
+ - spec/krypt/codec/base64_decoder_spec.rb
63
+ - spec/krypt/pkcs5/pbkdf2_spec.rb
64
+ - spec/krypt/hmac/hmac_spec.rb
65
+ - spec/krypt/provider/provider_spec.rb
66
+ - spec/krypt-core/digest/digest_spec.rb
67
+ - spec/krypt-core/MEMO.txt
68
+ - spec/krypt-core/hex/hex_spec.rb
69
+ - spec/krypt-core/asn1/asn1_pem_spec.rb
70
+ - spec/krypt-core/asn1/asn1_data_spec.rb
71
+ - spec/krypt-core/asn1/asn1_generalized_time_spec.rb
72
+ - spec/krypt-core/asn1/asn1_parser_spec.rb
73
+ - spec/krypt-core/asn1/asn1_integer_spec.rb
74
+ - spec/krypt-core/asn1/asn1_set_spec.rb
75
+ - spec/krypt-core/asn1/asn1_enumerated_spec.rb
76
+ - spec/krypt-core/asn1/asn1_octet_string_spec.rb
77
+ - spec/krypt-core/asn1/asn1_bit_string_spec.rb
78
+ - spec/krypt-core/asn1/asn1_constants_spec.rb
79
+ - spec/krypt-core/asn1/asn1_utc_time_spec.rb
80
+ - spec/krypt-core/asn1/asn1_null_spec.rb
81
+ - spec/krypt-core/asn1/asn1_sequence_spec.rb
82
+ - spec/krypt-core/asn1/asn1_boolean_spec.rb
83
+ - spec/krypt-core/asn1/asn1_object_id_spec.rb
84
+ - spec/krypt-core/asn1/asn1_utf8_string_spec.rb
85
+ - spec/krypt-core/asn1/resources.rb
86
+ - spec/krypt-core/asn1/asn1_end_of_contents_spec.rb
87
+ - spec/krypt-core/base64/base64_spec.rb
88
+ - spec/krypt-core/pem/pem_decode_spec.rb
89
+ - spec/krypt-core/template/template_choice_parse_spec.rb
90
+ - spec/krypt-core/template/template_seq_parse_spec.rb
91
+ - spec/krypt-core/template/template_seq_of_parse_spec.rb
92
+ - spec/krypt-core/template/template_dsl_spec.rb
93
+ - spec/krypt-core/resources.rb
94
+ - spec/resources.rb
95
+ - spec/res/certificate.pem
96
+ - spec/res/ca-bundle.crt
97
+ - spec/res/multiple_certs.pem
98
+ - spec/res/certificate.cer
99
+ - test/test_krypt_parser.rb
100
+ - test/scratch.rb
101
+ - test/helper.rb
102
+ - test/test_krypt_asn1.rb
103
+ - test/resources.rb
104
+ - test/res/certificate.cer
105
+ - LICENSE
106
+ - README.md
107
+ homepage: https://github.com/krypt/krypt
108
+ licenses:
109
+ - MIT
110
+ post_install_message:
111
+ rdoc_options: []
112
+ require_paths:
113
+ - lib
114
+ required_ruby_version: !ruby/object:Gem::Requirement
115
+ none: false
116
+ requirements:
117
+ - - ! '>='
118
+ - !ruby/object:Gem::Version
119
+ version: 1.9.3
120
+ required_rubygems_version: !ruby/object:Gem::Requirement
121
+ none: false
122
+ requirements:
123
+ - - ! '>='
124
+ - !ruby/object:Gem::Version
125
+ version: '0'
126
+ requirements: []
127
+ rubyforge_project:
128
+ rubygems_version: 1.8.23
129
+ signing_key:
130
+ specification_version: 3
131
+ summary: Platform- and library-independent cryptography for Ruby
132
+ test_files:
133
+ - test/test_krypt_parser.rb
134
+ - test/test_krypt_asn1.rb