2
0

C API for hybrid passwords.

This commit is contained in:
Maarten Billemont
2017-08-04 10:43:46 -04:00
parent d6415277d0
commit 228f8e4ed1
7 changed files with 115 additions and 15 deletions

View File

@@ -53,4 +53,14 @@ MPSiteKey mpw_siteKey(
const char *mpw_sitePassword(
MPSiteKey siteKey, const MPPasswordType passwordType, const MPAlgorithmVersion algorithmVersion);
/** Perform symmetric encryption on a secret token's plainText.
* @return The newly allocated cipherText of the secret token encrypted by the masterKey. */
const char *mpw_encrypt(
MPMasterKey masterKey, const char *plainText, const MPAlgorithmVersion algorithmVersion);
/** Perform symmetric decryption on a secret token's cipherText.
* @return The newly allocated plainText of the secret token decrypted by the masterKey. */
const char *mpw_decrypt(
MPMasterKey masterKey, const char *cipherText, const MPAlgorithmVersion algorithmVersion);
#endif // _MPW_ALGORITHM_H