NLWeavePasscodeEncryptionSupport

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

用于实现 PIN 码加密/解密功能的 C++ 实现的封装容器。

摘要

继承

继承自 :NSObject

公共静态函数

decryptPasscode:config:encKey:authKey:fingerprintKey:error:(NSData *encPasscode, UInt8 config, NSData *encKey, NSData *authKey, NSData *fingerprintKey, NSError **errOut)
virtual nullable NSData *
解密使用 Nest Passcode 加密方案加密的密码。
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 Passcode 加密方案加密的密码。

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
)

确定是否支持指定的密码加密配置。