C# Class CSPspEmu.Core.Crypto.Kirk

Datei anzeigen Open project: soywiz/cspspemu Class Usage Examples

Public Properties

Property Type Description
kirk1_key byte[]
kirk7_key03 byte[]
kirk7_key04 byte[]
kirk7_key05 byte[]
kirk7_key0C byte[]
kirk7_key0D byte[]
kirk7_key0E byte[]
kirk7_key0F byte[]
kirk7_key10 byte[]
kirk7_key11 byte[]
kirk7_key12 byte[]
kirk7_key38 byte[]
kirk7_key39 byte[]
kirk7_key3A byte[]
kirk7_key4B byte[]
kirk7_key53 byte[]
kirk7_key57 byte[]
kirk7_key5D byte[]
kirk7_key63 byte[]
kirk7_key64 byte[]

Public Methods

Method Description
DecryptAes ( byte Input, byte Key, byte IV = null ) : byte[]

DecryptAes ( byte Key, byte Input, byte Output, int Size ) : void

EncryptAes ( byte Input, byte Key, byte IV = null ) : byte[]

Kirk ( ) : System

KirkSha1 ( byte OutputBuffer, byte InputBuffer, int InputSize ) : void

Creates a SHA1 Hash Command: 11, 0xB

Sha1 ( byte Input ) : byte[]

_kirk_4_7_get_key ( int key_type ) : byte[]

executeKIRKCmd12 ( byte Out, int outsize ) : void

PSP_KIRK_CMD_ECDSA_GEN_KEYS Command: 12, 0xC

executeKIRKCmd13 ( byte Out, int outsize, byte In, int insize ) : void

PSP_KIRK_CMD_ECDSA_MULTIPLY_POINT Command: 13, 0xD

executeKIRKCmd16 ( byte Out, int outsize, byte In, int insize ) : void

PSP_KIRK_CMD_ECDSA_SIGN Command: 16, 0x10

executeKIRKCmd17 ( byte In, int insize ) : void

PSP_KIRK_CMD_ECDSA_VERIFY Command: 17, 0x11

executeKIRKCmd8 ( byte Out, byte In, int insize ) : void

hleUtilsBufferCopyWithRange ( byte Out, int OutSize, byte In, int InSize, CommandEnum Command, bool DoChecks = true ) : ResultEnum

kirk_4_7_get_key ( int key_type, PointerAction PointerAction ) : void

kirk_CMD0 ( byte outbuff, byte inbuff, int size, bool generate_trash ) : void

kirk_CMD1 ( byte outbuff, byte inbuff, int size, bool do_check = true ) : void

Cypher-Block Chaining decoding. Master decryption command, used by firmware modules. Applies CMAC checking.

kirk_CMD10 ( byte inbuff, int insize ) : void

kirk_CMD14 ( byte Output, int OutputSize ) : void

Generate Random Data

kirk_CMD1_ex ( byte outbuff, byte inbuff, int size, AES128CMACHeader header ) : void

kirk_CMD4 ( byte outbuff, byte inbuff, int size ) : void

kirk_CMD5 ( byte Out, byte In, int insize ) : void

kirk_CMD7 ( byte outbuff, byte inbuff, int size ) : void

kirk_decrypt_keys ( byte keys, byte inbuff ) : int

kirk_forge ( byte inbuff, int insize ) : void

kirk_init ( ) : void

Initializes kirk

sceUtilsBufferCopyWithRange ( byte Out, int OutSize, byte In, int InSize, int Command ) : int

sceUtilsSetFuseID ( void fuse ) : int

Private Methods

Method Description
check_initialized ( ) : void

Method Details

DecryptAes() public static method

public static DecryptAes ( byte Input, byte Key, byte IV = null ) : byte[]
Input byte
Key byte
IV byte
return byte[]

DecryptAes() public static method

public static DecryptAes ( byte Key, byte Input, byte Output, int Size ) : void
Key byte
Input byte
Output byte
Size int
return void

EncryptAes() public static method

public static EncryptAes ( byte Input, byte Key, byte IV = null ) : byte[]
Input byte
Key byte
IV byte
return byte[]

Kirk() public method

public Kirk ( ) : System
return System

KirkSha1() public method

Creates a SHA1 Hash Command: 11, 0xB
public KirkSha1 ( byte OutputBuffer, byte InputBuffer, int InputSize ) : void
OutputBuffer byte
InputBuffer byte
InputSize int
return void

Sha1() public static method

public static Sha1 ( byte Input ) : byte[]
Input byte
return byte[]

_kirk_4_7_get_key() public method

public _kirk_4_7_get_key ( int key_type ) : byte[]
key_type int
return byte[]

executeKIRKCmd12() public method

PSP_KIRK_CMD_ECDSA_GEN_KEYS Command: 12, 0xC
public executeKIRKCmd12 ( byte Out, int outsize ) : void
Out byte
outsize int
return void

executeKIRKCmd13() public method

PSP_KIRK_CMD_ECDSA_MULTIPLY_POINT Command: 13, 0xD
public executeKIRKCmd13 ( byte Out, int outsize, byte In, int insize ) : void
Out byte
outsize int
In byte
insize int
return void

