protected SecretSharing(int n, int k, IKeyEncrypter keyEncrypter) : this(n, k) => KeyEncrypter = keyEncrypter;
public override DecrypterKernel <byte[]> GetDecrypter(Sharing <byte[]> shares, IKeyEncrypter key) { return(new SecretBufferSharingDecrypter(shares, key)); }
public override SecretSharing <byte[]> GetEncrypter(byte[] data, int n, int k, IKeyEncrypter key) { return(new SecretBufferSharing(data, n, k, key)); }
public abstract SecretSharing <T> GetEncrypter(T data, int n, int k, IKeyEncrypter key);
public abstract DecrypterKernel <T> GetDecrypter(Sharing <T> shares, IKeyEncrypter key);
public SecretSharing <T> GetEncrypter(T data, int n, int k, IKeyEncrypter keyEncrypter) => factory.GetEncrypter(data, n, k, keyEncrypter);
public DecrypterKernel <T> GetDecrypter(Sharing <T> shares, IKeyEncrypter keyEncrypter) => factory.GetDecrypter(shares, keyEncrypter);
public SecretBufferSharing(byte[] buffer, int n, int k, IKeyEncrypter keyEncrypter) : base(n, k, keyEncrypter) { Buffer = buffer; }
public SecretImageSharingDecrypter(Sharing <Bitmap> sharing, IKeyEncrypter keyEncrypter) : base(keyEncrypter, sharing) { }
public SecretBufferSharingDecrypter(Sharing <byte[]> sharing, IKeyEncrypter keyEncrypter) : base(keyEncrypter, sharing) { }
public override DecrypterKernel <Bitmap> GetDecrypter(Sharing <Bitmap> shares, IKeyEncrypter key) { return(new SecretImageSharingDecrypter(shares, key)); }
public override SecretSharing <Bitmap> GetEncrypter(Bitmap data, int n, int k, IKeyEncrypter key) { return(new SecretImageSharing(data, n, k, key)); }