Module: TEA

Defined in:
ext/tea.c

Defined Under Namespace

Classes: Key

Class Method Summary collapse

Class Method Details

.decrypt!(data, key) ⇒ Object



111
112
113
114
# File 'ext/tea.c', line 111

VALUE rubytea_decrypt(VALUE self, VALUE data, VALUE key)
{
  return rubytea_exec(self, data, key, -1);
}

.encrypt!(data, key) ⇒ Object



106
107
108
109
# File 'ext/tea.c', line 106

VALUE rubytea_encrypt(VALUE self, VALUE data, VALUE key)
{
  return rubytea_exec(self, data, key, 1);
}