Skip to main content

cipher_instance_call

Function cipher_instance_call 

Source
pub fn cipher_instance_call(
    tag: &str,
    recv: &Value,
    method: &str,
    args: &[Value],
) -> Result<Value, String>
Expand description

Cipheriv/Decipheriv instance methods: update(data[,inEnc,outEnc]) and final([outEnc]). Input is accumulated in @@data; the transform runs at final (CBC needs the full block/padding stream, so update returns empty and final returns the whole result — the standard update()+final() concatenation is byte-identical to node).