1 #ifndef KEY_REPOSITORY_CLASS
2 #define KEY_REPOSITORY_CLASS
Outcomes describe the state of completion for an operation.
Provides BlowFish encryption on byte_arrays using the OpenSSL package.
DEFINE_CLASS_NAME("key_repository")
basis::outcome whack(const octopus_entity &ent)
removes the key for "ent".
void unlock(octenc_key_record *to_unlock)
drops the lock on the key record in "to_unlock".
basis::outcome add(const octopus_entity &ent, const crypto::blowfish_crypto &key)
adds a "key" for the "ent". this will fail if one is already listed.
octenc_key_record * lock(const octopus_entity &ent)
locates the key for "ent", if it's stored.
virtual ~key_repository()
Tracks the keys that have been assigned for a secure channel.
octopus_entity _entity
who the key belongs to.
crypto::blowfish_crypto _key
used for communicating with an entity.
octenc_key_record()
bogus blank constructor.
octenc_key_record(const octopus_entity &entity, const crypto::blowfish_crypto &key)
Provides a way of identifying users of an octopus object.
Maintains a list of names, where each name has a type and some contents.