libfprint
|
00001 /* 00002 * Shared functions between libfprint Authentec drivers 00003 * Copyright (C) 2007 Daniel Drake <dsd@gentoo.org> 00004 * 00005 * This library is free software; you can redistribute it and/or 00006 * modify it under the terms of the GNU Lesser General Public 00007 * License as published by the Free Software Foundation; either 00008 * version 2.1 of the License, or (at your option) any later version. 00009 * 00010 * This library is distributed in the hope that it will be useful, 00011 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00012 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00013 * Lesser General Public License for more details. 00014 * 00015 * You should have received a copy of the GNU Lesser General Public 00016 * License along with this library; if not, write to the Free Software 00017 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 00018 */ 00019 00020 #ifndef __AESLIB_H__ 00021 #define __AESLIB_H__ 00022 00023 #include <fp_internal.h> 00024 00025 struct aes_regwrite { 00026 unsigned char reg; 00027 unsigned char value; 00028 }; 00029 00030 typedef void (*aes_write_regv_cb)(struct fp_img_dev *dev, int result, 00031 void *user_data); 00032 00033 void aes_write_regv(struct fp_img_dev *dev, const struct aes_regwrite *regs, 00034 unsigned int num_regs, aes_write_regv_cb callback, void *user_data); 00035 00036 void aes_assemble_image(unsigned char *input, size_t width, size_t height, 00037 unsigned char *output); 00038 00039 #endif 00040