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

AES-ECB incremental encryption.

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

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

  • ctx - Context.
  • ct - Ciphertext.
  • pt - Plaintext.
  • pt_len - Length of * pt - and * ct - . 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.