MbedTLS::Cipher class of PicoRuby
Type aliases
cipher_t
"AES-128-CBC"
| "AES-192-CBC"
| "AES-256-CBC"
| "AES-128-GCM"
| "AES-192-GCM"
| "AES-256-GCM"
Singleton methods
ciphers
MbedTLS::Cipher.ciphers() -> Array[cipher_t]
new
MbedTLS::Cipher.new(cipher_t cipher_suite) -> MbedTLS::Cipher
Instance methods
check_tag
instance.check_tag(String tag) -> bool
decrypt
instance.decrypt() -> MbedTLS::Cipher
encrypt
instance.encrypt() -> MbedTLS::Cipher
finish
instance.finish() -> String
iv=
instance.iv=(String iv) -> String
iv_len
instance.iv_len() -> Integer
key=
instance.key=(String key) -> String
key_len
instance.key_len() -> Integer
update
instance.update(String input) -> String
update_ad
instance.update_ad(String input) -> MbedTLS::Cipher
write_tag
instance.write_tag() -> String