|
BearSSL
|
Record encryption engine class, for GCM mode. More...
#include <bearssl_ssl.h>
Data Fields | |
| br_sslrec_out_class | inner |
| Superclass, as first vtable field. | |
| void(* | init )(const br_sslrec_out_gcm_class **ctx, const br_block_ctr_class *bc_impl, const void *key, size_t key_len, br_ghash gh_impl, const void *iv) |
| Engine initialisation method. | |
Record encryption engine class, for GCM mode.
This class type extends the encryption engine class with an initialisation method that receives the parameters needed for GCM processing: block cipher implementation, block cipher key, GHASH implementation, and 4-byte IV.
| void(* br_sslrec_out_gcm_class::init) (const br_sslrec_out_gcm_class **ctx, const br_block_ctr_class *bc_impl, const void *key, size_t key_len, br_ghash gh_impl, const void *iv) |
Engine initialisation method.
This method sets the vtable field in the context.
| ctx | context to initialise. |
| bc_impl | block cipher implementation (CTR). |
| key | block cipher key. |
| key_len | block cipher key length (in bytes). |
| gh_impl | GHASH implementation. |
| iv | static IV (4 bytes). |
| br_sslrec_out_class br_sslrec_out_gcm_class::inner |
Superclass, as first vtable field.