NLWeavePasscodeEncryptionSupport

#include <src/device-manager/cocoa/NLWeavePasscodeEncryptionSupport.h>

Kod do implementacji funkcji szyfrowania/odszyfrowywania kodem PIN w języku C++.

Podsumowanie

Dziedziczenie

Odziedziczy z: NSObject

Publiczne funkcje statyczne

decryptPasscode:config:encKey:authKey:fingerprintKey:error:(NSData *encPasscode, UInt8 config, NSData *encKey, NSData *authKey, NSData *fingerprintKey, NSError **errOut)
virtual nullable NSData *
Odszyfruj kod dostępu zaszyfrowany za pomocą schematu szyfrowania hasła Nest.
encryptPasscode:keyId:nonce:passcode:encKey:authKey:fingerprintKey:error:(UInt8 config, UInt32 keyId, UInt32 nonce, NSData *passcode, NSData *encKey, NSData *authKey, NSData *fingerprintKey, NSError **errOut)
virtual nullable NSData *
Zaszyfruj kod dostępu, korzystając ze schematu szyfrowania hasła Nest.
getEncryptedPasscodeConfig:config:error:(NSData *encPasscode, UInt8 *configOut, NSError **errOut)
virtual BOOL
Wyodrębnij typ konfiguracji z zaszyfrowanego kodu dostępu.
getEncryptedPasscodeFingerprint:error:(NSData *encPasscode, NSError **errOut)
virtual nullable NSData *
Wyodrębnij odcisk palca z zaszyfrowanego kodu dostępu.
getEncryptedPasscodeKeyId:keyId:error:(NSData *encPasscode, UInt32 *keyIdOut, NSError **errOut)
virtual BOOL
Wyodrębnij identyfikator klucza z zaszyfrowanego kodu dostępu.
getEncryptedPasscodeNonce:nonce:error:(NSData *encPasscode, UInt32 *nonceOut, NSError **errOut)
virtual BOOL
Wyodrębnij wartość jednorazową z zaszyfrowanego hasła.
isSupportedPasscodeEncryptionConfig:(UInt8 config)
virtual BOOL
Określa, czy określona konfiguracja szyfrowania hasłem jest obsługiwana.

Publiczne funkcje statyczne

decryptPasscode:config:encKey:authKey:fingerprintKey:error:

virtual nullable NSData * decryptPasscode:config:encKey:authKey:fingerprintKey:error:(
  NSData *encPasscode,
  UInt8 config,
  NSData *encKey,
  NSData *authKey,
  NSData *fingerprintKey,
  NSError **errOut
)

Odszyfruj kod dostępu zaszyfrowany za pomocą schematu szyfrowania hasła Nest.

encryptPasscode:keyId:nonce:passcode:encKey:authKey:fingerprintKey:error:

virtual nullable NSData * encryptPasscode:keyId:nonce:passcode:encKey:authKey:fingerprintKey:error:(
  UInt8 config,
  UInt32 keyId,
  UInt32 nonce,
  NSData *passcode,
  NSData *encKey,
  NSData *authKey,
  NSData *fingerprintKey,
  NSError **errOut
)

Zaszyfruj kod dostępu, korzystając ze schematu szyfrowania hasła Nest.

getEncryptedPasscodeConfig:config:error:

virtual BOOL getEncryptedPasscodeConfig:config:error:(
  NSData *encPasscode,
  UInt8 *configOut,
  NSError **errOut
)

Wyodrębnij typ konfiguracji z zaszyfrowanego kodu dostępu.

getEncryptedPasscodeOdcisk cyfrowy:błąd:

virtual nullable NSData * getEncryptedPasscodeFingerprint:error:(
  NSData *encPasscode,
  NSError **errOut
)

Wyodrębnij odcisk palca z zaszyfrowanego kodu dostępu.

getEncryptedPasscodeKeyId:keyId:error:

virtual BOOL getEncryptedPasscodeKeyId:keyId:error:(
  NSData *encPasscode,
  UInt32 *keyIdOut,
  NSError **errOut
)

Wyodrębnij identyfikator klucza z zaszyfrowanego kodu dostępu.

getEncryptedPasscodeNonce:nonce:error:

virtual BOOL getEncryptedPasscodeNonce:nonce:error:(
  NSData *encPasscode,
  UInt32 *nonceOut,
  NSError **errOut
)

Wyodrębnij wartość jednorazową z zaszyfrowanego hasła.

Parametr isSupportedPasscodeEncryptionConfig:

virtual BOOL isSupportedPasscodeEncryptionConfig:(
  UInt8 config
)

Określa, czy określona konfiguracja szyfrowania hasłem jest obsługiwana.