Lines Matching full:cc

28 gen_chapol_init(br_sslrec_chapol_context *cc,  in gen_chapol_init()  argument
32 cc->seq = 0; in gen_chapol_init()
33 cc->ichacha = ichacha; in gen_chapol_init()
34 cc->ipoly = ipoly; in gen_chapol_init()
35 memcpy(cc->key, key, sizeof cc->key); in gen_chapol_init()
36 memcpy(cc->iv, iv, sizeof cc->iv); in gen_chapol_init()
40 gen_chapol_process(br_sslrec_chapol_context *cc, in gen_chapol_process() argument
49 seq = cc->seq ++; in gen_chapol_process()
54 memcpy(nonce, cc->iv, 12); in gen_chapol_process()
59 cc->ipoly(cc->key, nonce, data, len, header, sizeof header, in gen_chapol_process()
60 tag, cc->ichacha, encrypt); in gen_chapol_process()
64 in_chapol_init(br_sslrec_chapol_context *cc, in in_chapol_init() argument
68 cc->vtable.in = &br_sslrec_in_chapol_vtable; in in_chapol_init()
69 gen_chapol_init(cc, ichacha, ipoly, key, iv); in in_chapol_init()
73 chapol_check_length(const br_sslrec_chapol_context *cc, size_t rlen) in chapol_check_length() argument
78 (void)cc; in chapol_check_length()
83 chapol_decrypt(br_sslrec_chapol_context *cc, in chapol_decrypt() argument
93 gen_chapol_process(cc, record_type, version, buf, len, tag, 0); in chapol_decrypt()
122 out_chapol_init(br_sslrec_chapol_context *cc, in out_chapol_init() argument
126 cc->vtable.out = &br_sslrec_out_chapol_vtable; in out_chapol_init()
127 gen_chapol_init(cc, ichacha, ipoly, key, iv); in out_chapol_init()
131 chapol_max_plaintext(const br_sslrec_chapol_context *cc, in chapol_max_plaintext() argument
136 (void)cc; in chapol_max_plaintext()
145 chapol_encrypt(br_sslrec_chapol_context *cc, in chapol_encrypt() argument
153 gen_chapol_process(cc, record_type, version, buf, len, buf + len, 1); in chapol_encrypt()