BearSSL
|
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... | |
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.
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.
ctx | context to initialise. |
ichacha | ChaCha20 implementation. |
ipoly | Poly1305 implementation. |
key | secret key (32 bytes). |
iv | static IV (12 bytes). |
br_sslrec_out_class br_sslrec_out_chapol_class::inner |
Superclass, as first vtable field.