xca/widgets/KeyDetail.h
Christian Hohnstaedt 1bc340a0ef Close #104: Also show sha256 digests of public keys
Print digest of public keys in the key details in different formats:

Print SHA256 SSH digest as used to by SSH users:
	ssh-keygen -l -f ~/.ssh/id_rsa.pub

Print SHA1 X509 key digest as shown in the
	Subject key identifier of a certificate

Print SHA256 digest as in:
	openssl pkey -pubout -outform DER < key.pem | sha256sum
as requested by this issue.

Refactored digesting functionality by a generic Digest()
function working with QByteArrays.
The function formatHash() now also expects a QByteArray input.
2019-03-14 06:35:24 +01:00

27 lines
382 B
C++

/* vi: set sw=4 ts=4:
*
* Copyright (C) 2001 - 2009 Christian Hohnstaedt.
*
* All rights reserved.
*/
#ifndef __KEYDETAIL_H
#define __KEYDETAIL_H
#include "ui_KeyDetail.h"
class pki_key;
class KeyDetail: public QDialog, public Ui::KeyDetail
{
Q_OBJECT
public:
KeyDetail(QWidget *parent);
void setKey(pki_key *key);
void setupFingerprints(pki_key *key);
};
#endif