Workaround for some CMS signature formats.
[openssl.git] / fips / fips_locl.h
index b79865e469e849500203d9c365fb54351bd3b067..df3863f91ea217fe122fbc91e49e45860ffea602 100644 (file)
@@ -1,5 +1,5 @@
 /* ====================================================================
- * Copyright (c) 2003 The OpenSSL Project.  All rights reserved.
+ * Copyright (c) 2011 The OpenSSL Project.  All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
  * modification, are permitted provided that the following conditions
 extern "C" {
 #endif
 
-#define FIPS_MAX_CIPHER_TEST_SIZE      16
+#define FIPS_MAX_CIPHER_TEST_SIZE      32
+#define fips_load_key_component(key, comp, pre) \
+       key->comp = BN_bin2bn(pre##_##comp, sizeof(pre##_##comp), key->comp); \
+       if (!key->comp) \
+               goto err
+
+int fips_post_begin(void);
+void fips_post_end(void);
+int fips_post_started(int id, int subid, void *ex);
+int fips_post_success(int id, int subid, void *ex);
+int fips_post_failed(int id, int subid, void *ex);
+int fips_post_corrupt(int id, int subid, void *ex);
+int fips_post_status(void);
+
+#define FIPS_MODULE_VERSION_NUMBER     0x20000000L
+#define FIPS_MODULE_VERSION_TEXT       "FIPS 2.0-dev unvalidated test module xx XXX xxxx"
 
 #ifdef  __cplusplus
 }