tem_openssl 0.3.2 → 0.3.3

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG CHANGED
@@ -1,3 +1,5 @@
1
+ v0.3.3. Updated to the API of tem_ruby 0.9.1.
2
+
1
3
  v0.3.2. Updated to the API of tem_ruby 0.7.1 (Tem#pubek instead of an ugly hack).
2
4
 
3
5
  v0.3.1. Updated to the API of tem_ruby 0.7.0.
data/README CHANGED
@@ -4,22 +4,24 @@ Running coverage tests:
4
4
  gem install rcov
5
5
  rcov -Ilib test/*.rb
6
6
 
7
- Implemented commands (the format is supposed to be compatible with the "openssl" tool):
7
+ Implemented commands (the format is supposed to be compatible with the "openssl"
8
+ tool):
8
9
 
9
10
  openssl_tem reset
10
- Resets the TEM to a working state. The TEM applet is reinitialized, and the TEM is emitted.
11
- All key material and state on TEM is lost.
11
+ Resets the TEM to a working state. The TEM applet is reinitialized, and the TEM
12
+ is emitted. All key material and state on TEM is lost.
12
13
 
13
14
  openssl_tem rsagen 2048 -out key.temkey
14
- Generates a RSA key pair on the TEM (the size is ignored), outputs the TEM-bound key pair to
15
- "key.temkey".
15
+ Generates a RSA key pair on the TEM (the size is ignored), outputs the TEM-bound
16
+ key pair to "key.temkey".
16
17
 
17
18
  openssl_tem rsa -in key.temkey -out key.pem -pubout
18
- Extracts the public key from a TEM-bound key pair, outputs it in PEM format to "key.pem"
19
+ Extracts the public key from a TEM-bound key pair, outputs it in PEM format to
20
+ "key.pem"
19
21
 
20
22
  openssl_tem rsautl -encrypt -in plain.txt -inkey key.pem -out crypted.txt -pkcs
21
- Encrypts the data in "plain.txt" using the PEM public key (or public key in a TEM-bound key pair)
22
- in "key.pem". PKCS#1 padding is always used.
23
+ Encrypts the data in "plain.txt" using the PEM public key (or public key in a
24
+ TEM-bound key pair) in "key.pem". PKCS#1 padding is always used.
23
25
 
24
26
  openssl_tem rsautl -decrypt -in crypted.txt -inkey key.temkey -out plain2.txt -pkcs
25
27
  Decrypts the data in "crypted.txt" using TEM-bound key pair in "key.temkey".
@@ -30,6 +32,6 @@ Signs the data in "plain.txt" using the TEM-bound key pair in "key.temkey".
30
32
  PKCS#1 padding over a SHA-1 message digest of the data is always used.
31
33
 
32
34
  openssl_tem rsautl -xverify -in signature.txt -inkey key.pem -indata plain.txt -out verif.txt -pkcs
33
- Verifies that "signature.txt" was produced by signing the data in "plain.txt" using the
34
- TEM-bound key with the PEM public key in "key.pem". PKCS#1 padding over a SHA-1 of the data is
35
- always used. The output is "true" or "false".
35
+ Verifies that "signature.txt" was produced by signing the data in "plain.txt"
36
+ using the TEM-bound key with the PEM public key in "key.pem". PKCS#1 padding
37
+ over a SHA-1 of the data is always used. The output is "true" or "false".
@@ -45,7 +45,7 @@ module Tem::OpenSSL::TemTools
45
45
  s.stack
46
46
  s.extra 8
47
47
  end
48
- crypt_sec.seal(tem.pubek, :key_data, :input_length)
48
+ crypt_sec.bind(tem.pubek, :key_data, :input_length)
49
49
  return crypt_sec
50
50
  end
51
51
 
@@ -83,7 +83,7 @@ module Tem::OpenSSL::TemTools
83
83
  s.stack
84
84
  s.extra 8
85
85
  end
86
- sign_sec.seal(tem.pubek, :key_data, :input_length)
86
+ sign_sec.bind(tem.pubek, :key_data, :input_length)
87
87
  return sign_sec
88
88
  end
89
89
 
data/tem_openssl.gemspec CHANGED
@@ -1,16 +1,16 @@
1
1
 
2
- # Gem::Specification for Tem_openssl-0.3.2
2
+ # Gem::Specification for Tem_openssl-0.3.3
3
3
  # Originally generated by Echoe
4
4
 
5
5
  Gem::Specification.new do |s|
6
6
  s.name = %q{tem_openssl}
7
- s.version = "0.3.2"
7
+ s.version = "0.3.3"
8
8
 
9
9
  s.specification_version = 2 if s.respond_to? :specification_version=
10
10
 
11
11
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
12
12
  s.authors = ["Victor Costan"]
13
- s.date = %q{2008-06-11}
13
+ s.date = %q{2008-06-13}
14
14
  s.default_executable = %q{openssl_tem}
15
15
  s.description = %q{TEM (Trusted Execution Module) engine for OpenSSL.}
16
16
  s.email = %q{victor@costan.us}
@@ -38,6 +38,7 @@ end
38
38
  #
39
39
  # Echoe.new('tem_openssl') do |p|
40
40
  # p.project = 'tem' # rubyforge project
41
+ # p.docs_host = "costan@rubyforge.org:/var/www/gforge-projects/tem/rdoc/"
41
42
  #
42
43
  # p.author = 'Victor Costan'
43
44
  # p.email = 'victor@costan.us'
@@ -45,7 +46,8 @@ end
45
46
  # p.url = 'http://tem.rubyforge.org'
46
47
  # p.dependencies = ['tem_ruby >=0.9.0']
47
48
  #
48
- # p.need_tar_gz = false
49
+ # p.need_tar_gz = true
50
+ # p.need_zip = true
49
51
  # p.rdoc_pattern = /^(lib|bin|tasks|ext)|^BUILD|^README|^CHANGELOG|^TODO|^LICENSE|^COPYING$/
50
52
  # end
51
53
  #
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tem_openssl
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.2
4
+ version: 0.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Victor Costan
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2008-06-11 00:00:00 -04:00
12
+ date: 2008-06-13 00:00:00 -04:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency