Line 0
Link Here
|
|
|
1 |
--- ext/camellia-rb.c.orig 2009-01-26 13:53:51.000000000 +0900 |
2 |
+++ ext/camellia-rb.c |
3 |
@@ -111,7 +111,7 @@ |
4 |
/* |
5 |
# encryption method |
6 |
*/ |
7 |
-static VALUE encrypt(VALUE self, VALUE args) |
8 |
+static VALUE camellia_encrypt(VALUE self, VALUE args) |
9 |
{ |
10 |
camelliaObject *camellia; |
11 |
unsigned char *data; |
12 |
@@ -147,7 +147,7 @@ |
13 |
/* |
14 |
# decryption method |
15 |
*/ |
16 |
-static VALUE decrypt(VALUE self,VALUE args) |
17 |
+static VALUE camellia_decrypt(VALUE self,VALUE args) |
18 |
{ |
19 |
camelliaObject *camellia; |
20 |
unsigned char *data; |
21 |
@@ -537,8 +537,8 @@ |
22 |
//rb_define_singleton_method(cCamellia, "new", s_new, 0); |
23 |
rb_define_private_method(cCamellia, "initialize", set_key, 1); |
24 |
//rb_define_method(cCamellia, "set_key", set_key, 1); |
25 |
- rb_define_method(cCamellia, "encrypt", encrypt, 1); |
26 |
- rb_define_method(cCamellia, "decrypt", decrypt, 1); |
27 |
+ rb_define_method(cCamellia, "encrypt", camellia_encrypt, 1); |
28 |
+ rb_define_method(cCamellia, "decrypt", camellia_decrypt, 1); |
29 |
rb_define_method(cCamellia, "cfb_salt", cfb_salt, 1); |
30 |
rb_define_method(cCamellia, "cfb_encrypt", cfb_encrypt, 1); |
31 |
rb_define_method(cCamellia, "cfb_decrypt", cfb_decrypt, 1); |