// // wipe.symcryptasm Assembler code for wiping a buffer // Expresses asm in a generic enough way to enable generation of MASM and GAS using the // symcryptasm_processor.py script and C preprocessor // // Copyright (c) Microsoft Corporation. Licensed under the MIT license. #include "symcryptasm_shared.cppasm" TEXTAREA() EXTERN(PLATFORM_NAME_MANGLE(memset)) //VOID //SYMCRYPT_CALL //SymCryptWipe( _Out_writes_bytes_( cbData ) PVOID pbData, // SIZE_T cbData ) FUNCTION_START(PLATFORM_NAME_MANGLE(SymCryptWipeAsm), 2, 3) // we just jump to memset. // this is enough to stop the compiler optimizing the memset away. mov X_2, X_1 mov X_1, #0 b PLATFORM_NAME_MANGLE(memset) FUNCTION_END(PLATFORM_NAME_MANGLE(SymCryptWipeAsm)) FILE_END()