Created
August 22, 2017 01:27
-
-
Save SteveSyfuhs/5336419cd1bea6c187a4ae62de3cec79 to your computer and use it in GitHub Desktop.
Crypto Interface
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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