David Reiss | 9e7ba8c | 2010-10-05 16:39:27 +0000 | [diff] [blame^] | 1 | #include "t_type.h" |
2 | |||||
3 | #include "md5.h" | ||||
4 | |||||
5 | void t_type::generate_fingerprint() { | ||||
6 | std::string material = get_fingerprint_material(); | ||||
7 | md5_state_t ctx; | ||||
8 | md5_init(&ctx); | ||||
9 | md5_append(&ctx, (md5_byte_t*)(material.data()), (int)material.size()); | ||||
10 | md5_finish(&ctx, (md5_byte_t*)fingerprint_); | ||||
11 | } |