diff options
author | animeshbm | 2024-03-14 13:20:59 +0100 |
---|---|---|
committer | GitHub | 2024-03-14 13:20:59 +0100 |
commit | 211ac5f933e97b3accf935dd6dc92e58cc23dbb6 (patch) | |
tree | f385c42cc60bdb621bef3c4fe059f7562af0f57b /src/include/ipxe/gcm.h | |
parent | support for aqc113 (diff) | |
parent | [efi] Update to current EDK2 headers (diff) | |
download | ipxe-211ac5f933e97b3accf935dd6dc92e58cc23dbb6.tar.gz ipxe-211ac5f933e97b3accf935dd6dc92e58cc23dbb6.tar.xz ipxe-211ac5f933e97b3accf935dd6dc92e58cc23dbb6.zip |
Merge branch 'ipxe:master' into aqc1xx
Diffstat (limited to 'src/include/ipxe/gcm.h')
-rw-r--r-- | src/include/ipxe/gcm.h | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/src/include/ipxe/gcm.h b/src/include/ipxe/gcm.h index 90ef0b52..4864445d 100644 --- a/src/include/ipxe/gcm.h +++ b/src/include/ipxe/gcm.h @@ -88,13 +88,11 @@ struct _gcm_name ## _context { \ static int _gcm_name ## _setkey ( void *ctx, const void *key, \ size_t keylen ) { \ struct _gcm_name ## _context *context = ctx; \ - linker_assert ( _blocksize == sizeof ( context->gcm.key ), \ - _gcm_name ## _unsupported_blocksize ); \ - linker_assert ( ( ( void * ) &context->gcm ) == ctx, \ - _gcm_name ## _context_layout_error ); \ - linker_assert ( ( ( void * ) &context->raw ) == \ - ( ( void * ) context->gcm.raw_ctx ), \ - _gcm_name ## _context_layout_error ); \ + build_assert ( _blocksize == sizeof ( context->gcm.key ) ); \ + build_assert ( ( ( void * ) &context->gcm ) == \ + ( ( void * ) context ) ); \ + build_assert ( ( ( void * ) &context->raw ) == \ + ( ( void * ) context->gcm.raw_ctx ) ); \ return gcm_setkey ( &context->gcm, key, keylen, &_raw_cipher ); \ } \ static void _gcm_name ## _setiv ( void *ctx, const void *iv, \ |