cryptopp 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +4 -0
- data/Gemfile +14 -0
- data/Guardfile +17 -0
- data/MIT-LICENSE +1 -1
- data/Rakefile +20 -27
- data/VERSION +1 -0
- data/cryptopp.gemspec +7 -182
- data/ext/Rakefile +2 -2
- data/ext/ciphers.cpp +619 -619
- data/ext/cryptopp.cpp +220 -217
- data/ext/cryptopp_ruby_api.h +7 -7
- data/ext/defs/hashes.def +16 -0
- data/ext/defs/hmacs.def +16 -0
- data/ext/digests.cpp +635 -601
- data/ext/extconf.rb +61 -19
- data/ext/j3way.cpp +5 -5
- data/ext/j3way.h +6 -6
- data/ext/jadler32.h +6 -6
- data/ext/jaes.cpp +5 -5
- data/ext/jaes.h +6 -6
- data/ext/jarc4.cpp +5 -5
- data/ext/jarc4.h +6 -6
- data/ext/jbase.cpp +94 -94
- data/ext/jbase.h +49 -55
- data/ext/jbasiccipherinfo.h +23 -23
- data/ext/jblowfish.cpp +5 -5
- data/ext/jblowfish.h +6 -6
- data/ext/jcamellia.cpp +5 -7
- data/ext/jcamellia.h +6 -8
- data/ext/jcast128.cpp +5 -5
- data/ext/jcast128.h +6 -6
- data/ext/jcast256.cpp +5 -5
- data/ext/jcast256.h +6 -6
- data/ext/jcipher.cpp +62 -62
- data/ext/jcipher.h +24 -24
- data/ext/jcipher_t.h +383 -383
- data/ext/jconfig.h +29 -46
- data/ext/jconstants.h +120 -122
- data/ext/jcrc32.h +6 -6
- data/ext/jdes.cpp +5 -5
- data/ext/jdes.h +6 -6
- data/ext/jdes_ede2.cpp +5 -5
- data/ext/jdes_ede2.h +6 -6
- data/ext/jdes_ede3.cpp +5 -5
- data/ext/jdes_ede3.h +6 -6
- data/ext/jdes_xex3.cpp +5 -5
- data/ext/jdes_xex3.h +6 -6
- data/ext/jdiamond2.cpp +5 -5
- data/ext/jdiamond2.h +6 -6
- data/ext/jdiamond2lite.cpp +5 -5
- data/ext/jdiamond2lite.h +6 -6
- data/ext/jexception.h +5 -5
- data/ext/jgost.cpp +5 -5
- data/ext/jgost.h +6 -6
- data/ext/jhash.cpp +51 -51
- data/ext/jhash.h +22 -27
- data/ext/jhash_t.h +59 -59
- data/ext/jhaval.h +15 -15
- data/ext/jhelpers.cpp +54 -54
- data/ext/jhelpers.h +3 -3
- data/ext/jhmac.cpp +20 -20
- data/ext/jhmac.h +15 -15
- data/ext/jhmac_t.h +40 -72
- data/ext/jidea.cpp +5 -5
- data/ext/jidea.h +6 -6
- data/ext/jmarc4.cpp +5 -5
- data/ext/jmarc4.h +6 -6
- data/ext/jmars.cpp +5 -5
- data/ext/jmars.h +6 -6
- data/ext/jmd2.h +9 -9
- data/ext/jmd4.h +9 -9
- data/ext/jmd5.h +9 -9
- data/ext/jpanamacipher.cpp +7 -7
- data/ext/jpanamacipher.h +9 -9
- data/ext/jpanamahash.h +9 -9
- data/ext/jrc2.cpp +15 -15
- data/ext/jrc2.h +11 -11
- data/ext/jrc5.cpp +5 -5
- data/ext/jrc5.h +6 -6
- data/ext/jrc6.cpp +5 -5
- data/ext/jrc6.h +6 -6
- data/ext/jripemd160.h +28 -28
- data/ext/jsafer.cpp +7 -7
- data/ext/jsafer.h +9 -9
- data/ext/jseal.cpp +7 -7
- data/ext/jseal.h +9 -9
- data/ext/jserpent.cpp +5 -5
- data/ext/jserpent.h +6 -6
- data/ext/jsha.h +38 -37
- data/ext/jsha3.h +130 -0
- data/ext/jsha3_blocksizes.h +73 -0
- data/ext/jshacal2.cpp +5 -5
- data/ext/jshacal2.h +6 -6
- data/ext/jshark.cpp +5 -7
- data/ext/jshark.h +6 -8
- data/ext/jsink.cpp +57 -57
- data/ext/jsink.h +127 -123
- data/ext/jskipjack.cpp +5 -5
- data/ext/jskipjack.h +6 -6
- data/ext/jsquare.cpp +5 -5
- data/ext/jsquare.h +6 -6
- data/ext/jstream.cpp +3 -3
- data/ext/jstream.h +3 -3
- data/ext/jstream_t.h +74 -126
- data/ext/jtea.cpp +5 -5
- data/ext/jtea.h +6 -6
- data/ext/jtiger.h +9 -11
- data/ext/jtwofish.cpp +5 -5
- data/ext/jtwofish.h +6 -6
- data/ext/jwhirlpool.h +9 -11
- data/ext/utils.cpp +3 -3
- data/extras/parser_c.rb +102 -102
- data/test/ciphers_test.rb +24 -30
- data/test/data/ciphers/3desval.yml +13 -0
- data/test/data/ciphers/3wayval.yml +17 -0
- data/test/data/ciphers/arc4.yml +22 -0
- data/test/data/ciphers/blowfish.yml +9 -0
- data/test/data/ciphers/camellia.yml +21 -0
- data/test/data/ciphers/cast128v.yml +13 -0
- data/test/data/ciphers/cast256v.yml +13 -0
- data/test/data/ciphers/descert.yml +723 -0
- data/test/data/ciphers/diamond.yml +31 -0
- data/test/data/ciphers/gostval.yml +33 -0
- data/test/data/ciphers/ideaval.yml +45 -0
- data/test/data/ciphers/marsval.yml +37 -0
- data/test/data/ciphers/panamac.yml +11 -0
- data/test/data/ciphers/rc2val.yml +49 -0
- data/test/data/ciphers/rc5val.yml +26 -0
- data/test/data/ciphers/rc6val.yml +25 -0
- data/test/data/ciphers/rijndael.yml +37 -0
- data/test/data/ciphers/saferval.yml +77 -0
- data/test/data/ciphers/seal.yml +6 -0
- data/test/data/ciphers/serpentv.yml +37 -0
- data/test/data/ciphers/shacal2.yml +21 -0
- data/test/data/ciphers/sharkval.yml +29 -0
- data/test/data/ciphers/skipjack.yml +5 -0
- data/test/data/ciphers/squareva.yml +33 -0
- data/test/data/ciphers/twofishv.yml +37 -0
- data/test/data/digests/adler32.yml +19 -0
- data/test/data/digests/crc32.yml +25 -0
- data/test/data/digests/haval.yml +7 -0
- data/test/data/digests/havalcer.yml +1 -0
- data/test/data/digests/md2.yml +22 -0
- data/test/data/digests/md4.yml +22 -0
- data/test/data/digests/md5.yml +22 -0
- data/test/data/digests/panamah.yml +13 -0
- data/test/data/digests/ripemd.yml +97 -0
- data/test/data/digests/sha.yml +25 -0
- data/test/data/digests/sha3.yml +23 -0
- data/test/data/digests/tiger.yml +30 -0
- data/test/data/digests/whirlpool.yml +25 -0
- data/test/data/hmacs/hmac.yml +14 -0
- data/test/digests_test.rb +17 -23
- data/test/hmacs_test.rb +25 -31
- data/test/test_helper.rb +31 -37
- metadata +70 -82
- data/test/data/ciphers/3desval.dat +0 -7
- data/test/data/ciphers/3wayval.dat +0 -6
- data/test/data/ciphers/arc4.dat +0 -8
- data/test/data/ciphers/blowfish.dat +0 -5
- data/test/data/ciphers/camellia.dat +0 -7
- data/test/data/ciphers/cast128v.dat +0 -5
- data/test/data/ciphers/cast256v.dat +0 -5
- data/test/data/ciphers/descert.dat +0 -198
- data/test/data/ciphers/diamond.dat +0 -9
- data/test/data/ciphers/gostval.dat +0 -10
- data/test/data/ciphers/ideaval.dat +0 -13
- data/test/data/ciphers/marsval.dat +0 -11
- data/test/data/ciphers/panamac.dat +0 -7
- data/test/data/ciphers/rc2val.dat +0 -10
- data/test/data/ciphers/rc5val.dat +0 -7
- data/test/data/ciphers/rc6val.dat +0 -8
- data/test/data/ciphers/rijndael.dat +0 -11
- data/test/data/ciphers/saferval.dat +0 -27
- data/test/data/ciphers/seal.dat +0 -3
- data/test/data/ciphers/serpentv.dat +0 -11
- data/test/data/ciphers/shacal2.dat +0 -7
- data/test/data/ciphers/sharkval.dat +0 -9
- data/test/data/ciphers/skipjack.dat +0 -3
- data/test/data/ciphers/squareva.dat +0 -10
- data/test/data/ciphers/twofishv.dat +0 -11
- data/test/data/digests/adler32.dat +0 -8
- data/test/data/digests/crc32.dat +0 -10
- data/test/data/digests/haval.dat +0 -4
- data/test/data/digests/havalcer.dat +0 -23
- data/test/data/digests/md2.dat +0 -9
- data/test/data/digests/md4.dat +0 -9
- data/test/data/digests/md5.dat +0 -9
- data/test/data/digests/panamah.dat +0 -8
- data/test/data/digests/ripemd.dat +0 -43
- data/test/data/digests/sha.dat +0 -19
- data/test/data/digests/tiger.dat +0 -11
- data/test/data/digests/whirlpool.dat +0 -13
- data/test/data/hmacs/hmac.dat +0 -6
@@ -0,0 +1,14 @@
|
|
1
|
+
---
|
2
|
+
- :algorithm: :md5_hmac
|
3
|
+
:plaintext: Hi There
|
4
|
+
:key_hex: 0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b
|
5
|
+
:digest_hex: 9294727a3638bb1c13f48ef8158bfc9d
|
6
|
+
- :algorithm: :md5_hmac
|
7
|
+
:plaintext: what do ya want for nothing?
|
8
|
+
:key_hex: 4A656665
|
9
|
+
:digest_hex: 750c783e6ab0b503eaa86e310a5db738
|
10
|
+
- :algorithm: :md5_hmac
|
11
|
+
:plaintext: Test Using Larger Than Block-Size Key - Hash Key First
|
12
|
+
:key_hex: A
|
13
|
+
:key_repeat: 160
|
14
|
+
:digest_hex: 6b1ab7fe4bd7bf8f0b62e6ce61b9d0cd
|
data/test/digests_test.rb
CHANGED
@@ -1,29 +1,23 @@
|
|
1
1
|
|
2
|
-
|
3
|
-
require '
|
2
|
+
$: << File.dirname(__FILE__)
|
3
|
+
require 'test_helper'
|
4
4
|
|
5
|
-
class DigestsTest <
|
6
|
-
|
5
|
+
class DigestsTest < MiniTest::Unit::TestCase
|
6
|
+
extend TestHelper
|
7
7
|
|
8
|
-
|
9
|
-
|
8
|
+
Dir.glob('test/data/digests/*.yml').sort.each do |f|
|
9
|
+
test_name = File.basename(f).gsub(/.yml$/, '')
|
10
10
|
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
end
|
11
|
+
readfile(f) do |options, i|
|
12
|
+
define_method("test_#{test_name}_#{i}") do
|
13
|
+
if CryptoPP.digest_enabled? options[:algorithm]
|
14
|
+
d = CryptoPP.digest_factory(options[:algorithm], options[:plaintext])
|
15
|
+
t = CryptoPP.digest_factory(options[:algorithm], { :digest => d.digest, :plaintext => d.plaintext })
|
17
16
|
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
assert(t.validate)
|
25
|
-
assert_equal(d.digest_hex, options[:digest_hex])
|
26
|
-
end
|
27
|
-
end
|
28
|
-
end
|
17
|
+
assert(t.validate)
|
18
|
+
assert_equal(d.digest_hex, options[:digest_hex])
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
29
23
|
end
|
data/test/hmacs_test.rb
CHANGED
@@ -1,38 +1,32 @@
|
|
1
1
|
|
2
|
-
|
3
|
-
require '
|
2
|
+
$: << File.dirname(__FILE__)
|
3
|
+
require 'test_helper'
|
4
4
|
|
5
|
-
class HMACsTest <
|
6
|
-
|
5
|
+
class HMACsTest < MiniTest::Unit::TestCase
|
6
|
+
extend TestHelper
|
7
7
|
|
8
|
-
|
9
|
-
|
8
|
+
Dir.glob('test/data/hmacs/*.yml').sort.each do |f|
|
9
|
+
test_name = File.basename(f).gsub(/.yml$/, '')
|
10
10
|
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
11
|
+
readfile(f) do |options, i|
|
12
|
+
define_method("test_#{test_name}_#{i}") do
|
13
|
+
if CryptoPP.digest_enabled? options[:algorithm]
|
14
|
+
d = CryptoPP.hmac_factory(options[:algorithm], {
|
15
|
+
:key_hex => options[:key_hex],
|
16
|
+
:plaintext => options[:plaintext]
|
17
|
+
})
|
18
|
+
d.calculate
|
17
19
|
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
:plaintext => options[:plaintext]
|
24
|
-
})
|
25
|
-
d.calculate
|
20
|
+
t = CryptoPP.hmac_factory(options[:algorithm], {
|
21
|
+
:digest => d.digest,
|
22
|
+
:plaintext => d.plaintext,
|
23
|
+
:key => d.key
|
24
|
+
})
|
26
25
|
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
assert(t.validate)
|
34
|
-
assert_equal(d.digest_hex, options[:digest_hex])
|
35
|
-
end
|
36
|
-
end
|
37
|
-
end
|
26
|
+
assert(t.validate)
|
27
|
+
assert_equal(d.digest_hex, options[:digest_hex])
|
28
|
+
end
|
29
|
+
end
|
30
|
+
end
|
31
|
+
end
|
38
32
|
end
|
data/test/test_helper.rb
CHANGED
@@ -1,42 +1,36 @@
|
|
1
1
|
|
2
2
|
require 'rubygems'
|
3
|
-
require '
|
3
|
+
require 'minitest/autorun'
|
4
|
+
require 'minitest/reporters' if RUBY_VERSION >= '1.9'
|
5
|
+
require 'yaml'
|
6
|
+
require File.join(File.dirname(__FILE__), %w{ .. ext cryptopp })
|
7
|
+
|
8
|
+
puts "Version #{CryptoPP::VERSION}"
|
9
|
+
puts "Crypto++ version #{CryptoPP::CRYPTOPP_VERSION}"
|
4
10
|
|
5
11
|
module TestHelper
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
options[:plaintext] || options[:plaintext_hex] *= l.shift.to_i
|
26
|
-
when 'key_repeat'
|
27
|
-
options[:key] || options[:key_hex] *= l.shift.to_i
|
28
|
-
when 'block_mode'
|
29
|
-
options[:block_mode] = l.shift.to_sym
|
30
|
-
when 'padding'
|
31
|
-
options[:padding] = l.shift.to_sym
|
32
|
-
else
|
33
|
-
options[i.to_sym] = l.shift
|
34
|
-
end
|
35
|
-
end
|
36
|
-
|
37
|
-
yield(options)
|
38
|
-
end
|
39
|
-
end
|
40
|
-
end
|
41
|
-
end
|
12
|
+
def readfile(file)
|
13
|
+
File.open(file) do |f|
|
14
|
+
yaml = YAML.load(f.read)
|
15
|
+
|
16
|
+
yaml.each_with_index do |options, i|
|
17
|
+
if options[:plaintext_repeat]
|
18
|
+
value = options[:plaintext] || options[:plaintext_hex]
|
19
|
+
value.replace(value * options[:plaintext_repeat])
|
20
|
+
end
|
21
|
+
|
22
|
+
if options[:key_repeat]
|
23
|
+
value = options[:key] || options[:key_hex]
|
24
|
+
value.replace(value * options[:key_repeat])
|
25
|
+
end
|
26
|
+
|
27
|
+
yield(options, i)
|
28
|
+
end
|
29
|
+
end
|
30
|
+
end
|
42
31
|
end
|
32
|
+
|
33
|
+
if RUBY_VERSION >= '1.9'
|
34
|
+
MiniTest::Reporters.use!(MiniTest::Reporters::SpecReporter.new)
|
35
|
+
end
|
36
|
+
|
metadata
CHANGED
@@ -1,36 +1,30 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: cryptopp
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
segments:
|
6
|
-
- 0
|
7
|
-
- 0
|
8
|
-
- 4
|
9
|
-
version: 0.0.4
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.5
|
10
5
|
platform: ruby
|
11
|
-
authors:
|
6
|
+
authors:
|
12
7
|
- J Smith
|
13
8
|
autorequire:
|
14
9
|
bindir: bin
|
15
10
|
cert_chain: []
|
16
|
-
|
17
|
-
date: 2010-07-01 00:00:00 -04:00
|
18
|
-
default_executable:
|
11
|
+
date: 2014-03-23 00:00:00.000000000 Z
|
19
12
|
dependencies: []
|
20
|
-
|
21
13
|
description: cryptopp is a cryptographic library for Ruby built on Wei Dai's Crypto++.
|
22
14
|
email: dark.panda@gmail.com
|
23
15
|
executables: []
|
24
|
-
|
25
|
-
extensions:
|
16
|
+
extensions:
|
26
17
|
- ext/extconf.rb
|
27
|
-
extra_rdoc_files:
|
18
|
+
extra_rdoc_files:
|
28
19
|
- README
|
29
|
-
files:
|
30
|
-
- .gitignore
|
20
|
+
files:
|
21
|
+
- ".gitignore"
|
22
|
+
- Gemfile
|
23
|
+
- Guardfile
|
31
24
|
- MIT-LICENSE
|
32
25
|
- README
|
33
26
|
- Rakefile
|
27
|
+
- VERSION
|
34
28
|
- cryptopp.gemspec
|
35
29
|
- ext/.gitignore
|
36
30
|
- ext/Rakefile
|
@@ -120,6 +114,8 @@ files:
|
|
120
114
|
- ext/jserpent.cpp
|
121
115
|
- ext/jserpent.h
|
122
116
|
- ext/jsha.h
|
117
|
+
- ext/jsha3.h
|
118
|
+
- ext/jsha3_blocksizes.h
|
123
119
|
- ext/jshacal2.cpp
|
124
120
|
- ext/jshacal2.h
|
125
121
|
- ext/jshark.cpp
|
@@ -142,79 +138,71 @@ files:
|
|
142
138
|
- ext/utils.cpp
|
143
139
|
- extras/parser_c.rb
|
144
140
|
- test/ciphers_test.rb
|
145
|
-
- test/data/ciphers/3desval.
|
146
|
-
- test/data/ciphers/3wayval.
|
147
|
-
- test/data/ciphers/arc4.
|
148
|
-
- test/data/ciphers/blowfish.
|
149
|
-
- test/data/ciphers/camellia.
|
150
|
-
- test/data/ciphers/cast128v.
|
151
|
-
- test/data/ciphers/cast256v.
|
152
|
-
- test/data/ciphers/descert.
|
153
|
-
- test/data/ciphers/diamond.
|
154
|
-
- test/data/ciphers/gostval.
|
155
|
-
- test/data/ciphers/ideaval.
|
156
|
-
- test/data/ciphers/marsval.
|
157
|
-
- test/data/ciphers/panamac.
|
158
|
-
- test/data/ciphers/rc2val.
|
159
|
-
- test/data/ciphers/rc5val.
|
160
|
-
- test/data/ciphers/rc6val.
|
161
|
-
- test/data/ciphers/rijndael.
|
162
|
-
- test/data/ciphers/saferval.
|
163
|
-
- test/data/ciphers/seal.
|
164
|
-
- test/data/ciphers/serpentv.
|
165
|
-
- test/data/ciphers/shacal2.
|
166
|
-
- test/data/ciphers/sharkval.
|
167
|
-
- test/data/ciphers/skipjack.
|
168
|
-
- test/data/ciphers/squareva.
|
169
|
-
- test/data/ciphers/twofishv.
|
170
|
-
- test/data/digests/adler32.
|
171
|
-
- test/data/digests/crc32.
|
172
|
-
- test/data/digests/haval.
|
173
|
-
- test/data/digests/havalcer.
|
174
|
-
- test/data/digests/md2.
|
175
|
-
- test/data/digests/md4.
|
176
|
-
- test/data/digests/md5.
|
177
|
-
- test/data/digests/panamah.
|
178
|
-
- test/data/digests/ripemd.
|
179
|
-
- test/data/digests/sha.
|
180
|
-
- test/data/digests/
|
181
|
-
- test/data/digests/
|
182
|
-
- test/data/
|
141
|
+
- test/data/ciphers/3desval.yml
|
142
|
+
- test/data/ciphers/3wayval.yml
|
143
|
+
- test/data/ciphers/arc4.yml
|
144
|
+
- test/data/ciphers/blowfish.yml
|
145
|
+
- test/data/ciphers/camellia.yml
|
146
|
+
- test/data/ciphers/cast128v.yml
|
147
|
+
- test/data/ciphers/cast256v.yml
|
148
|
+
- test/data/ciphers/descert.yml
|
149
|
+
- test/data/ciphers/diamond.yml
|
150
|
+
- test/data/ciphers/gostval.yml
|
151
|
+
- test/data/ciphers/ideaval.yml
|
152
|
+
- test/data/ciphers/marsval.yml
|
153
|
+
- test/data/ciphers/panamac.yml
|
154
|
+
- test/data/ciphers/rc2val.yml
|
155
|
+
- test/data/ciphers/rc5val.yml
|
156
|
+
- test/data/ciphers/rc6val.yml
|
157
|
+
- test/data/ciphers/rijndael.yml
|
158
|
+
- test/data/ciphers/saferval.yml
|
159
|
+
- test/data/ciphers/seal.yml
|
160
|
+
- test/data/ciphers/serpentv.yml
|
161
|
+
- test/data/ciphers/shacal2.yml
|
162
|
+
- test/data/ciphers/sharkval.yml
|
163
|
+
- test/data/ciphers/skipjack.yml
|
164
|
+
- test/data/ciphers/squareva.yml
|
165
|
+
- test/data/ciphers/twofishv.yml
|
166
|
+
- test/data/digests/adler32.yml
|
167
|
+
- test/data/digests/crc32.yml
|
168
|
+
- test/data/digests/haval.yml
|
169
|
+
- test/data/digests/havalcer.yml
|
170
|
+
- test/data/digests/md2.yml
|
171
|
+
- test/data/digests/md4.yml
|
172
|
+
- test/data/digests/md5.yml
|
173
|
+
- test/data/digests/panamah.yml
|
174
|
+
- test/data/digests/ripemd.yml
|
175
|
+
- test/data/digests/sha.yml
|
176
|
+
- test/data/digests/sha3.yml
|
177
|
+
- test/data/digests/tiger.yml
|
178
|
+
- test/data/digests/whirlpool.yml
|
179
|
+
- test/data/hmacs/hmac.yml
|
183
180
|
- test/digests_test.rb
|
184
181
|
- test/hmacs_test.rb
|
185
182
|
- test/test_helper.rb
|
186
|
-
has_rdoc: true
|
187
183
|
homepage: http://github.com/dark-panda/ruby-cryptopp
|
188
|
-
licenses:
|
189
|
-
|
184
|
+
licenses:
|
185
|
+
- MIT
|
186
|
+
metadata: {}
|
190
187
|
post_install_message:
|
191
|
-
rdoc_options:
|
192
|
-
- --charset=UTF-8
|
193
|
-
require_paths:
|
188
|
+
rdoc_options:
|
189
|
+
- "--charset=UTF-8"
|
190
|
+
require_paths:
|
194
191
|
- lib
|
195
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
196
|
-
requirements:
|
192
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
193
|
+
requirements:
|
197
194
|
- - ">="
|
198
|
-
- !ruby/object:Gem::Version
|
199
|
-
|
200
|
-
|
201
|
-
|
202
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
203
|
-
requirements:
|
195
|
+
- !ruby/object:Gem::Version
|
196
|
+
version: '0'
|
197
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
198
|
+
requirements:
|
204
199
|
- - ">="
|
205
|
-
- !ruby/object:Gem::Version
|
206
|
-
|
207
|
-
- 0
|
208
|
-
version: "0"
|
200
|
+
- !ruby/object:Gem::Version
|
201
|
+
version: '0'
|
209
202
|
requirements: []
|
210
|
-
|
211
203
|
rubyforge_project:
|
212
|
-
rubygems_version:
|
204
|
+
rubygems_version: 2.2.2
|
213
205
|
signing_key:
|
214
|
-
specification_version:
|
206
|
+
specification_version: 4
|
215
207
|
summary: cryptopp is a cryptographic library for Ruby built on Wei Dai's Crypto++.
|
216
|
-
test_files:
|
217
|
-
- test/ciphers_test.rb
|
218
|
-
- test/digests_test.rb
|
219
|
-
- test/hmacs_test.rb
|
220
|
-
- test/test_helper.rb
|
208
|
+
test_files: []
|
@@ -1,7 +0,0 @@
|
|
1
|
-
fields key_hex plaintext_hex ciphertext_hex
|
2
|
-
algorithm cipher des_ede2
|
3
|
-
test 0123456789abcdeffedcba9876543210 0123456789abcde7 7f1d0a77826b8aff
|
4
|
-
algorithm cipher des_ede3
|
5
|
-
test 0123456789abcdeffedcba987654321089abcdef01234567 0123456789abcde7 de0b7c06ae5e0ed5
|
6
|
-
algorithm cipher des_xex3
|
7
|
-
test 0123456789abcdef01010101010101011011121314151617 94dbe082549a14ef 9011121314151617
|
@@ -1,6 +0,0 @@
|
|
1
|
-
algorithm cipher threeway
|
2
|
-
fields key_hex plaintext_hex ciphertext_hex
|
3
|
-
test 000000000000000000000000 000000010000000100000001 4059c76e83ae9dc4ad21ecf7
|
4
|
-
test 000000060000000500000004 000000030000000200000001 d2f05b5ed6144138cab920cd
|
5
|
-
test def01234456789abbcdef012 234567899abcdef001234567 0aa55dbb9cdddb6d7cdb76b2
|
6
|
-
test d2f05b5ed6144138cab920cd 4059c76e83ae9dc4ad21ecf7 478ea8716b13f17c15b155ed
|
data/test/data/ciphers/arc4.dat
DELETED
@@ -1,8 +0,0 @@
|
|
1
|
-
algorithm cipher arc4
|
2
|
-
fields key_hex plaintext_hex ciphertext_hex_cont
|
3
|
-
test 0123456789abcdef 0123456789abcdef 75b7878099e0c596
|
4
|
-
test 0123456789abcdef 0000000000000000 7494c2e7104b0879
|
5
|
-
test 0000000000000000 0000000000000000 de188941a3375d3a
|
6
|
-
test ef012345 00000000000000000000 d6a141a7ec3c38dfbd61
|
7
|
-
fields key_hex plaintext_hex plaintext_repeat ciphertext_hex_cont
|
8
|
-
test 0123456789abcdef 01 512 7595c3e6114a09780c4ad452338e1ffd9a1be949 8f813d76533449b6778dcad8c78a8d2ba9ac6608 5d0e53d59c26c2d1c490c1ebbe0ce66d1b6b1b13 b6b919b847c25a91447a95e75e4ef16779cde8bf 0a95850e32af9689444fd377108f98fdcbd4e726 567500990bcc7e0ca3c4aaa304a387d20f3b8fbb cd42a1bd311d7a4303dda5ab078896ae80c18b0a f66dff319616eb784e495ad2ce90d7f772a81747 b65f62093b1e0db9e5ba532fafec47508323e671 327df9444432cb7367cec82f5d44c0d00b67d650 a075cd4b70dedd77eb9b10231b6b5b741347396d 62897421d43df9b42e446e358e9c11a9b2184ecb ef0cd8e7a877ef968f1390ec9b3d35a5585cb009 290e2fcde7b5ec66d9084be44055a619d9dd7fc3 166f9487f7cb272912426445998514c15d53a18c 864ce3a2b7555793988126520eacf2e3066e230c 91bee4dd5304f5fd0405b35bd99c73135d3d9bc3 35ee049ef69b3867bf2d7bd1eaa595d8bfc0066f f8d31509eb0c6caa006c807a623ef84c3d33c195 d23ee320c40de0558157c822d4b8c569d849aed5 9d4e0fd7f379586b4b7ff684ed6a189f7486d49b 9c4bad9ba24b96abf924372c8a8fffb10d553549 00a77a3db5f205e1b99fcd8660863a159ad4abe4 0fa48934163ddde542a6585540fd683cbfd8c00f 12129a284deacc4cdefe58be7137541c047126c8 d49e2755ab181ab7e940b0c0
|
@@ -1,7 +0,0 @@
|
|
1
|
-
algorithm cipher camellia
|
2
|
-
fields key_hex plaintext_hex ciphertext_hex
|
3
|
-
test 80000000000000000000000000000000 00000000000000000000000000000000 6c227f749319a3aa7da235a9bba05a2c
|
4
|
-
test 00000000000000000000000000000000 80000000000000000000000000000000 07923a39eb0a817d1c4d87bdb82d1f1c
|
5
|
-
test 00000000000000000000000000000000 00000000000000000000000000000000 3d028025b156327c17f762c1f2cbca71
|
6
|
-
test a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5 a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5 1f55093c234648c5c9c781e8c9fd42c4
|
7
|
-
test fefefefefefefefefefefefefefefefefefefefefefefefefefefefefefefefe fefefefefefefefefefefefefefefefe acdbb0f5a00e3cf63a89d9c09b44a058
|
@@ -1,5 +0,0 @@
|
|
1
|
-
algorithm cipher cast256
|
2
|
-
fields key_hex plaintext_hex ciphertext_hex
|
3
|
-
test 2342bb9efa38542c0af75647f29f615d 00000000000000000000000000000000 c842a08972b43d20836c91d1b7530f6b
|
4
|
-
test 2342bb9efa38542cbed0ac83940ac298bac77a7717942863 00000000000000000000000000000000 1b386c0210dcadcbdd0e41aa08a7a7e8
|
5
|
-
test 2342bb9efa38542cbed0ac83940ac2988d7c47ce264908461cc1b5137ae6b604 00000000000000000000000000000000 4f6a2038286897b9c9870136553317fa
|