path: root/wlantest/gcmp.c
Commit message (Collapse)AuthorAgeFilesLines
* Declare all read only data structures as constMikael Kanstrup2015-04-251-3/+3
| | | | | | | | By analysing objdump output some read only structures were found in .data section. To help compiler further optimize code declare these as const. Signed-off-by: Mikael Kanstrup <mikael.kanstrup@sonymobile.com>
* Extend GCMP test vectors to include both MPDUsJouni Malinen2013-11-171-2/+0
| | | | | | | | | IEEE Std 802.11ad-2012 includes two test vectors for GCMP. Verify both of those and also verify that the results match the values in the standard instead of just verifying that decrypted frame matches original. Signed-hostap: Jouni Malinen <j@w1.fi>
* wlantest: Add GCMP-256 test vectorJouni Malinen2012-09-091-5/+6
| | | | Signed-hostap: Jouni Malinen <j@w1.fi>
* Add support for using 192-bit and 256-bit keys with AES-GCMJouni Malinen2012-09-091-4/+4
| | | | | | | | This adds 192-bit and 256-bit key support to the internal AES implementation and extends the AES-GCM functions to accept key length to enable longer AES key use. Signed-hostap: Jouni Malinen <j@w1.fi>
* Support arbitrary IV length with AES-GCMJouni Malinen2012-09-081-4/+4
| | | | Signed-hostap: Jouni Malinen <j@w1.fi>
* Move AES-GCM implementation into src/cryptoJouni Malinen2012-09-081-282/+3
| | | | | | | | This is a generic AES GCM and GMAC implementation that can be used for other purposes than just implementing GCMP, so it fits better in a separate file in src/crypto. Signed-hostap: Jouni Malinen <j@w1.fi>
* wlantest: Allow GHASH update calls to avoid extra allocationJouni Malinen2012-09-081-70/+39
| | | | | | | | There is no need to allocate a temporary buffer and build GHASH input data into it. Instead, ghash() is trivial to split into update part that can be called separately for each segment. Signed-hostap: Jouni Malinen <j@w1.fi>
* wlantest: Remove CCMP specific AAD handling from GCMPJouni Malinen2012-09-081-10/+8
| | | | | | | GCMP encodes length of AAD differently, so remove the unnecessary code that got copied from the CCMP implementation. Signed-hostap: Jouni Malinen <j@w1.fi>
* wlantest: Move GCM-AE and GCM-AD into separate functionsJouni Malinen2012-09-081-160/+185
| | | | | | | This splits the more generic GCM operations from GCMP specific implementation. Signed-hostap: Jouni Malinen <j@w1.fi>
* wlantest: Add GCMP implementation and test vectors from P802.11ad/D9.0Jouni Malinen2012-09-081-0/+448
Signed-hostap: Jouni Malinen <j@w1.fi>