libPocuter 1.0 Support library for programming the Pocuter

PocuterHMAC.h
Go to the documentation of this file.
1
2 #ifndef POCUTERHMAC_H
3 #define POCUTERHMAC_H
4
9 class PocuterHMAC {
10 public:
11 virtual bool isEncryptionKeySet() = 0;
12 virtual bool setEfuseKey(const uint8_t* masterKey, uint8_t keyLength) = 0;
13 virtual uint8_t* getChipID() = 0;
14 virtual void calculateChallengeReply(const uint8_t* challenge, uint8_t challengeLength, uint8_t* reply, uint8_t& replyLength) = 0;
15 virtual void calculateAESKey(const uint8_t* challenge, uint8_t challengeLength, uint8_t* reply, uint8_t& replyLength) = 0;
16 virtual void calculateChallengeReplySW(const uint8_t* masterKey, uint8_t keyLength, const uint8_t* challenge, uint8_t challengeLength, uint8_t* reply, uint8_t& replyLength) = 0;
17 private:
18
19 };
20
21
22 #endif /* POCUTERHMAC_H */
23
PocuterHMAC::calculateChallengeReplySW
virtual void calculateChallengeReplySW(const uint8_t *masterKey, uint8_t keyLength, const uint8_t *challenge, uint8_t challengeLength, uint8_t *reply, uint8_t &replyLength)=0
PocuterHMAC::getChipID
virtual uint8_t * getChipID()=0
PocuterHMAC::setEfuseKey
virtual bool setEfuseKey(const uint8_t *masterKey, uint8_t keyLength)=0
PocuterHMAC::calculateChallengeReply
virtual void calculateChallengeReply(const uint8_t *challenge, uint8_t challengeLength, uint8_t *reply, uint8_t &replyLength)=0
PocuterHMAC::calculateAESKey
virtual void calculateAESKey(const uint8_t *challenge, uint8_t challengeLength, uint8_t *reply, uint8_t &replyLength)=0
PocuterHMAC
HMAC encryption operations.
Definition: PocuterHMAC.h:9
PocuterHMAC::isEncryptionKeySet
virtual bool isEncryptionKeySet()=0