internal static void DecryptRsaKey(JToken key, Keychain keychain) { keychain.Add(RsaKey.Parse(Decrypt(key, keychain))); }
internal static JObject Decrypt(JToken json, Keychain keychain) { return(JObject.Parse(keychain.Decrypt(Encrypted.Parse(json)).ToUtf8())); }
internal static void DecryptKeyset(JToken keyset, Keychain keychain) { DecryptAesKey(keyset.At("encSymKey"), keychain); DecryptRsaKey(keyset.At("encPriKey"), keychain); }