Google is committed to advancing racial equity for Black communities. See how.

nl::Weave::SecuritySupport::PasscodeEncryptionSupport

Summary

Public static functions

decryptPasscode(JNIEnv *env, jclass cls, jbyteArray encryptedPasscode, jbyteArray encKey, jbyteArray authKey, jbyteArray fingerprintKey)
jstring
encryptPasscode(JNIEnv *env, jclass cls, jint config, jint keyId, jlong nonce, jstring passcode, jbyteArray encKey, jbyteArray authKey, jbyteArray fingerprintKey)
jbyteArray
getEncryptedPasscodeConfig(JNIEnv *env, jclass cls, jbyteArray encryptedPasscode)
jint
getEncryptedPasscodeFingerprint(JNIEnv *env, jclass cls, jbyteArray encryptedPasscode)
jbyteArray
getEncryptedPasscodeKeyId(JNIEnv *env, jclass cls, jbyteArray encryptedPasscode)
jint
getEncryptedPasscodeNonce(JNIEnv *env, jclass cls, jbyteArray encryptedPasscode)
jlong
isSupportedPasscodeEncryptionConfig(JNIEnv *env, jclass cls, jint config)
jboolean

Public static functions

decryptPasscode

jstring decryptPasscode(
  JNIEnv *env,
  jclass cls,
  jbyteArray encryptedPasscode,
  jbyteArray encKey,
  jbyteArray authKey,
  jbyteArray fingerprintKey
)

encryptPasscode

jbyteArray encryptPasscode(
  JNIEnv *env,
  jclass cls,
  jint config,
  jint keyId,
  jlong nonce,
  jstring passcode,
  jbyteArray encKey,
  jbyteArray authKey,
  jbyteArray fingerprintKey
)

getEncryptedPasscodeConfig

jint getEncryptedPasscodeConfig(
  JNIEnv *env,
  jclass cls,
  jbyteArray encryptedPasscode
)

getEncryptedPasscodeFingerprint

jbyteArray getEncryptedPasscodeFingerprint(
  JNIEnv *env,
  jclass cls,
  jbyteArray encryptedPasscode
)

getEncryptedPasscodeKeyId

jint getEncryptedPasscodeKeyId(
  JNIEnv *env,
  jclass cls,
  jbyteArray encryptedPasscode
)

getEncryptedPasscodeNonce

jlong getEncryptedPasscodeNonce(
  JNIEnv *env,
  jclass cls,
  jbyteArray encryptedPasscode
)

isSupportedPasscodeEncryptionConfig

jboolean isSupportedPasscodeEncryptionConfig(
  JNIEnv *env,
  jclass cls,
  jint config
)