mirror of
https://git.rtems.org/rtems-libbsd/
synced 2025-10-15 07:05:20 +08:00
Update to FreeBSD 9.3
This commit is contained in:
@@ -36,28 +36,21 @@ __FBSDID("$FreeBSD$");
|
||||
#ifndef _NETINET_SCTP_AUTH_H_
|
||||
#define _NETINET_SCTP_AUTH_H_
|
||||
|
||||
#include <netinet/sctp_os.h>
|
||||
|
||||
/* digest lengths */
|
||||
#define SCTP_AUTH_DIGEST_LEN_SHA1 20
|
||||
#define SCTP_AUTH_DIGEST_LEN_SHA224 28
|
||||
#define SCTP_AUTH_DIGEST_LEN_SHA256 32
|
||||
#define SCTP_AUTH_DIGEST_LEN_SHA384 48
|
||||
#define SCTP_AUTH_DIGEST_LEN_SHA512 64
|
||||
#define SCTP_AUTH_DIGEST_LEN_MAX 64
|
||||
#define SCTP_AUTH_DIGEST_LEN_MAX SCTP_AUTH_DIGEST_LEN_SHA256
|
||||
|
||||
/* random sizes */
|
||||
#define SCTP_AUTH_RANDOM_SIZE_DEFAULT 32
|
||||
#define SCTP_AUTH_RANDOM_SIZE_REQUIRED 32
|
||||
#define SCTP_AUTH_RANDOM_SIZE_MAX 256
|
||||
|
||||
/* union of all supported HMAC algorithm contexts */
|
||||
typedef union sctp_hash_context {
|
||||
SHA1_CTX sha1;
|
||||
#ifdef HAVE_SHA2
|
||||
SHA256_CTX sha256;
|
||||
SHA384_CTX sha384;
|
||||
SHA512_CTX sha512;
|
||||
#endif
|
||||
SCTP_SHA1_CTX sha1;
|
||||
SCTP_SHA256_CTX sha256;
|
||||
} sctp_hash_context_t;
|
||||
|
||||
typedef struct sctp_key {
|
||||
|
Reference in New Issue
Block a user