Lines Matching refs:gcm
1552 \index{gcm\_init()}
1554 int gcm_init( gcm_state *gcm,
1559 This initializes the GCM state \textit{gcm} for the given cipher indexed by \textit{cipher}, with a…
1565 \index{gcm\_add\_iv()}
1567 int gcm_add_iv( gcm_state *gcm,
1571 … octets from \textit{IV} of length \textit{IVlen} to the GCM state \textit{gcm}. You can call thi…
1582 \index{gcm\_add\_aad()}
1584 int gcm_add_aad( gcm_state *gcm,
1588 …ional authentication data \textit{adata} of length \textit{adatalen} to the GCM state \textit{gcm}.
1593 \index{gcm\_process()}
1595 int gcm_process( gcm_state *gcm,
1608 \index{gcm\_done()}
1610 int gcm_done( gcm_state *gcm,
1614 This terminates the GCM state \textit{gcm} and stores the tag in \textit{tag} of length \textit{tag…
1617 The call to gcm\_init() will perform considerable pre--computation (when \textbf{GCM\_TABLES} is de…
1620 \index{gcm\_reset()}
1622 int gcm_reset(gcm_state *gcm);
1625 …ill reset the GCM state \textit{gcm} to the state that gcm\_init() left it. The user would then c…
1630 \index{gcm\_memory()}
1659 gcm_state *gcm)
1666 if ((err = gcm_reset(gcm)) != CRYPT_OK) {
1671 if ((err = gcm_add_iv(gcm, iv, ivlen)) != CRYPT_OK) {
1676 if ((err = gcm_add_aad(gcm, aad, aadlen)) != CRYPT_OK) {
1682 gcm_process(gcm, pt, ptlen, pt, GCM_ENCRYPT)) != CRYPT_OK) {
1688 if ((err = gcm_done(gcm, tag, &taglen)) != CRYPT_OK) {
1712 gcm_state gcm;
1724 gcm_init(&gcm, find_cipher("aes"), key, 16)) != CRYPT_OK) {
1739 if ((err = send_packet(pt, ptlen, iv, 12, NULL, 0, &gcm))
5739 \index{gcm\_memory()}
5741 …ust handle scheduling the key provided on its own. It is called when the user calls gcm\_memory().