Lines Matching defs:algo
98 const char *digest_name(unsigned int algo)
100 i_assert(algo < N_ELEMENTS(digests));
102 return digests[algo].name;
116 void digest_init(struct digest_context *ctx, const unsigned int algo)
118 i_assert(algo < N_ELEMENTS(digests));
120 ctx->digest = digests + algo;
140 void otp_hash(unsigned int algo, const char *seed, const char *passphrase,
145 digest_init(&ctx, algo);
151 digest_init(&ctx, algo);
157 void otp_next_hash(unsigned int algo, const unsigned char *prev,
162 digest_init(&ctx, algo);