X-Git-Url: https://git.cryptolib.org/?a=blobdiff_plain;f=mqq-sign%2Fmqq160-sign.h;fp=mqq-sign%2Fmqq160-sign.h;h=bf6c5f7ab10ee7777d0a0b2c2890a7893d263a10;hb=056b130e8185a29017a3f3feb0b7db4e84080b09;hp=0000000000000000000000000000000000000000;hpb=c9c11514d91b8c19f77d65ac051b998bd99048b0;p=avr-crypto-lib.git diff --git a/mqq-sign/mqq160-sign.h b/mqq-sign/mqq160-sign.h new file mode 100644 index 0000000..bf6c5f7 --- /dev/null +++ b/mqq-sign/mqq160-sign.h @@ -0,0 +1,33 @@ +/* mqq160-sign.h */ +/* + This file is part of the AVR-Crypto-Lib. + Copyright (C) 2010 Daniel Otte (daniel.otte@rub.de) + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . +*/ + +#ifndef MQQ160SIGN_H_ +#define MQQ160SIGN_H_ + +typedef struct{ + uint8_t *a; + uint8_t *cc1; + uint8_t *cc2; + uint8_t *rp1; + uint8_t *rp5; +} mqq160_sign_key_t; + +void mqq160_sign(void* dest, const void* hash, const mqq160_sign_key_t* key); + +#endif /* MQQ160SIGN_H_ */