Searched defs:ctx_mac (Results 1 - 2 of 2) sorted by relevance

/dovecot/src/lib-dcrypt/
H A Dostream-encrypt.c36 struct dcrypt_context_hmac *ctx_mac; member in struct:encrypt_ostream
405 dcrypt_ctx_hmac_set_key(stream->ctx_mac, ptr, tagsize);
406 dcrypt_ctx_hmac_init(stream->ctx_mac, &error);
465 if (!dcrypt_ctx_hmac_update(estream->ctx_mac, buf.data, buf.used, &error)) {
511 if (!dcrypt_ctx_hmac_update(estream->ctx_mac, buf->data, buf->used, &error)) {
524 if (!dcrypt_ctx_hmac_final(estream->ctx_mac, buf, &error)) {
572 if (estream->ctx_mac != NULL) dcrypt_ctx_hmac_destroy(&estream->ctx_mac);
619 if (!dcrypt_ctx_hmac_create(malg, &estream->ctx_mac, &error)) {
H A Distream-decrypt.c39 struct dcrypt_context_hmac *ctx_mac; member in struct:decrypt_istream
489 if (malg == NULL || !dcrypt_ctx_hmac_create(malg, &stream->ctx_mac, NULL)) {
541 dcrypt_ctx_hmac_set_key(stream->ctx_mac, ptr, tagsize);
542 if (!dcrypt_ctx_hmac_init(stream->ctx_mac, &error)) {
547 stream->ftr = dcrypt_ctx_hmac_get_digest_length(stream->ctx_mac);
779 if (!dcrypt_ctx_hmac_update(dstream->ctx_mac,
791 unsigned char dgst[dcrypt_ctx_hmac_get_digest_length(dstream->ctx_mac)];
794 if (!dcrypt_ctx_hmac_final(dstream->ctx_mac, &db, &error)) {
800 if (memcmp(dgst, data + decrypt_size, dcrypt_ctx_hmac_get_digest_length(dstream->ctx_mac)) != 0) {
844 if (dstream->ctx_mac !
[all...]

Completed in 43 milliseconds