diffie-hellman: Verify public DH values in backends

This commit is contained in:
Martin Willi
2015-03-23 17:54:03 +01:00
parent a777155ffe
commit 0356089d0f
7 changed files with 107 additions and 1 deletions
+10 -1
View File
@@ -175,8 +175,17 @@ diffie_hellman_params_t *diffie_hellman_get_params(diffie_hellman_group_t group)
* Check if a given DH group is an ECDH group
*
* @param group group to check
* @return TUE if group is an ECP group
* @return TRUE if group is an ECP group
*/
bool diffie_hellman_group_is_ec(diffie_hellman_group_t group);
/**
* Check if a diffie hellman public value is valid for given group.
*
* @param group group the value is used in
* @param value public DH value to check
* @return TRUE if value looks valid for group
*/
bool diffie_hellman_verify_value(diffie_hellman_group_t group, chunk_t value);
#endif /** DIFFIE_HELLMAN_H_ @}*/