Interface IEbicsSecurityOperations
Interface that provides the essential RSA security operations required for EBICS messages.
public interface IEbicsSecurityOperations
Methods
Decrypt(EbicsSecurityCode, byte[])
Decrypts the given transaction key.
byte[] Decrypt(EbicsSecurityCode nCode, byte[] vbCrypt)
Parameters
nCode
EbicsSecurityCodeSelects the security process to be performed. This also implicitly selects the RSA key that will be used for the security process.
vbCrypt
byte[]The raw encrypted transaction key data.
Returns
- byte[]
The plain, decrypted transaction key.
GetPubKey(EbicsSecurityCode)
Retrieve the public key information.
EbicsPubKeyInfo GetPubKey(EbicsSecurityCode nCode)
Parameters
nCode
EbicsSecurityCodeThe security process that shall be performed identifies the key for which to retrieve the public key data.
Returns
- EbicsPubKeyInfo
The public key information or
null
if the requested security process is not supported.
SignHash(EbicsSecurityCode, byte[])
Computes an EBICS authentication signature or electronic signature.
byte[] SignHash(EbicsSecurityCode nCode, byte[] vbHash)
Parameters
nCode
EbicsSecurityCodeSelects the security process to be performed. This also implicitly selects the RSA key that will be used for the security process.
vbHash
byte[]Raw hash value to be signed. The required length of the hash value depends on the selected security process.
Returns
- byte[]
The raw signature value.