executeKIRKCmd16() public method

PSP_KIRK_CMD_ECDSA_SIGN Command: 16, 0x10
public executeKIRKCmd16 ( byte Out, int outsize, byte In, int insize ) : void
Out byte
outsize int
In byte
insize int
return void

executeKIRKCmd17() public method

PSP_KIRK_CMD_ECDSA_VERIFY Command: 17, 0x11
public executeKIRKCmd17 ( byte In, int insize ) : void
In byte
insize int
return void

executeKIRKCmd8() public method

public executeKIRKCmd8 ( byte Out, byte In, int insize ) : void
Out byte
In byte
insize int
return void

hleUtilsBufferCopyWithRange() public method

public hleUtilsBufferCopyWithRange ( byte Out, int OutSize, byte In, int InSize, CommandEnum Command, bool DoChecks = true ) : ResultEnum
Out byte
OutSize int
In byte
InSize int
Command CommandEnum
DoChecks bool
return ResultEnum

kirk_4_7_get_key() public method

public kirk_4_7_get_key ( int key_type, PointerAction PointerAction ) : void
key_type int
PointerAction PointerAction
return void

kirk_CMD0() public method

public kirk_CMD0 ( byte outbuff, byte inbuff, int size, bool generate_trash ) : void
outbuff byte
inbuff byte
size int
generate_trash bool
return void

kirk_CMD1() public method

Cypher-Block Chaining decoding. Master decryption command, used by firmware modules. Applies CMAC checking.
public kirk_CMD1 ( byte outbuff, byte inbuff, int size, bool do_check = true ) : void
outbuff byte
inbuff byte
size int
do_check bool
return void

kirk_CMD10() public method

public kirk_CMD10 ( byte inbuff, int insize ) : void
inbuff byte
insize int
return void

kirk_CMD14() public method

Generate Random Data
public kirk_CMD14 ( byte Output, int OutputSize ) : void
Output byte
OutputSize int
return void

kirk_CMD1_ex() public method

public kirk_CMD1_ex ( byte outbuff, byte inbuff, int size, AES128CMACHeader header ) : void
outbuff byte
inbuff byte
size int
header AES128CMACHeader
return void

kirk_CMD4() public method

public kirk_CMD4 ( byte outbuff, byte inbuff, int size ) : void
outbuff byte
inbuff byte
size int
return void

kirk_CMD5() public method

public kirk_CMD5 ( byte Out, byte In, int insize ) : void
Out byte
In byte
insize int
return void

kirk_CMD7() public method

public kirk_CMD7 ( byte outbuff, byte inbuff, int size ) : void
outbuff byte
inbuff byte
size int
return void

kirk_decrypt_keys() public method

public kirk_decrypt_keys ( byte keys, byte inbuff ) : int
keys byte
inbuff byte
return int

kirk_forge() public method

public kirk_forge ( byte inbuff, int insize ) : void
inbuff byte
insize int
return void

kirk_init() public method

Initializes kirk
public kirk_init ( ) : void
return void

sceUtilsBufferCopyWithRange() public method

public sceUtilsBufferCopyWithRange ( byte Out, int OutSize, byte In, int InSize, int Command ) : int
Out byte
OutSize int
In byte
InSize int
Command int
return int

sceUtilsSetFuseID() public method

public sceUtilsSetFuseID ( void fuse ) : int
fuse void
return int

Property Details

kirk1_key public_oe property

public byte[] kirk1_key
return byte[]

kirk7_key03 public_oe property

public byte[] kirk7_key03
return byte[]

kirk7_key04 public_oe property

public byte[] kirk7_key04
return byte[]

kirk7_key05 public_oe property

public byte[] kirk7_key05
return byte[]

kirk7_key0C public_oe property

public byte[] kirk7_key0C
return byte[]

kirk7_key0D public_oe property

public byte[] kirk7_key0D
return byte[]

kirk7_key0E public_oe property

public byte[] kirk7_key0E
return byte[]

kirk7_key0F public_oe property

public byte[] kirk7_key0F
return byte[]

kirk7_key10 public_oe property

public byte[] kirk7_key10
return byte[]

kirk7_key11 public_oe property

public byte[] kirk7_key11
return byte[]

kirk7_key12 public_oe property

public byte[] kirk7_key12
return byte[]

kirk7_key38 public_oe property

public byte[] kirk7_key38
return byte[]

kirk7_key39 public_oe property

public byte[] kirk7_key39
return byte[]

kirk7_key3A public_oe property

public byte[] kirk7_key3A
return byte[]

kirk7_key4B public_oe property

public byte[] kirk7_key4B
return byte[]

kirk7_key53 public_oe property

public byte[] kirk7_key53
return byte[]

kirk7_key57 public_oe property

public byte[] kirk7_key57
return byte[]

kirk7_key5D public_oe property

public byte[] kirk7_key5D
return byte[]

kirk7_key63 public_oe property

public byte[] kirk7_key63
return byte[]

kirk7_key64 public_oe property

public byte[] kirk7_key64
return byte[]