C# 클래스 CSPspEmu.Core.Crypto.Crypto

파일 보기 프로젝트 열기: soywiz/cspspemu

공개 메소드들

메소드 설명
AES_CMAC ( AES_ctx ctx, byte input, int length, byte mac ) : void
AES_CMAC_forge ( AES_ctx ctx, byte input, int length, byte forge ) : void
AES_cbc_decrypt ( AES_ctx ctx, byte src, byte dst, int size ) : void
AES_cbc_encrypt ( AES_ctx ctx, byte src, byte dst, int size ) : void
AES_decrypt ( AES_ctx ctx, byte src, byte dst ) : void
AES_encrypt ( AES_ctx ctx, byte src, byte dst ) : void
AES_set_key ( AES_ctx ctx, byte key, int bits ) : int
generate_subkey ( AES_ctx ctx, byte K1, byte K2 ) : void
leftshift_onebit ( byte input, byte output ) : void
memcmp ( byte str1, byte str2, int count ) : int
memcpy ( byte dst, byte src, int count ) : void
memcpy ( void dst, void src, int count ) : void
padding ( byte lastb, byte pad, int length ) : void
rijndaelDecrypt ( uint rk, int Nr, byte ct, byte pt ) : void
rijndaelEncrypt ( uint rk, int Nr, byte pt, byte ct ) : void
rijndaelKeySetupDec ( uint rk, byte cipherKey, int keyBits ) : int

Expand the cipher key into the decryption key schedule.

rijndaelKeySetupEnc ( uint rk, byte cipherKey, int keyBits ) : int

Expand the cipher key into the encryption key schedule.

rijndael_decrypt ( rijndael_ctx ctx, byte src, byte dst ) : void
rijndael_encrypt ( rijndael_ctx ctx, byte src, byte dst ) : void
rijndael_set_key ( rijndael_ctx ctx, byte key, int bits ) : int
rijndael_set_key_enc_only ( rijndael_ctx ctx, byte key, int bits ) : int

비공개 메소드들

메소드 설명
GETuint ( byte pt ) : uint
PUTuint ( byte ct, uint st ) : void
xor_128 ( byte a, byte b, byte Out ) : void

메소드 상세

AES_CMAC() 공개 정적인 메소드

public static AES_CMAC ( AES_ctx ctx, byte input, int length, byte mac ) : void
ctx AES_ctx
input byte
length int
mac byte
리턴 void

AES_CMAC_forge() 공개 정적인 메소드

public static AES_CMAC_forge ( AES_ctx ctx, byte input, int length, byte forge ) : void
ctx AES_ctx
input byte
length int
forge byte
리턴 void

AES_cbc_decrypt() 공개 정적인 메소드

public static AES_cbc_decrypt ( AES_ctx ctx, byte src, byte dst, int size ) : void
ctx AES_ctx
src byte
dst byte
size int
리턴 void

AES_cbc_encrypt() 공개 정적인 메소드

public static AES_cbc_encrypt ( AES_ctx ctx, byte src, byte dst, int size ) : void
ctx AES_ctx
src byte
dst byte
size int
리턴 void

AES_decrypt() 공개 정적인 메소드

public static AES_decrypt ( AES_ctx ctx, byte src, byte dst ) : void
ctx AES_ctx
src byte
dst byte
리턴 void

AES_encrypt() 공개 정적인 메소드

public static AES_encrypt ( AES_ctx ctx, byte src, byte dst ) : void
ctx AES_ctx
src byte
dst byte
리턴 void

AES_set_key() 공개 정적인 메소드

public static AES_set_key ( AES_ctx ctx, byte key, int bits ) : int
ctx AES_ctx
key byte
bits int
리턴 int

generate_subkey() 공개 정적인 메소드

public static generate_subkey ( AES_ctx ctx, byte K1, byte K2 ) : void
ctx AES_ctx
K1 byte
K2 byte
리턴 void

leftshift_onebit() 공개 정적인 메소드

public static leftshift_onebit ( byte input, byte output ) : void
input byte
output byte
리턴 void

memcmp() 공개 정적인 메소드

public static memcmp ( byte str1, byte str2, int count ) : int
str1 byte
str2 byte
count int
리턴 int

memcpy() 공개 정적인 메소드

public static memcpy ( byte dst, byte src, int count ) : void
dst byte
src byte
count int
리턴 void

memcpy() 공개 정적인 메소드

public static memcpy ( void dst, void src, int count ) : void
dst void
src void
count int
리턴 void

padding() 공개 정적인 메소드

public static padding ( byte lastb, byte pad, int length ) : void
lastb byte
pad byte
length int
리턴 void

rijndaelDecrypt() 공개 정적인 메소드

public static rijndaelDecrypt ( uint rk, int Nr, byte ct, byte pt ) : void
rk uint
Nr int
ct byte
pt byte
리턴 void

rijndaelEncrypt() 공개 정적인 메소드

public static rijndaelEncrypt ( uint rk, int Nr, byte pt, byte ct ) : void
rk uint
Nr int
pt byte
ct byte
리턴 void

rijndaelKeySetupDec() 공개 정적인 메소드

Expand the cipher key into the decryption key schedule.
public static rijndaelKeySetupDec ( uint rk, byte cipherKey, int keyBits ) : int
rk uint
cipherKey byte
keyBits int
리턴 int

rijndaelKeySetupEnc() 공개 정적인 메소드

Expand the cipher key into the encryption key schedule.
public static rijndaelKeySetupEnc ( uint rk, byte cipherKey, int keyBits ) : int
rk uint
cipherKey byte
keyBits int
리턴 int

rijndael_decrypt() 공개 정적인 메소드

public static rijndael_decrypt ( rijndael_ctx ctx, byte src, byte dst ) : void
ctx rijndael_ctx
src byte
dst byte
리턴 void

rijndael_encrypt() 공개 정적인 메소드

public static rijndael_encrypt ( rijndael_ctx ctx, byte src, byte dst ) : void
ctx rijndael_ctx
src byte
dst byte
리턴 void

rijndael_set_key() 공개 정적인 메소드

public static rijndael_set_key ( rijndael_ctx ctx, byte key, int bits ) : int
ctx rijndael_ctx
key byte
bits int
리턴 int

rijndael_set_key_enc_only() 공개 정적인 메소드

public static rijndael_set_key_enc_only ( rijndael_ctx ctx, byte key, int bits ) : int
ctx rijndael_ctx
key byte
bits int
리턴 int