----------------------------------------------------------------------------- Purpose: Return true if our raw data matches the the specified buffer -----------------------------------------------------------------------------
| 370 | // Purpose: Return true if our raw data matches the the specified buffer |
| 371 | //----------------------------------------------------------------------------- |
| 372 | bool CCryptoKeyBase::BMatchesRawData( const void *pData, size_t cbData ) const |
| 373 | { |
| 374 | uint32 cbMyRawData = GetRawData(nullptr); |
| 375 | if ( cbMyRawData != cbData ) return false; |
| 376 | |
| 377 | CAutoWipeBuffer bufMyRawData( cbMyRawData ); |
| 378 | DbgVerify( GetRawData( bufMyRawData.Base() ) == cbMyRawData ); |
| 379 | |
| 380 | return memcmp( bufMyRawData.Base(), pData, cbData ) == 0; |
| 381 | } |
| 382 | |
| 383 | void CCryptoKeyBase::CopyFrom( const CCryptoKeyBase &x ) |
| 384 | { |
no test coverage detected