nl:: بافت:: رمزگذاری
این فضای نام شامل تمام رابطهای درون Weave برای پشتیبانی رمزنگاری مشترک است.
خلاصه
شمارش ها | |
---|---|
X963EncodedPointFormat | شمارش |
Typedefs | |
---|---|
AES128CTRDRBG | typedef |
AES128CTRMode | typedef |
AES256CTRMode | typedef |
EntropyFunct )(uint8_t *buf, size_t bufSize) | typedefint(* امضای تابعی که برای جمع آوری داده های تصادفی از منبع آنتروپی استفاده می شود. |
HKDFSHA1 | typedef |
HKDFSHA256 | typedef |
HMACSHA1 | typedef |
HMACSHA256 | typedef |
کارکرد | |
---|---|
ClearSecretData (uint8_t *buf, uint32_t len) | NL_DLL_EXPORT void اولین بایت های len از buf ناحیه حافظه را پاک می کند. |
ConstantTimeCompare (const uint8_t *buf1, const uint8_t *buf2, uint16_t len) | bool اولین بایت های len ناحیه حافظه buf1 و ناحیه حافظه buf2 را مقایسه می کند. |
DecodeBIGNUMValueLE (BIGNUM & val, uint16_t size, const uint8_t *& p) | |
DecodeECDSASignature (const EncodedECDSASignature & encodedSig, ECDSA_SIG *& sig) | |
DecodeECKey (OID curveOID, const EncodedECPrivateKey *encodedPrivKey, const EncodedECPublicKey *encodedPubKey, EC_KEY *& ecKey) | NL_DLL_EXPORT WEAVE_ERROR |
DecodeX962ECPoint (const uint8_t *encodedPoint, uint16_t encodedPointLen, EC_GROUP *group, EC_POINT *& point) | NL_DLL_EXPORT WEAVE_ERROR |
DecodeX962ECPoint (const uint8_t *encodedPoint, uint16_t encodedPointLen, BIGNUM *& x, BIGNUM *& y) | |
ECDHComputeSharedSecret (OID curveOID, const EC_GROUP *ecGroup, const EC_POINT *pubKeyPoint, const BIGNUM *privKeyBN, uint8_t *sharedSecretBuf, uint16_t sharedSecretBufSize, uint16_t & sharedSecretLen) | NL_DLL_EXPORT WEAVE_ERROR |
ECDHComputeSharedSecret (OID curveOID, const EncodedECPublicKey & encodedPubKey, const EncodedECPrivateKey & encodedPrivKey, uint8_t *sharedSecretBuf, uint16_t sharedSecretBufSize, uint16_t & sharedSecretLen) | |
ECDSASigToFixedLenSig (OID curveOID, const ECDSA_SIG *ecSig, uint8_t *fixedLenSig) | |
ECDSA_SIG_get0 (const ECDSA_SIG *sig, const BIGNUM **pr, const BIGNUM **ps) | void |
ECDSA_SIG_set0 (ECDSA_SIG *sig, BIGNUM *r, BIGNUM *s) | int |
EncodeBIGNUMValueLE (const BIGNUM & val, uint16_t size, uint8_t *& p) | |
EncodeECDSASignature (const ECDSA_SIG *sig, EncodedECDSASignature & encodedSig) | |
EncodeX962ECPoint (OID curveOID, EC_GROUP *ecGroup, const EC_POINT *point, uint8_t *buf, uint16_t bufSize, uint16_t & encodedPointLen) | NL_DLL_EXPORT WEAVE_ERROR |
FixedLenSigToECDSASig (OID curveOID, const uint8_t *fixedLenSig, ECDSA_SIG *& ecSig) | |
GenerateAndEncodeWeaveHMACSignature (OID sigAlgoOID, TLVWriter & writer, uint64_t tag, const uint8_t *data, uint16_t dataLen, const uint8_t *key, uint16_t keyLen) | امضای Weave HMAC را تولید و کدگذاری کنید. |
GenerateAndEncodeWeaveRSASignature (OID sigAlgoOID, TLVWriter & writer, uint64_t tag, const uint8_t *hash, uint8_t hashLen, const uint8_t *keyDER, uint16_t keyDERLen) | امضای Weave RSA را تولید و کدگذاری کنید. |
GenerateECDHKey (OID curveOID, EncodedECPublicKey & encodedPubKey, EncodedECPrivateKey & encodedPrivKey) | |
GenerateECDSASignature (OID curveOID, const uint8_t *msgHash, uint8_t msgHashLen, const EncodedECPrivateKey & encodedPrivKey, EncodedECDSASignature & encodedSig) | |
GenerateECDSASignature (OID curveOID, const uint8_t *msgHash, uint8_t msgHashLen, const EncodedECPrivateKey & encodedPrivKey, uint8_t *fixedLenSig) | |
GetCurveG (OID curveOID, EncodedECPublicKey & encodedPubKey) | |
GetCurveSize (const OID curveOID, const EC_GROUP *ecGroup) | int |
GetCurveSize (const OID curveOID) | int اندازه منحنی بیضوی (به بایت) را دریافت کنید. |
GetECGroupForCurve (OID curveOID, EC_GROUP *& ecGroup) | NL_DLL_EXPORT WEAVE_ERROR |
ReverseBytes (uint8_t *buf, size_t len) | void |
ShaNIDFromSigAlgoOID (OID sigAlgoOID) | int |
VerifyECDSASignature (OID curveOID, const uint8_t *msgHash, uint8_t msgHashLen, const EncodedECDSASignature & encodedSig, const EncodedECPublicKey & encodedPubKey) | |
VerifyECDSASignature (OID curveOID, const uint8_t *msgHash, uint8_t msgHashLen, const uint8_t *fixedLenSig, const EncodedECPublicKey & encodedPubKey) | |
VerifyHMACSignature (OID sigAlgoOID, const uint8_t *data, uint16_t dataLen, const EncodedHMACSignature & sig, const uint8_t *key, uint16_t keyLen) | امضای Weave HMAC را تأیید کنید. |
VerifyRSASignature (OID sigAlgoOID, const uint8_t *hash, uint8_t hashLen, const EncodedRSASignature & sig, const uint8_t *certDER, uint16_t certDERLen) | امضای Weave RSA را تأیید کنید. |
شمارش ها
X963EncodedPointFormat
X963EncodedPointFormat
Typedefs
AES128CTDRBG
CTR_DRBG< Platform::Security::AES128BlockCipherEnc > AES128CTRDRBG
حالت AES128CTRM
CTRMode< Platform::Security::AES128BlockCipherEnc > AES128CTRMode
حالت AES256CTRM
CTRMode< Platform::Security::AES256BlockCipherEnc > AES256CTRMode
EntropyFunct
int(* EntropyFunct)(uint8_t *buf, size_t bufSize)
امضای تابعی که برای جمع آوری داده های تصادفی از منبع آنتروپی استفاده می شود.
HKDFSHA1
HKDF< Platform::Security::SHA1 > HKDFSHA1
HKDFSHA256
HKDF< Platform::Security::SHA256 > HKDFSHA256
HMACSHA1
HMAC< Platform::Security::SHA1 > HMACSHA1
HMACSHA256
HMAC< Platform::Security::SHA256 > HMACSHA256
کارکرد
ClearSecretData
NL_DLL_EXPORT void ClearSecretData( uint8_t *buf, uint32_t len )
اولین بایت های len
از buf
ناحیه حافظه را پاک می کند.
در این پیاده سازی ابتدا بایت های len
از حافظه buf
با صفر پر می شوند.
جزئیات | |||||
---|---|---|---|---|---|
مولفه های |
|
ConstantTimeCompare
bool ConstantTimeCompare( const uint8_t *buf1, const uint8_t *buf2, uint16_t len )
اولین بایت های len
ناحیه حافظه buf1
و ناحیه حافظه buf2
را مقایسه می کند.
زمان صرف شده توسط این تابع مستقل از داده های مناطق حافظه buf1
و buf2
است.
جزئیات | |||||||
---|---|---|---|---|---|---|---|
مولفه های |
| ||||||
ارزش های بازگشتی |
|
رمزگشاییBIGNUMValueLE
WEAVE_ERROR DecodeBIGNUMValueLE( BIGNUM & val, uint16_t size, const uint8_t *& p )
رمزگشاییECDSASامضا
WEAVE_ERROR DecodeECDSASignature( const EncodedECDSASignature & encodedSig, ECDSA_SIG *& sig )
DecodeECKey
NL_DLL_EXPORT WEAVE_ERROR DecodeECKey( OID curveOID, const EncodedECPrivateKey *encodedPrivKey, const EncodedECPublicKey *encodedPubKey, EC_KEY *& ecKey )
DecodeX962ECPoint
NL_DLL_EXPORT WEAVE_ERROR DecodeX962ECPoint( const uint8_t *encodedPoint, uint16_t encodedPointLen, EC_GROUP *group, EC_POINT *& point )
DecodeX962ECPoint
WEAVE_ERROR DecodeX962ECPoint( const uint8_t *encodedPoint, uint16_t encodedPointLen, BIGNUM *& x, BIGNUM *& y )
ECDHComputeSharedSecret
NL_DLL_EXPORT WEAVE_ERROR ECDHComputeSharedSecret( OID curveOID, const EC_GROUP *ecGroup, const EC_POINT *pubKeyPoint, const BIGNUM *privKeyBN, uint8_t *sharedSecretBuf, uint16_t sharedSecretBufSize, uint16_t & sharedSecretLen )
ECDHComputeSharedSecret
WEAVE_ERROR ECDHComputeSharedSecret( OID curveOID, const EncodedECPublicKey & encodedPubKey, const EncodedECPrivateKey & encodedPrivKey, uint8_t *sharedSecretBuf, uint16_t sharedSecretBufSize, uint16_t & sharedSecretLen )
ECDSASigToFixedLenSig
WEAVE_ERROR ECDSASigToFixedLenSig( OID curveOID, const ECDSA_SIG *ecSig, uint8_t *fixedLenSig )
ECDSA_SIG_get0
void ECDSA_SIG_get0( const ECDSA_SIG *sig, const BIGNUM **pr, const BIGNUM **ps )
ECDSA_SIG_set0
int ECDSA_SIG_set0( ECDSA_SIG *sig, BIGNUM *r, BIGNUM *s )
EncodeBIGNUMValueLE
WEAVE_ERROR EncodeBIGNUMValueLE( const BIGNUM & val, uint16_t size, uint8_t *& p )
EncodeECDSASsignature
WEAVE_ERROR EncodeECDSASignature( const ECDSA_SIG *sig, EncodedECDSASignature & encodedSig )
EncodeX962ECPoint
NL_DLL_EXPORT WEAVE_ERROR EncodeX962ECPoint( OID curveOID, EC_GROUP *ecGroup, const EC_POINT *point, uint8_t *buf, uint16_t bufSize, uint16_t & encodedPointLen )
FixedLenSigToECDSASig
WEAVE_ERROR FixedLenSigToECDSASig( OID curveOID, const uint8_t *fixedLenSig, ECDSA_SIG *& ecSig )
GenerateAndEncodeWeaveHMACSignature
WEAVE_ERROR GenerateAndEncodeWeaveHMACSignature( OID sigAlgoOID, TLVWriter & writer, uint64_t tag, const uint8_t *data, uint16_t dataLen, const uint8_t *key, uint16_t keyLen )
امضای Weave HMAC را تولید و کدگذاری کنید.
یک امضای HMAC را برای یک داده معین با استفاده از کلید مخفی محاسبه می کند و امضا را به عنوان ساختار Weave HMACSignature در رایتر TLV مشخص شده با تگ داده شده می نویسد.
جزئیات | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
مولفه های |
| ||||||||||||||
ارزش های بازگشتی |
|
GenerateAndEncodeWeaveRSASignature
WEAVE_ERROR GenerateAndEncodeWeaveRSASignature( OID sigAlgoOID, TLVWriter & writer, uint64_t tag, const uint8_t *hash, uint8_t hashLen, const uint8_t *keyDER, uint16_t keyDERLen )
امضای Weave RSA را تولید و کدگذاری کنید.
یک امضای RSA را با استفاده از یک کلید خصوصی رمزگذاری شده X509 RSA و هش پیام محاسبه می کند و امضا را به عنوان ساختار Weave RSASignature برای نویسنده TLV مشخص شده با تگ داده شده می نویسد.
جزئیات | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
مولفه های |
| ||||||||||||||
ارزش های بازگشتی |
|
GenerateECDHKey
WEAVE_ERROR GenerateECDHKey( OID curveOID, EncodedECPublicKey & encodedPubKey, EncodedECPrivateKey & encodedPrivKey )
امضایECDSAS را ایجاد کنید
WEAVE_ERROR GenerateECDSASignature( OID curveOID, const uint8_t *msgHash, uint8_t msgHashLen, const EncodedECPrivateKey & encodedPrivKey, EncodedECDSASignature & encodedSig )
امضایECDSAS را ایجاد کنید
WEAVE_ERROR GenerateECDSASignature( OID curveOID, const uint8_t *msgHash, uint8_t msgHashLen, const EncodedECPrivateKey & encodedPrivKey, uint8_t *fixedLenSig )
GetCurveG
WEAVE_ERROR GetCurveG( OID curveOID, EncodedECPublicKey & encodedPubKey )
GetCurveSize
int GetCurveSize( const OID curveOID, const EC_GROUP *ecGroup )
GetCurveSize
int GetCurveSize( const OID curveOID )
اندازه منحنی بیضوی (به بایت) را دریافت کنید.
جزئیات | |||
---|---|---|---|
مولفه های |
| ||
ارزش های بازگشتی |
|
GetECGroupForCurve
NL_DLL_EXPORT WEAVE_ERROR GetECGroupForCurve( OID curveOID, EC_GROUP *& ecGroup )
ReverseBytes
void ReverseBytes( uint8_t *buf, size_t len )
ShaNIDFromSigAlgoOID
int ShaNIDFromSigAlgoOID( OID sigAlgoOID )
تأیید ECDSASامضا
WEAVE_ERROR VerifyECDSASignature( OID curveOID, const uint8_t *msgHash, uint8_t msgHashLen, const EncodedECDSASignature & encodedSig, const EncodedECPublicKey & encodedPubKey )
تأیید ECDSASامضا
WEAVE_ERROR VerifyECDSASignature( OID curveOID, const uint8_t *msgHash, uint8_t msgHashLen, const uint8_t *fixedLenSig, const EncodedECPublicKey & encodedPubKey )
تأیید HMACS امضا
WEAVE_ERROR VerifyHMACSignature( OID sigAlgoOID, const uint8_t *data, uint16_t dataLen, const EncodedHMACSignature & sig, const uint8_t *key, uint16_t keyLen )
امضای Weave HMAC را تأیید کنید.
امضای HMAC را با استفاده از داده های داده شده و یک کلید مخفی برای تأیید امضا تأیید می کند.
جزئیات | |||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
مولفه های |
| ||||||||||||
ارزش های بازگشتی |
|
VerifyRSASsignature
WEAVE_ERROR VerifyRSASignature( OID sigAlgoOID, const uint8_t *hash, uint8_t hashLen, const EncodedRSASignature & sig, const uint8_t *certDER, uint16_t certDERLen )
امضای Weave RSA را تأیید کنید.
یک امضای RSA را با استفاده از هش دادهها و یک گواهی RSA رمزگذاریشده X509 حاوی کلید عمومی برای تأیید امضا تأیید میکند.
جزئیات | |||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
مولفه های |
| ||||||||||||
ارزش های بازگشتی |
|
nl:: بافت:: رمزگذاری
این فضای نام شامل تمام رابطهای درون Weave برای پشتیبانی رمزنگاری مشترک است.
خلاصه
شمارش ها | |
---|---|
X963EncodedPointFormat | شمارش |
Typedefs | |
---|---|
AES128CTRDRBG | typedef |
AES128CTRMode | typedef |
AES256CTRMode | typedef |
EntropyFunct )(uint8_t *buf, size_t bufSize) | typedefint(* امضای تابعی که برای جمع آوری داده های تصادفی از منبع آنتروپی استفاده می شود. |
HKDFSHA1 | typedef |
HKDFSHA256 | typedef |
HMACSHA1 | typedef |
HMACSHA256 | typedef |
کارکرد | |
---|---|
ClearSecretData (uint8_t *buf, uint32_t len) | NL_DLL_EXPORT void اولین بایت های len از buf ناحیه حافظه را پاک می کند. |
ConstantTimeCompare (const uint8_t *buf1, const uint8_t *buf2, uint16_t len) | bool اولین بایت های len ناحیه حافظه buf1 و ناحیه حافظه buf2 را مقایسه می کند. |
DecodeBIGNUMValueLE (BIGNUM & val, uint16_t size, const uint8_t *& p) | |
DecodeECDSASignature (const EncodedECDSASignature & encodedSig, ECDSA_SIG *& sig) | |
DecodeECKey (OID curveOID, const EncodedECPrivateKey *encodedPrivKey, const EncodedECPublicKey *encodedPubKey, EC_KEY *& ecKey) | NL_DLL_EXPORT WEAVE_ERROR |
DecodeX962ECPoint (const uint8_t *encodedPoint, uint16_t encodedPointLen, EC_GROUP *group, EC_POINT *& point) | NL_DLL_EXPORT WEAVE_ERROR |
DecodeX962ECPoint (const uint8_t *encodedPoint, uint16_t encodedPointLen, BIGNUM *& x, BIGNUM *& y) | |
ECDHComputeSharedSecret (OID curveOID, const EC_GROUP *ecGroup, const EC_POINT *pubKeyPoint, const BIGNUM *privKeyBN, uint8_t *sharedSecretBuf, uint16_t sharedSecretBufSize, uint16_t & sharedSecretLen) | NL_DLL_EXPORT WEAVE_ERROR |
ECDHComputeSharedSecret (OID curveOID, const EncodedECPublicKey & encodedPubKey, const EncodedECPrivateKey & encodedPrivKey, uint8_t *sharedSecretBuf, uint16_t sharedSecretBufSize, uint16_t & sharedSecretLen) | |
ECDSASigToFixedLenSig (OID curveOID, const ECDSA_SIG *ecSig, uint8_t *fixedLenSig) | |
ECDSA_SIG_get0 (const ECDSA_SIG *sig, const BIGNUM **pr, const BIGNUM **ps) | void |
ECDSA_SIG_set0 (ECDSA_SIG *sig, BIGNUM *r, BIGNUM *s) | int |
EncodeBIGNUMValueLE (const BIGNUM & val, uint16_t size, uint8_t *& p) | |
EncodeECDSASignature (const ECDSA_SIG *sig, EncodedECDSASignature & encodedSig) | |
EncodeX962ECPoint (OID curveOID, EC_GROUP *ecGroup, const EC_POINT *point, uint8_t *buf, uint16_t bufSize, uint16_t & encodedPointLen) | NL_DLL_EXPORT WEAVE_ERROR |
FixedLenSigToECDSASig (OID curveOID, const uint8_t *fixedLenSig, ECDSA_SIG *& ecSig) | |
GenerateAndEncodeWeaveHMACSignature (OID sigAlgoOID, TLVWriter & writer, uint64_t tag, const uint8_t *data, uint16_t dataLen, const uint8_t *key, uint16_t keyLen) | امضای Weave HMAC را تولید و کدگذاری کنید. |
GenerateAndEncodeWeaveRSASignature (OID sigAlgoOID, TLVWriter & writer, uint64_t tag, const uint8_t *hash, uint8_t hashLen, const uint8_t *keyDER, uint16_t keyDERLen) | امضای Weave RSA را تولید و کدگذاری کنید. |
GenerateECDHKey (OID curveOID, EncodedECPublicKey & encodedPubKey, EncodedECPrivateKey & encodedPrivKey) | |
GenerateECDSASignature (OID curveOID, const uint8_t *msgHash, uint8_t msgHashLen, const EncodedECPrivateKey & encodedPrivKey, EncodedECDSASignature & encodedSig) | |
GenerateECDSASignature (OID curveOID, const uint8_t *msgHash, uint8_t msgHashLen, const EncodedECPrivateKey & encodedPrivKey, uint8_t *fixedLenSig) | |
GetCurveG (OID curveOID, EncodedECPublicKey & encodedPubKey) | |
GetCurveSize (const OID curveOID, const EC_GROUP *ecGroup) | int |
GetCurveSize (const OID curveOID) | int اندازه منحنی بیضوی (به بایت) را دریافت کنید. |
GetECGroupForCurve (OID curveOID, EC_GROUP *& ecGroup) | NL_DLL_EXPORT WEAVE_ERROR |
ReverseBytes (uint8_t *buf, size_t len) | void |
ShaNIDFromSigAlgoOID (OID sigAlgoOID) | int |
VerifyECDSASignature (OID curveOID, const uint8_t *msgHash, uint8_t msgHashLen, const EncodedECDSASignature & encodedSig, const EncodedECPublicKey & encodedPubKey) | |
VerifyECDSASignature (OID curveOID, const uint8_t *msgHash, uint8_t msgHashLen, const uint8_t *fixedLenSig, const EncodedECPublicKey & encodedPubKey) | |
VerifyHMACSignature (OID sigAlgoOID, const uint8_t *data, uint16_t dataLen, const EncodedHMACSignature & sig, const uint8_t *key, uint16_t keyLen) | امضای Weave HMAC را تأیید کنید. |
VerifyRSASignature (OID sigAlgoOID, const uint8_t *hash, uint8_t hashLen, const EncodedRSASignature & sig, const uint8_t *certDER, uint16_t certDERLen) | امضای Weave RSA را تأیید کنید. |
شمارش ها
X963EncodedPointFormat
X963EncodedPointFormat
Typedefs
AES128CTDRBG
CTR_DRBG< Platform::Security::AES128BlockCipherEnc > AES128CTRDRBG
حالت AES128CTRM
CTRMode< Platform::Security::AES128BlockCipherEnc > AES128CTRMode
حالت AES256CTRM
CTRMode< Platform::Security::AES256BlockCipherEnc > AES256CTRMode
EntropyFunct
int(* EntropyFunct)(uint8_t *buf, size_t bufSize)
امضای تابعی که برای جمع آوری داده های تصادفی از منبع آنتروپی استفاده می شود.
HKDFSHA1
HKDF< Platform::Security::SHA1 > HKDFSHA1
HKDFSHA256
HKDF< Platform::Security::SHA256 > HKDFSHA256
HMACSHA1
HMAC< Platform::Security::SHA1 > HMACSHA1
HMACSHA256
HMAC< Platform::Security::SHA256 > HMACSHA256
کارکرد
ClearSecretData
NL_DLL_EXPORT void ClearSecretData( uint8_t *buf, uint32_t len )
اولین بایت های len
از buf
ناحیه حافظه را پاک می کند.
در این پیاده سازی ابتدا بایت های len
از حافظه buf
با صفر پر می شوند.
جزئیات | |||||
---|---|---|---|---|---|
مولفه های |
|
ConstantTimeCompare
bool ConstantTimeCompare( const uint8_t *buf1, const uint8_t *buf2, uint16_t len )
اولین بایت های len
ناحیه حافظه buf1
و ناحیه حافظه buf2
را مقایسه می کند.
زمان صرف شده توسط این تابع مستقل از داده های مناطق حافظه buf1
و buf2
است.
جزئیات | |||||||
---|---|---|---|---|---|---|---|
مولفه های |
| ||||||
ارزش های بازگشتی |
|
رمزگشاییBIGNUMValueLE
WEAVE_ERROR DecodeBIGNUMValueLE( BIGNUM & val, uint16_t size, const uint8_t *& p )
رمزگشاییECDSASامضا
WEAVE_ERROR DecodeECDSASignature( const EncodedECDSASignature & encodedSig, ECDSA_SIG *& sig )
DecodeECKey
NL_DLL_EXPORT WEAVE_ERROR DecodeECKey( OID curveOID, const EncodedECPrivateKey *encodedPrivKey, const EncodedECPublicKey *encodedPubKey, EC_KEY *& ecKey )
DecodeX962ECPoint
NL_DLL_EXPORT WEAVE_ERROR DecodeX962ECPoint( const uint8_t *encodedPoint, uint16_t encodedPointLen, EC_GROUP *group, EC_POINT *& point )
DecodeX962ECPoint
WEAVE_ERROR DecodeX962ECPoint( const uint8_t *encodedPoint, uint16_t encodedPointLen, BIGNUM *& x, BIGNUM *& y )
ECDHComputeSharedSecret
NL_DLL_EXPORT WEAVE_ERROR ECDHComputeSharedSecret( OID curveOID, const EC_GROUP *ecGroup, const EC_POINT *pubKeyPoint, const BIGNUM *privKeyBN, uint8_t *sharedSecretBuf, uint16_t sharedSecretBufSize, uint16_t & sharedSecretLen )
ECDHComputeSharedSecret
WEAVE_ERROR ECDHComputeSharedSecret( OID curveOID, const EncodedECPublicKey & encodedPubKey, const EncodedECPrivateKey & encodedPrivKey, uint8_t *sharedSecretBuf, uint16_t sharedSecretBufSize, uint16_t & sharedSecretLen )
ECDSASigToFixedLenSig
WEAVE_ERROR ECDSASigToFixedLenSig( OID curveOID, const ECDSA_SIG *ecSig, uint8_t *fixedLenSig )
ECDSA_SIG_get0
l10n-placeholder20ECDSA_SIG_set0
l10n-placeholder21EncodeBIGNUMValueLE
l10n-placeholder22EncodeECDSASsignature
l10n-placeholder23EncodeX962ECPoint
l10n-placeholder24FixedLenSigToECDSASig
l10n-placeholder25GenerateAndEncodeWeaveHMACSignature
l10n-placeholder26امضای Weave HMAC را تولید و کدگذاری کنید.
یک امضای HMAC را برای یک داده معین با استفاده از کلید مخفی محاسبه می کند و امضا را به عنوان ساختار Weave HMACSignature در رایتر TLV مشخص شده با تگ داده شده می نویسد.
جزئیات | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
مولفه های |
| ||||||||||||||
ارزش های بازگشتی |
|
GenerateAndEncodeWeaveRSASignature
l10n-placeholder27امضای Weave RSA را تولید و کدگذاری کنید.
یک امضای RSA را با استفاده از یک کلید خصوصی رمزگذاری شده X509 RSA و هش پیام محاسبه می کند و امضا را به عنوان ساختار Weave RSASignature برای نویسنده TLV مشخص شده با تگ داده شده می نویسد.
جزئیات | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
مولفه های |
| ||||||||||||||
ارزش های بازگشتی |
|
GenerateECDHKey
l10n-placeholder28امضایECDSAS را ایجاد کنید
l10n-placeholder29امضایECDSAS را ایجاد کنید
l10n-placeholder30GetCurveG
l10n-placeholder31GetCurveSize
l10n-placeholder32GetCurveSize
l10n-placeholder33اندازه منحنی بیضوی (به بایت) را دریافت کنید.
جزئیات | |||
---|---|---|---|
مولفه های |
| ||
ارزش های بازگشتی |
|
GetECGroupForCurve
l10n-placeholder34ReverseBytes
l10n-placeholder35ShaNIDFromSigAlgoOID
l10n-placeholder36تأیید ECDSASامضا
l10n-placeholder37تأیید ECDSASامضا
l10n-placeholder38تأیید HMACS امضا
l10n-placeholder39امضای Weave HMAC را تأیید کنید.
امضای HMAC را با استفاده از داده های داده شده و یک کلید مخفی برای تأیید امضا تأیید می کند.
جزئیات | |||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
مولفه های |
| ||||||||||||
ارزش های بازگشتی |
|
VerifyRSASsignature
l10n-placeholder40امضای Weave RSA را تأیید کنید.
یک امضای RSA را با استفاده از هش دادهها و یک گواهی RSA رمزگذاریشده X509 حاوی کلید عمومی برای تأیید امضا تأیید میکند.
جزئیات | |||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
مولفه های |
| ||||||||||||
ارزش های بازگشتی |
|
جز در مواردی که غیر از این ذکر شده باشد، محتوای این صفحه تحت مجوز Creative Commons Attribution 4.0 License است و نمونه کدها نیز دارای مجوز Apache 2.0 License است. برای اطلاع از جزئیات، به خطمشیهای سایت Google Developers مراجعه کنید. جاوا علامت تجاری ثبتشده Oracle و/یا شرکتهای وابسته به آن است. Thread علامت تجاری ثبتشده Thread Group, Inc است.
تاریخ آخرین بهروزرسانی 2022-08-30 بهوقت ساعت هماهنگ جهانی.