#define HASHALG_RAW 0x00000004\r
#define HASHALG_MAX 0x00000004\r
\r
+//\r
+// Certificate public key minimum size (bytes)\r
+//\r
+#define CER_PUBKEY_MIN_SIZE 256\r
+\r
+//\r
+// Types of errors may occur during certificate enrollment.\r
+//\r
+typedef enum {\r
+ None_Error = 0,\r
+ //\r
+ // Unsupported_type indicates the certificate type is not supported.\r
+ //\r
+ Unsupported_Type,\r
+ //\r
+ // Unqualified_key indicates the key strength of certificate is not\r
+ // strong enough.\r
+ //\r
+ Unqualified_Key,\r
+ Enroll_Error_Max\r
+}ENROLL_KEY_ERROR;\r
\r
typedef struct {\r
UINTN Signature;\r