Lines Matching defs:hash
36 string_t *hash = t_str_new(128);
37 if (!dcrypt_key_id_public(pub_key, "sha256", hash, &error)) {
40 const char *v2_hash = binary_to_hex(hash->data, hash->used);
41 printf("v2 hash: %s\n", v2_hash);
44 buffer_set_used_size(hash, 0);
45 if (!dcrypt_key_id_public_old(pub_key, hash, &error)) {
49 const char *v1_hash = binary_to_hex(hash->data,
50 hash->used);
51 printf("v1 hash: %s\n", v1_hash);
75 string_t *hash = t_str_new(128);
76 if (!dcrypt_key_id_private(priv_key, "sha256", hash, &error)) {
79 const char *v2_hash = binary_to_hex(hash->data, hash->used);
80 printf("v2 hash: %s\n", v2_hash);
83 buffer_set_used_size(hash, 0);
84 if (!dcrypt_key_id_private_old(priv_key, hash, &error)) {
87 const char *v1_hash = binary_to_hex(hash->data,
88 hash->used);
89 printf("v1 hash: %s\n", v1_hash);