mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-22 09:19:03 +00:00
LibCrypto: Remove unused Poly1305 class
This commit is contained in:
committed by
Alexander Kalenik
parent
ce3e79a402
commit
7fb15ef936
@@ -1,26 +0,0 @@
|
||||
/*
|
||||
* Copyright (c) 2022, stelar7 <dudedbz@gmail.com>
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
*/
|
||||
|
||||
#include <AK/Format.h>
|
||||
#include <LibCrypto/Authentication/Poly1305.h>
|
||||
#include <stddef.h>
|
||||
#include <stdint.h>
|
||||
|
||||
extern "C" int LLVMFuzzerTestOneInput(uint8_t const* data, size_t size)
|
||||
{
|
||||
AK::set_debug_enabled(false);
|
||||
|
||||
if (size < 32)
|
||||
return 0;
|
||||
|
||||
auto initial = ReadonlyBytes { data, 32 };
|
||||
auto message = ReadonlyBytes { data + 32, size - 32 };
|
||||
|
||||
Crypto::Authentication::Poly1305 mac(initial);
|
||||
mac.update(message);
|
||||
(void)mac.digest();
|
||||
return 0;
|
||||
}
|
||||
@@ -16,7 +16,6 @@ set(FUZZER_TARGETS
|
||||
MD5
|
||||
PEM
|
||||
PNGLoader
|
||||
Poly1305
|
||||
RegexECMA262
|
||||
RegexPosixBasic
|
||||
RegexPosixExtended
|
||||
|
||||
Reference in New Issue
Block a user