present_common.h 1.2 KB

123456789101112131415161718192021222324252627282930313233
  1. /* present_common.h */
  2. /*
  3. This file is part of the AVR-Crypto-Lib.
  4. Copyright (C) 2008 Daniel Otte (daniel.otte@rub.de)
  5. This program is free software: you can redistribute it and/or modify
  6. it under the terms of the GNU General Public License as published by
  7. the Free Software Foundation, either version 3 of the License, or
  8. (at your option) any later version.
  9. This program is distributed in the hope that it will be useful,
  10. but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. GNU General Public License for more details.
  13. You should have received a copy of the GNU General Public License
  14. along with this program. If not, see <http://www.gnu.org/licenses/>.
  15. */
  16. #ifndef PRESENT_COMMON_H_
  17. #define PRESENT_COMMON_H_
  18. #include <stdint.h>
  19. uint8_t present_sbox(uint8_t b);
  20. uint8_t present_sbox_inv(uint8_t b);
  21. void present_p(uint8_t* o, uint8_t* i);
  22. void present_generic_enc(void* buffer, uint8_t* ctx, uint8_t ksize_B,
  23. void(*update)(uint8_t*, uint8_t));
  24. void present_generic_dec(void* buffer, uint8_t* ctx, uint8_t ksize_B,
  25. void(*update)(uint8_t*, uint8_t));
  26. #endif /*PRESENT_H_*/