Changeset f626f58 in terepaima for signHash/cryptotoken.h


Ignore:
Timestamp:
Jun 5, 2017, 1:22:15 PM (7 years ago)
Author:
Antonio Araujo <aaraujo@…>
Branches:
master
Children:
ce57b45
Parents:
0f7c727
Message:

Modificaciones en el proyecto de prueba de concepto para firmar un hash recibido de murachi en un programa en C++. Revisar la función std::vector<unsigned char> signHash(QString hashToSign, QString pin, QString label);

File:
1 edited

Legend:

Unmodified
Added
Removed
  • signHash/cryptotoken.h

    r0f7c727 rf626f58  
    6565            CK_ULONG someDataLen, CK_BYTE_PTR sign, CK_ULONG_PTR signLen );
    6666
     67
     68    /**
     69     * @brief Sign a hash.
     70     *
     71     * @param hashToSign hash to be signed
     72     * @param pin pin of cryptographic device
     73     * @param label label of the private key stored in the cryptographic device
     74     * @return signed hash
     75     */
     76    std::vector<unsigned char> signHash(QString hashToSign, QString pin, QString label);
     77
    6778    /**
    6879     * @brief Retorna información del modulo PKCS11
     
    7889    QString returnErrorToQString(CK_RV rv);
    7990
     91
     92    QByteArray toHex(const std::vector<unsigned char> &data);
     93
     94    std::vector<unsigned char> fromHex(const QString &data);
    8095};
    8196
Note: See TracChangeset for help on using the changeset viewer.