Pool Video Switch v2
Software video switch for distributed remote display in a lecture environment
util.cpp
Go to the documentation of this file.
1 /*
2  * util.cpp
3  *
4  * Created on: 30.01.2013
5  * Author: sr
6  */
7 
8 #include "util.h"
9 #include <QCryptographicHash>
10 
11 static QCryptographicHash sha1(QCryptographicHash::Sha1);
12 
13 QByteArray genSha1(const QByteArray *a, const QByteArray *b, const QByteArray *c, const QByteArray *d, const QByteArray *e)
14 {
15  sha1.reset();
16  sha1.addData(*a);
17  if (b) sha1.addData(*b);
18  if (c) sha1.addData(*c);
19  if (d) sha1.addData(*d);
20  if (e) sha1.addData(*e);
21  return sha1.result();
22 }
static QCryptographicHash sha1(QCryptographicHash::Sha1)
QByteArray genSha1(const QByteArray *a, const QByteArray *b, const QByteArray *c, const QByteArray *d, const QByteArray *e)
Definition: util.cpp:13