mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-21 15:57:31 +09:00
re-introduce old nss im too tired for this
This commit is contained in:
parent
3c46be320d
commit
3a838106b9
2871 changed files with 1374431 additions and 1762417 deletions
|
|
@ -105,16 +105,16 @@ typedef SECStatus (*SSLCipher)(void *context,
|
|||
unsigned int maxout,
|
||||
const unsigned char *in,
|
||||
unsigned int inlen);
|
||||
typedef SECStatus (*SSLAEADCipher)(PK11Context *context,
|
||||
CK_GENERATOR_FUNCTION ivGen,
|
||||
unsigned int fixedbits,
|
||||
unsigned char *iv, unsigned int ivlen,
|
||||
const unsigned char *aad,
|
||||
unsigned int aadlen,
|
||||
unsigned char *out, unsigned int *outlen,
|
||||
unsigned int maxout, unsigned char *tag,
|
||||
unsigned int taglen,
|
||||
const unsigned char *in, unsigned int inlen);
|
||||
typedef SECStatus (*SSLAEADCipher)(
|
||||
const ssl3KeyMaterial *keys,
|
||||
PRBool doDecrypt,
|
||||
unsigned char *out,
|
||||
unsigned int *outlen,
|
||||
unsigned int maxout,
|
||||
const unsigned char *in,
|
||||
unsigned int inlen,
|
||||
const unsigned char *additionalData,
|
||||
unsigned int additionalDataLen);
|
||||
|
||||
/* The DTLS anti-replay window in number of packets. Defined here because we
|
||||
* need it in the cipher spec. Note that this is a ring buffer but left and
|
||||
|
|
@ -149,6 +149,7 @@ struct ssl3CipherSpecStr {
|
|||
const ssl3MACDef *macDef;
|
||||
|
||||
SSLCipher cipher;
|
||||
SSLAEADCipher aead;
|
||||
void *cipherContext;
|
||||
|
||||
PK11SymKey *masterSecret;
|
||||
|
|
@ -168,12 +169,6 @@ struct ssl3CipherSpecStr {
|
|||
* negotiated value for TLS 1.3; it is reduced by one to account for the
|
||||
* content type octet. */
|
||||
PRUint16 recordSizeLimit;
|
||||
|
||||
/* DTLS 1.3: Sequence number masking context. */
|
||||
SSLMaskingContext *maskContext;
|
||||
|
||||
/* DTLS 1.3: Count of decryption failures for the given key. */
|
||||
PRUint64 deprotectionFailures;
|
||||
};
|
||||
|
||||
typedef void (*sslCipherSpecChangedFunc)(void *arg,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue