C# Class SyrupPayJose.Jwa.Enc.AesEncryptionWithHmacSha

Inheritance: ContentEncryption
Afficher le fichier Open project: SKplanet/syruppay-csharp Class Usage Examples

Méthodes publiques

Méthode 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 méthode

public AesEncryptionWithHmacSha ( int keyLength, int ivLength ) : System
keyLength int
ivLength int
Résultat System

Decryption() public méthode

public Decryption ( byte key, byte iv, byte src ) : byte[]
key byte
iv byte
src byte
Résultat byte[]

Encryption() public méthode

public Encryption ( byte key, byte iv, byte src ) : byte[]
key byte
iv byte
src byte
Résultat byte[]

EncryptionAndSign() public méthode

public EncryptionAndSign ( byte key, byte iv, byte src, byte aad ) : JweEncResult
key byte
iv byte
src byte
aad byte
Résultat JweEncResult

GetAl() public méthode

public GetAl ( int len ) : byte[]
len int
Résultat byte[]

MakeSignParts() public méthode

public MakeSignParts ( byte iv, byte aad, byte src ) : byte[]
iv byte
aad byte
src byte
Résultat byte[]

Sign() public méthode

public Sign ( byte key, byte iv, byte aad, byte src ) : byte[]
key byte
iv byte
aad byte
src byte
Résultat byte[]

Verify() public méthode

public Verify ( byte key, byte iv, byte aad, byte src, byte expected ) : void
key byte
iv byte
aad byte
src byte
expected byte
Résultat void

VerifyAndDecryption() public méthode

public VerifyAndDecryption ( byte key, byte iv, byte src, byte aad, byte expected ) : byte[]
key byte
iv byte
src byte
aad byte
expected byte
Résultat byte[]

getContentEncryptionKeyGenerator() public méthode

public getContentEncryptionKeyGenerator ( ) : ContentEncryptKeyGenerator
Résultat ContentEncryptKeyGenerator