You've already forked slimbootloader
mirror of
https://github.com/Dasharo/slimbootloader.git
synced 2026-03-06 15:26:20 -08:00
Latest ipp-crytpo code is FIPS compliant. Need to add it as a submodule to maintain FIPS compliance. This requires adding each ASM optimized implementation as a separate .inf file and selecting at the platform level. Old IppCryptoLib instance needs to be kept for backwards compatibility. Signed-off-by: Bejean Mosher <bejean.mosher@intel.com>
33 lines
519 B
C
33 lines
519 B
C
/** @file
|
|
Helper functions for IppCryptoLib
|
|
|
|
Copyright (c) 2024, Intel Corporation. All rights reserved.<BR>
|
|
SPDX-License-Identifier: BSD-2-Clause-Patent
|
|
|
|
**/
|
|
#include <Base.h>
|
|
#include <Library/BaseLib.h>
|
|
#include <Library/BaseMemoryLib.h>
|
|
#include "IppCryptoSupport.h"
|
|
|
|
void *
|
|
memset (
|
|
void *dest,
|
|
int ch,
|
|
size_t count
|
|
)
|
|
{
|
|
return SetMem(dest, (UINTN)(count),(UINT8)(ch));
|
|
}
|
|
|
|
|
|
void *
|
|
memcpy (
|
|
void *dest_str,
|
|
const void * src_str,
|
|
size_t n
|
|
)
|
|
{
|
|
return CopyMem(dest_str,src_str, (UINTN)(n));
|
|
}
|