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);
示例#6
0
 public SecretSharing <T> GetEncrypter(T data, int n, int k, IKeyEncrypter keyEncrypter) => factory.GetEncrypter(data, n, k, keyEncrypter);
示例#7
0
 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;
 }
示例#9
0
 public SecretImageSharingDecrypter(Sharing <Bitmap> sharing, IKeyEncrypter keyEncrypter) : base(keyEncrypter, sharing)
 {
 }
示例#10
0
 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));
 }