Skip to content

Instantly share code, notes, and snippets.

@SteveSyfuhs
Created August 22, 2017 01:27
Show Gist options
  • Save SteveSyfuhs/5336419cd1bea6c187a4ae62de3cec79 to your computer and use it in GitHub Desktop.
Save SteveSyfuhs/5336419cd1bea6c187a4ae62de3cec79 to your computer and use it in GitHub Desktop.
Crypto Interface
public interface ICryptoProcessor
{
Task<IEnclaveKey> GenerateKey(string keyType);
Task<string> Encrypt(IEnclaveKey key, object value);
Task<T> Decrypt<T>(IEnclaveKey key, string ciphertext);
Task<string> Sign(IEnclaveKey key, object value);
Task<bool> Validate(IEnclaveKey key, string value);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment