mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
SRT: Upgrade libsrt from 1.4.1 to 1.5.1. v6.0.12 (#3362)
Co-authored-by: winlin <winlin@vip.126.com>
This commit is contained in:
parent
7a56208f2f
commit
fe086dfc31
143 changed files with 38185 additions and 15108 deletions
13
trunk/3rdparty/srt-1-fit/haicrypt/cryspr.h
vendored
13
trunk/3rdparty/srt-1-fit/haicrypt/cryspr.h
vendored
|
@ -39,8 +39,17 @@ extern "C" {
|
|||
#include "cryspr-config.h"
|
||||
|
||||
typedef struct tag_CRYSPR_cb {
|
||||
#ifdef CRYSPR2
|
||||
CRYSPR_AESCTX *aes_kek; /* Key Encrypting Key (KEK) */
|
||||
CRYSPR_AESCTX *aes_sek[2]; /* even/odd Stream Encrypting Key (SEK) */
|
||||
#define CRYSPR_GETKEK(cb) ((cb)->aes_kek)
|
||||
#define CRYSPR_GETSEK(cb,kk) ((cb)->aes_sek[kk])
|
||||
#else /*CRYSPR2*/
|
||||
CRYSPR_AESCTX aes_kek; /* Key Encrypting Key (KEK) */
|
||||
CRYSPR_AESCTX aes_sek[2]; /* even/odd Stream Encrypting Key (SEK) */
|
||||
#define CRYSPR_GETKEK(cb) (&((cb)->aes_kek))
|
||||
#define CRYSPR_GETSEK(cb,kk) (&((cb)->aes_sek[kk]))
|
||||
#endif /*CRYSPR2*/
|
||||
|
||||
struct tag_CRYSPR_methods *cryspr;
|
||||
|
||||
|
@ -69,6 +78,7 @@ typedef struct tag_CRYSPR_methods {
|
|||
int rn_len);
|
||||
|
||||
int (*aes_set_key)(
|
||||
int cipher_type, /* One of HCRYPT_CTX_MODE_[CLRTXT|AESECB|AESCTR|AESGDM] */
|
||||
bool bEncrypt, /* true Enxcrypt key, false: decrypt */
|
||||
const unsigned char *kstr,/* key string*/
|
||||
size_t kstr_len, /* kstr len in bytes (16, 24, or 32 bytes (for AES128,AES192, or AES256) */
|
||||
|
@ -194,6 +204,9 @@ typedef struct tag_CRYSPR_methods {
|
|||
|
||||
} CRYSPR_methods;
|
||||
|
||||
CRYSPR_cb *crysprHelper_Open(CRYSPR_methods *cryspr, size_t cb_len, size_t max_len);
|
||||
int crysprHelper_Close(CRYSPR_cb *cryspr_cb);
|
||||
|
||||
CRYSPR_methods *crysprInit(CRYSPR_methods *cryspr);
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue