added generic implementation helpers for private_key_t.equals/belongs_to, public_key_t.equals

This commit is contained in:
Martin Willi
2009-08-26 11:23:52 +02:00
parent 0dd2defc5a
commit edd354db6f
4 changed files with 97 additions and 3 deletions
@@ -168,6 +168,15 @@ struct public_key_t {
void (*destroy)(public_key_t *this);
};
/**
* Generic public key equals() implementation, usable by implementors.
*
* @param this first key to compare
* @param other second key to compare
* @return TRUE if this is equal to other
*/
bool public_key_equals(public_key_t *this, public_key_t *other);
/**
* Conversion of ASN.1 signature or hash OID to signature scheme.
*