aboutsummaryrefslogtreecommitdiffstats
path: root/src/include/ipxe/ecb.h
diff options
context:
space:
mode:
authorMichael Brown <mcb30@ipxe.org>2022-10-24 19:20:41 +0100
committerMichael Brown <mcb30@ipxe.org>2022-10-25 13:21:30 +0100
commitda81214cec87201dc18c0ce71224367e13a6edfb (patch)
tree85952ee981f3c970cb95b2f72a5c342c748a9e0c /src/include/ipxe/ecb.h
parent0c383bf00afbef1a9cfe02829d1bc6ee46e1c16b (diff)
downloadipxe-da81214cec87201dc18c0ce71224367e13a6edfb.tar.gz
[crypto] Add concept of authentication tag to cipher algorithms
Some ciphers (such as GCM) support the concept of a tag that can be used to authenticate the encrypted data. Add a cipher method for generating an authentication tag. Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/include/ipxe/ecb.h')
-rw-r--r--src/include/ipxe/ecb.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/include/ipxe/ecb.h b/src/include/ipxe/ecb.h
index 6c40c6126..1d2ebf716 100644
--- a/src/include/ipxe/ecb.h
+++ b/src/include/ipxe/ecb.h
@@ -47,10 +47,12 @@ struct cipher_algorithm _ecb_cipher = { \
.name = #_ecb_name, \
.ctxsize = sizeof ( _raw_context ), \
.blocksize = _blocksize, \
+ .authsize = 0, \
.setkey = _ecb_name ## _setkey, \
.setiv = _ecb_name ## _setiv, \
.encrypt = _ecb_name ## _encrypt, \
.decrypt = _ecb_name ## _decrypt, \
+ .auth = cipher_null_auth, \
};
#endif /* _IPXE_ECB_H */