21 lines
512 B
Plaintext
21 lines
512 B
Plaintext
// SymCryptWipe
|
|
//
|
|
// Copyright (c) Microsoft Corporation. Licensed under the MIT license.
|
|
//
|
|
// Secure wipe
|
|
//
|
|
|
|
|
|
// VOID
|
|
// SYMCRYPT_CALL
|
|
// SymCryptWipe( _Out_writes_bytes_( cbData ) PVOID pbData,
|
|
// SIZE_T cbData )
|
|
|
|
FUNCTION_START(SymCryptWipeAsm, 2, 0)
|
|
// we just jump to memset.
|
|
// this is enough to stop the compiler optimizing the memset away.
|
|
mov r2, r1
|
|
mov r1, #0
|
|
bl memset
|
|
FUNCTION_END(SymCryptWipeAsm)
|