Lines Matching defs:hd
17 gcry_md_hd_t hd;
21 if (gcry_md_open(&hd, GCRY_MD_MD4, 0) != GPG_ERR_NO_ERROR)
24 gcry_md_write(hd, addr[i], len[i]);
25 p = gcry_md_read(hd, GCRY_MD_MD4);
28 gcry_md_close(hd);
35 gcry_cipher_hd_t hd;
48 gcry_cipher_open(&hd, GCRY_CIPHER_DES, GCRY_CIPHER_MODE_ECB, 0);
49 gcry_err_code(gcry_cipher_setkey(hd, pkey, 8));
50 gcry_cipher_encrypt(hd, cypher, 8, clear, 8);
51 gcry_cipher_close(hd);
57 gcry_md_hd_t hd;
61 if (gcry_md_open(&hd, GCRY_MD_MD5, 0) != GPG_ERR_NO_ERROR)
64 gcry_md_write(hd, addr[i], len[i]);
65 p = gcry_md_read(hd, GCRY_MD_MD5);
68 gcry_md_close(hd);
75 gcry_md_hd_t hd;
79 if (gcry_md_open(&hd, GCRY_MD_SHA1, 0) != GPG_ERR_NO_ERROR)
82 gcry_md_write(hd, addr[i], len[i]);
83 p = gcry_md_read(hd, GCRY_MD_SHA1);
86 gcry_md_close(hd);
93 gcry_cipher_hd_t hd;
95 if (gcry_cipher_open(&hd, GCRY_CIPHER_AES, GCRY_CIPHER_MODE_ECB, 0) !=
100 if (gcry_cipher_setkey(hd, key, len) != GPG_ERR_NO_ERROR) {
102 gcry_cipher_close(hd);
106 return hd;
112 gcry_cipher_hd_t hd = ctx;
113 gcry_cipher_encrypt(hd, crypt, 16, plain, 16);
119 gcry_cipher_hd_t hd = ctx;
120 gcry_cipher_close(hd);
126 gcry_cipher_hd_t hd;
128 if (gcry_cipher_open(&hd, GCRY_CIPHER_AES, GCRY_CIPHER_MODE_ECB, 0) !=
131 if (gcry_cipher_setkey(hd, key, len) != GPG_ERR_NO_ERROR) {
132 gcry_cipher_close(hd);
136 return hd;
142 gcry_cipher_hd_t hd = ctx;
143 gcry_cipher_decrypt(hd, plain, 16, crypt, 16);
149 gcry_cipher_hd_t hd = ctx;
150 gcry_cipher_close(hd);