Represents a crypto service provider that encrypts things using symmetric encryption
AesSymmetricCrypographicProvider - (SanteDB.Core.Api)
...
<section xsi:type="ApplicationServiceContextConfigurationSection" threadPoolSize="4">
<serviceProviders>
...
<add type="SanteDB.Core.Security.AesSymmetricCrypographicProvider, SanteDB.Core.Api, Version=3.0.1980.0, Culture=neutral, PublicKeyToken=null" />
...
</serviceProviders>
/// Example Implementation
using SanteDB.Core.Security.Services;
/// Other usings here
public class MySymmetricCryptographicProvider : SanteDB.Core.Security.Services.ISymmetricCryptographicProvider {
public String ServiceName => "My own ISymmetricCryptographicProvider service";
public Byte[] GetContextKey(){
throw new System.NotImplementedException();
}
public Boolean RotateContextKey(){
throw new System.NotImplementedException();
}
public Byte[] GenerateIV(){
throw new System.NotImplementedException();
}
public Byte[] GenerateKey(){
throw new System.NotImplementedException();
}
/// <summary>
/// Encrypts the sepcified data
/// </summary>
public Byte[] Encrypt(Byte[] data,Byte[] key,Byte[] iv){
throw new System.NotImplementedException();
}
/// <summary>
/// Decrypts the specified data
/// </summary>
public Byte[] Decrypt(Byte[] data,Byte[] key,Byte[] iv){
throw new System.NotImplementedException();
}
/// <summary>
/// Encrypts the sepcified data
/// </summary>
public Byte[] Encrypt(Byte[] data){
throw new System.NotImplementedException();
}
/// <summary>
/// Decrypts the specified data
/// </summary>
public Byte[] Decrypt(Byte[] data){
throw new System.NotImplementedException();
}
/// <summary>
/// Encrypts the sepcified data
/// </summary>
public String Encrypt(String data){
throw new System.NotImplementedException();
}
/// <summary>
/// Decrypts the specified data
/// </summary>
public String Decrypt(String data){
throw new System.NotImplementedException();
}
/// <summary>
/// Create a decrypting stream
/// </summary>
public Stream CreateEncryptingStream(Stream underlyingStream,Byte[] key,Byte[] iv){
throw new System.NotImplementedException();
}
/// <summary>
/// Create a decrypting stream
/// </summary>
public Stream CreateDecryptingStream(Stream underlyingStream,Byte[] key,Byte[] iv){
throw new System.NotImplementedException();
}
}