openra first commit!
git-svn-id: svn://svn.ijw.co.nz/svn/OpenRa@1053 993157c7-ee19-0410-b2c4-bb4e9862e678
This commit is contained in:
26
MixDecrypt/MixDecrypt.h
Normal file
26
MixDecrypt/MixDecrypt.h
Normal file
@@ -0,0 +1,26 @@
|
||||
// MixDecrypt.h
|
||||
#pragma once
|
||||
|
||||
#pragma unmanaged
|
||||
#include "mix_decode.h"
|
||||
#pragma managed
|
||||
|
||||
using namespace System;
|
||||
|
||||
namespace MixDecrypt {
|
||||
|
||||
public ref class MixDecrypt
|
||||
{
|
||||
public:
|
||||
static array<Byte>^ BlowfishKey( array<Byte>^ src )
|
||||
{
|
||||
array<Byte>^ dest = gcnew array<Byte>( 56 );
|
||||
pin_ptr<Byte> s = &src[0];
|
||||
pin_ptr<Byte> d = &dest[0];
|
||||
|
||||
get_blowfish_key( s, d );
|
||||
|
||||
return dest;
|
||||
}
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user