BearSSL
Data Fields
br_sslrec_out_chapol_class Struct Reference

Record encryption engine class, for ChaCha20+Poly1305. More...

Data Fields

br_sslrec_out_class inner
 Superclass, as first vtable field. More...
 
void(* init )(const br_sslrec_out_chapol_class **ctx, br_chacha20_run ichacha, br_poly1305_run ipoly, const void *key, const void *iv)
 Engine initialisation method. More...
 

Detailed Description

Record encryption engine class, for ChaCha20+Poly1305.

This class type extends the encryption engine class with an initialisation method that receives the parameters needed for ChaCha20+Poly1305 processing: ChaCha20 implementation, Poly1305 implementation, key, and 12-byte IV.

Field Documentation

◆ init

void(* br_sslrec_out_chapol_class::init) (const br_sslrec_out_chapol_class **ctx, br_chacha20_run ichacha, br_poly1305_run ipoly, const void *key, const void *iv)

Engine initialisation method.

This method sets the vtable field in the context.

Parameters
ctxcontext to initialise.
ichachaChaCha20 implementation.
ipolyPoly1305 implementation.
keysecret key (32 bytes).
ivstatic IV (12 bytes).

◆ inner

br_sslrec_out_class br_sslrec_out_chapol_class::inner

Superclass, as first vtable field.


The documentation for this struct was generated from the following file: