C# Class SyrupPayJose.Jwa.Enc.AesEncryptionWithHmacSha

Inheritance: ContentEncryption
ファイルを表示 Open project: SKplanet/syruppay-csharp Class Usage Examples

Public Methods

Method Description
AesEncryptionWithHmacSha ( int keyLength, int ivLength ) : System
Decryption ( byte key, byte iv, byte src ) : byte[]
Encryption ( byte key, byte iv, byte src ) : byte[]
EncryptionAndSign ( byte key, byte iv, byte src, byte aad ) : JweEncResult
GetAl ( int len ) : byte[]
MakeSignParts ( byte iv, byte aad, byte src ) : byte[]
Sign ( byte key, byte iv, byte aad, byte src ) : byte[]
Verify ( byte key, byte iv, byte aad, byte src, byte expected ) : void
VerifyAndDecryption ( byte key, byte iv, byte src, byte aad, byte expected ) : byte[]
getContentEncryptionKeyGenerator ( ) : ContentEncryptKeyGenerator

Method Details

AesEncryptionWithHmacSha() public method

public AesEncryptionWithHmacSha ( int keyLength, int ivLength ) : System
keyLength int
ivLength int
return System

Decryption() public method

public Decryption ( byte key, byte iv, byte src ) : byte[]
key byte
iv byte
src byte
return byte[]

Encryption() public method

public Encryption ( byte key, byte iv, byte src ) : byte[]
key byte
iv byte
src byte
return byte[]

EncryptionAndSign() public method

public EncryptionAndSign ( byte key, byte iv, byte src, byte aad ) : JweEncResult
key byte
iv byte
src byte
aad byte
return JweEncResult

GetAl() public method

public GetAl ( int len ) : byte[]
len int
return byte[]

MakeSignParts() public method

public MakeSignParts ( byte iv, byte aad, byte src ) : byte[]
iv byte
aad byte
src byte
return byte[]

Sign() public method

public Sign ( byte key, byte iv, byte aad, byte src ) : byte[]
key byte
iv byte
aad byte
src byte
return byte[]

Verify() public method

public Verify ( byte key, byte iv, byte aad, byte src, byte expected ) : void
key byte
iv byte
aad byte
src byte
expected byte
return void

VerifyAndDecryption() public method

public VerifyAndDecryption ( byte key, byte iv, byte src, byte aad, byte expected ) : byte[]
key byte
iv byte
src byte
aad byte
expected byte
return byte[]

getContentEncryptionKeyGenerator() public method

public getContentEncryptionKeyGenerator ( ) : ContentEncryptKeyGenerator
return ContentEncryptKeyGenerator