CryptoSys API Library Manual

Correct sequence for AEAD incremental functions

* denotes zero or more repeats.

Incremental encryption pseudocode

InitKey(key)
{ For each packet do:
   SetNonce(nonce)
   { AddAAD(aad-chunk) }*
   StartEncrypt()
   { ciphertext-chunk <-- Update(plaintext-chunk) }*
   tag <-- FinishEncrypt()
}*
Destroy()

Incremental decryption pseudocode

InitKey(key)
{ For each packet do:
   SetNonce(nonce)
   { AddAAD(aad-chunk) }*
   StartDecrypt(tag-to-check)
   { plaintext-chunk <-- Update(ciphertext-chunk) }*
   (OK|FAIL) <-- FinishDecrypt()
}*
Destroy()

Notes on incremental mode:

[Contents] [Index]

[PREV: An interface for Authenticated Encryption with Associated Data (AEAD)...]   [Contents]   [Index]   
   [NEXT: Filenames with "International" characters...]

Copyright © 2001-24 D.I. Management Services Pty Ltd. All rights reserved. Generated 2024-01-07T07:42:00Z.