X-Git-Url: https://git.cryptolib.org/?p=arm-crypto-lib.git;a=blobdiff_plain;f=mgf1%2Fmgf1.h;fp=mgf1%2Fmgf1.h;h=76c3b8d94aac3bcb5a5123718b428c82a196b868;hp=0000000000000000000000000000000000000000;hb=e69f1207a9fbd9c0f45bfdbb2d8ebe9852d95969;hpb=566eed8328ea61e4b18a7a77031ca22cdaf21ccc
diff --git a/mgf1/mgf1.h b/mgf1/mgf1.h
new file mode 100644
index 0000000..76c3b8d
--- /dev/null
+++ b/mgf1/mgf1.h
@@ -0,0 +1,36 @@
+/* mgf1.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 MGF1_H_
+#define MGF1_H_
+
+#include
+#include "hfal-basic.h"
+
+typedef struct {
+ const hfdesc_t* hashfunction;
+} mgf1_parameter_t;
+
+/*
+ * MGF1 as defined in PKCS #1 v2.1 B.2.1
+ */
+
+void mgf1(void* dest, const void* seed, uint16_t seed_len_B, uint16_t out_length_B, const mgf1_parameter_t* p);
+
+#endif /* MGF1_H_ */