diff options
| author | Michael Brown | 2022-10-24 20:20:41 +0200 |
|---|---|---|
| committer | Michael Brown | 2022-10-25 14:21:30 +0200 |
| commit | da81214cec87201dc18c0ce71224367e13a6edfb (patch) | |
| tree | 85952ee981f3c970cb95b2f72a5c342c748a9e0c /src/crypto/arc4.c | |
| parent | [crypto] Add concept of additional data to cipher algorithms (diff) | |
| download | ipxe-da81214cec87201dc18c0ce71224367e13a6edfb.tar.gz ipxe-da81214cec87201dc18c0ce71224367e13a6edfb.tar.xz ipxe-da81214cec87201dc18c0ce71224367e13a6edfb.zip | |
[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/crypto/arc4.c')
| -rw-r--r-- | src/crypto/arc4.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/crypto/arc4.c b/src/crypto/arc4.c index 0dba2fc59..4d98abead 100644 --- a/src/crypto/arc4.c +++ b/src/crypto/arc4.c @@ -119,8 +119,10 @@ struct cipher_algorithm arc4_algorithm = { .name = "ARC4", .ctxsize = ARC4_CTX_SIZE, .blocksize = 1, + .authsize = 0, .setkey = arc4_setkey, .setiv = cipher_null_setiv, .encrypt = arc4_xor, .decrypt = arc4_xor, + .auth = cipher_null_auth, }; |
