NLWeavePasscodeEncryptionSupport
#include <src/device-manager/cocoa/NLWeavePasscodeEncryptionSupport.h>
用於 C++ 的 PIN 碼加密/解密功能的包裝函式。
摘要
繼承
繼承自: NSObject
公開的靜態函式 |
|
---|---|
decryptPasscode:config:encKey:authKey:fingerprintKey:error:(NSData *encPasscode, UInt8 config, NSData *encKey, NSData *authKey, NSData *fingerprintKey, NSError **errOut)
|
virtual nullable NSData *
將使用 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 *
使用 Nest 密碼加密機制將密碼加密。
|
getEncryptedPasscodeConfig:config:error:(NSData *encPasscode, UInt8 *configOut, NSError **errOut)
|
virtual BOOL
從加密的密碼中擷取設定類型。
|
getEncryptedPasscodeFingerprint:error:(NSData *encPasscode, NSError **errOut)
|
virtual nullable NSData *
從加密的密碼中擷取指紋。
|
getEncryptedPasscodeKeyId:keyId:error:(NSData *encPasscode, UInt32 *keyIdOut, NSError **errOut)
|
virtual BOOL
從加密的密碼中擷取金鑰 ID。
|
getEncryptedPasscodeNonce:nonce:error:(NSData *encPasscode, UInt32 *nonceOut, NSError **errOut)
|
virtual BOOL
從加密的密碼中擷取 Nonce 值。
|
isSupportedPasscodeEncryptionConfig:(UInt8 config)
|
virtual BOOL
判斷是否支援指定的密碼加密設定。
|
公開的靜態函式
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 )
將使用 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 )
使用 Nest 密碼加密機制將密碼加密。
getEncryptedPasscodeConfig:config:error:
virtual BOOL getEncryptedPasscodeConfig:config:error:( NSData *encPasscode, UInt8 *configOut, NSError **errOut )
從加密的密碼中擷取設定類型。
getEncryptedPasscodeFingerprint:error:
virtual nullable NSData * getEncryptedPasscodeFingerprint:error:( NSData *encPasscode, NSError **errOut )
從加密的密碼中擷取指紋。
getEncryptedPasscodeKeyId:keyId:error:
virtual BOOL getEncryptedPasscodeKeyId:keyId:error:( NSData *encPasscode, UInt32 *keyIdOut, NSError **errOut )
從加密的密碼中擷取金鑰 ID。
getEncryptedPasscodeNonce:nonce:error:
virtual BOOL getEncryptedPasscodeNonce:nonce:error:( NSData *encPasscode, UInt32 *nonceOut, NSError **errOut )
從加密的密碼中擷取 Nonce 值。
isSupportedPasscodeEncryptionConfig:
virtual BOOL isSupportedPasscodeEncryptionConfig:( UInt8 config )
判斷是否支援指定的密碼加密設定。