Added desired code to use for Cipher
Added cipher.c and cipher.h to hold PolarSSL::Cipher class
Added allocate and initialize which sets cipher info from given string to PolarSSL::Cipher.new
Remove debugging returns.
Added PolarSSL::Chiper.setkey() method that sets key
Add update() method to PolarSSL::Cipher and add Base64 in testcase to read output
Added rb_cipher_t struct to hold internal output buffer value for current cipher.
Allocate memory for rb_cipher->olen
Added input_length to struct because we need to return a binary string based on the input data's length.
Increment input_length counter on each update.
Cast unsigned types for all cipher functions
Refactor manual casting to type in cipher struct to remove casting duplication.
Added raw encrypted data to test on.
No idea how free method from Ruby gets called. Adding a debug message to know.
Free cipher context and eventually the rb_cipher context
Use StringValueCStr instead of StringValuePtr
Refactor cipher_info into its own variable
Added PolarSSL::Cipher::UnsupportedCipher exception.
Set memory of rb_cipher->ctx pointer to 0 memory on allocation
Raise error messages when update, finish and setkey appears.