C# Class SyrupPayJose.Jwa.Enc.ContentEncryption

Inheritance: IJweEncryption
显示文件 Open project: SKplanet/syruppay-csharp

Protected Properties

Property Type Description
ivLength int
keyLength int

Public Methods

Method Description
ContentEncryption ( int keyLength, int ivLength ) : System.Security.Cryptography
EncryptionAndSign ( byte key, byte iv, byte src, byte aad ) : JweEncResult
GenerateRandomIv ( ) : byte[]
VerifyAndDecryption ( byte key, byte iv, byte src, byte aad, byte expected ) : byte[]
getContentEncryptionKeyGenerator ( ) : ContentEncryptKeyGenerator

Method Details

ContentEncryption() public method

public ContentEncryption ( int keyLength, int ivLength ) : System.Security.Cryptography
keyLength int
ivLength int
return System.Security.Cryptography

EncryptionAndSign() public abstract method

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

GenerateRandomIv() public method

public GenerateRandomIv ( ) : byte[]
return byte[]

VerifyAndDecryption() public abstract method

public abstract 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 abstract method

public abstract getContentEncryptionKeyGenerator ( ) : ContentEncryptKeyGenerator
return ContentEncryptKeyGenerator

Property Details

ivLength protected_oe property

protected int ivLength
return int

keyLength protected_oe property

protected int keyLength
return int