crypto-toolbox 0.1.16 → 0.1.17
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3c529ed8b701c009002b4b9403f64034576b5af9
|
4
|
+
data.tar.gz: 7769523cf65f54fecc8e2f3e920a96d2bed93594
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 28b5161e37b409bfae0d46955e3aa51b5ab8761157911314752e149d1aa0785a84dfb529b4b8cb0f8fd7c5812772996a8effef468f432ee6f98e3f65f85333c8
|
7
|
+
data.tar.gz: 714d3cfb1302dee2e227246bf83ff082218db3a5c74dc4d697f72ebf917a893f6bb3c107f77a3f0d6a60587f798c311c18b0c008789595869bd9d53414251e39
|
@@ -21,7 +21,7 @@ class CryptBuffer
|
|
21
21
|
|
22
22
|
include Enumerable
|
23
23
|
extend Forwardable
|
24
|
-
def_delegators :@bytes,:empty?,:include?, :length, :each,
|
24
|
+
def_delegators :@bytes,:empty?,:include?, :length, :each, :|, :&
|
25
25
|
|
26
26
|
# NOTE
|
27
27
|
# we need to include all the extensions after the regular delegate
|
@@ -35,14 +35,7 @@ class CryptBufferInputConverter
|
|
35
35
|
end
|
36
36
|
|
37
37
|
def int2bytes(input)
|
38
|
-
|
39
|
-
if input.to_s(16).match(/^[0-9a-fA-F]+$/)
|
40
|
-
# assume 0x prefixed integer
|
41
|
-
hex2bytes(normalize_hex(input.to_s(16)))
|
42
|
-
else
|
43
|
-
# regular number
|
44
|
-
[input].pack('C*').bytes
|
45
|
-
end
|
38
|
+
[input].pack('C*').bytes
|
46
39
|
end
|
47
40
|
|
48
41
|
def hex2bytes(hexstr)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: crypto-toolbox
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.17
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dennis Sivia
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-04
|
11
|
+
date: 2015-05-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aes
|