summaryrefslogtreecommitdiffstats
path: root/security/nss/lib/freebl/blapii.h
diff options
context:
space:
mode:
Diffstat (limited to 'security/nss/lib/freebl/blapii.h')
-rw-r--r--security/nss/lib/freebl/blapii.h14
1 files changed, 12 insertions, 2 deletions
diff --git a/security/nss/lib/freebl/blapii.h b/security/nss/lib/freebl/blapii.h
index 006c26977..e3177097f 100644
--- a/security/nss/lib/freebl/blapii.h
+++ b/security/nss/lib/freebl/blapii.h
@@ -18,6 +18,12 @@ typedef SECStatus (*freeblCipherFunc)(void *cx, unsigned char *output,
unsigned int *outputLen, unsigned int maxOutputLen,
const unsigned char *input, unsigned int inputLen,
unsigned int blocksize);
+typedef SECStatus (*freeblAeadFunc)(void *cx, unsigned char *output,
+ unsigned int *outputLen, unsigned int maxOutputLen,
+ const unsigned char *input, unsigned int inputLen,
+ void *params, unsigned int paramsLen,
+ const unsigned char *aad, unsigned int aadLen,
+ unsigned int blocksize);
typedef void (*freeblDestroyFunc)(void *cx, PRBool freeit);
SEC_BEGIN_PROTOS
@@ -54,10 +60,10 @@ SEC_END_PROTOS
#endif
/* Alignment helpers. */
-#if defined(_WINDOWS) && defined(NSS_X86_OR_X64)
+#if defined(_MSC_VER)
#define pre_align __declspec(align(16))
#define post_align
-#elif defined(NSS_X86_OR_X64)
+#elif defined(__GNUC__)
#define pre_align
#define post_align __attribute__((aligned(16)))
#else
@@ -79,8 +85,12 @@ SECStatus generate_prime(mp_int *prime, int primeLen);
/* Freebl state. */
PRBool aesni_support();
PRBool clmul_support();
+PRBool sha_support();
PRBool avx_support();
+PRBool avx2_support();
PRBool ssse3_support();
+PRBool sse4_1_support();
+PRBool sse4_2_support();
PRBool arm_neon_support();
PRBool arm_aes_support();
PRBool arm_pmull_support();