pub unsafe extern "C" fn ocrypto_aes_ecb_update_dec(
    ctx: *mut ocrypto_aes_ecb_ctx,
    pt: *mut u8,
    ct: *const u8,
    ct_len: usize
)
Expand description

AES-ECB incremental decryption.

The ciphertext * ct - is decrypted to the plaintext * pt - using the context * ctx - .

This function can be called repeatedly until the whole message is processed.

  • ctx - Context.
  • pt - Plaintext.
  • ct - Ciphertext.
  • ct_len - Length of * ct - and * pt - . Must be a multiple of the block size.

@remark * ct - may be same as * pt - . @remark Initialization of the context * ctx - through * ocrypto_aes_ctr_init - is required before this function can be called.