self_crypto 0.0.2 → 0.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: cd813c17a394c17cdace467370ee2347c24e79792c93a9741e45ba64782df3d7
4
- data.tar.gz: 431bf925fcbc3e70b1be2205502d7ea118dd355755379a3169a5d5244579894a
3
+ metadata.gz: 2544f16b8a1c5f5e6fdb8737536b8a87ca67d5ad8d53bff6b2b91f6a3d821732
4
+ data.tar.gz: a8726bcb5491c1948076a75c963799e6e78c028eaae5a5f78b4842cc0e815d71
5
5
  SHA512:
6
- metadata.gz: 8059470ea5a266b47c68ac7a5264e4c0692b53d5a772c71dbb7f6c2bdb0cb9b51d0f9c332fc695bb543f9823363406374fc23b222f2979141662df7e755d38b4
7
- data.tar.gz: 0e7f4d7e773d0259b88675dc14852b606c864cc6f93b599d5661986879de1d88a277c54cbda6f6e8bc51b3d4354116c6ffc1ef9ad0c08dc1e386eff6ba8c050d
6
+ metadata.gz: 19a0e6bcb0a0a7fa25f9ab9f65d1ae9c3e4b3e69f60d5765cbcff57abdd24987ec69474fe2d50bc75ffdb1165938260a812d4f607ac2c22e7a72ff9b9fbdf81e
7
+ data.tar.gz: 4278150a3a659f28bda8812960ae1456e8848dc3d19c7fec06c778630b3046a8139a39902bf10242485303d999cbf294b72a337989b8947bfbb0634c61d7aeb6
@@ -48,7 +48,7 @@ static VALUE add_participant(VALUE self, VALUE identity, VALUE session)
48
48
  return identity;
49
49
  }
50
50
 
51
- static VALUE encrypt(VALUE self, VALUE plaintext)
51
+ static VALUE group_encrypt(VALUE self, VALUE plaintext)
52
52
  {
53
53
  GroupSession *this;
54
54
  VALUE ciphertext;
@@ -91,7 +91,7 @@ static VALUE encrypt(VALUE self, VALUE plaintext)
91
91
  return ciphertext;
92
92
  }
93
93
 
94
- static VALUE decrypt(VALUE self, VALUE sender, VALUE ciphertext)
94
+ static VALUE group_decrypt(VALUE self, VALUE sender, VALUE ciphertext)
95
95
  {
96
96
  GroupSession *this;
97
97
  VALUE plaintext;
@@ -165,6 +165,6 @@ void group_session_init()
165
165
 
166
166
  rb_define_method(cGroupSession, "initialize", initialize, -1);
167
167
  rb_define_method(cGroupSession, "add_participant", add_participant, 2);
168
- rb_define_method(cGroupSession, "encrypt", encrypt, 1);
169
- rb_define_method(cGroupSession, "decrypt", decrypt, 2);
168
+ rb_define_method(cGroupSession, "encrypt", group_encrypt, 1);
169
+ rb_define_method(cGroupSession, "decrypt", group_decrypt, 2);
170
170
  }
@@ -205,7 +205,7 @@ static VALUE message_type(VALUE self)
205
205
  return retval;
206
206
  }
207
207
 
208
- static VALUE encrypt(VALUE self, VALUE plain)
208
+ static VALUE session_encrypt(VALUE self, VALUE plain)
209
209
  {
210
210
  size_t cipher_size, random_size;
211
211
  void *ptr;
@@ -238,7 +238,7 @@ static VALUE encrypt(VALUE self, VALUE plain)
238
238
  return retval;
239
239
  }
240
240
 
241
- static VALUE decrypt(VALUE self, VALUE cipher)
241
+ static VALUE session_decrypt(VALUE self, VALUE cipher)
242
242
  {
243
243
  size_t plain_size, plain_max, type;
244
244
  void *ptr;
@@ -356,8 +356,8 @@ void session_init(void)
356
356
  rb_define_method(cSession, "id", get_session_id, 0);
357
357
  rb_define_method(cSession, "last_error", last_error, 0);
358
358
  rb_define_method(cSession, "has_received_message", has_received_message, 0);
359
- rb_define_method(cSession, "encrypt", encrypt, 1);
360
- rb_define_method(cSession, "decrypt", decrypt, 1);
359
+ rb_define_method(cSession, "encrypt", session_encrypt, 1);
360
+ rb_define_method(cSession, "decrypt", session_decrypt, 1);
361
361
  rb_define_method(cSession, "to_pickle", to_pickle, -1);
362
362
  rb_define_method(cSession, "will_receive?", will_receive, -1);
363
363
  }
@@ -1,5 +1,5 @@
1
1
  module SelfCrypto
2
2
 
3
- VERSION="0.0.2"
3
+ VERSION="0.0.3"
4
4
 
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: self_crypto
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tom Bevan
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2020-06-19 00:00:00.000000000 Z
12
+ date: 2020-06-22 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rake-compiler