コード例 #1
0
 internal static void DecryptRsaKey(JToken key, Keychain keychain)
 {
     keychain.Add(RsaKey.Parse(Decrypt(key, keychain)));
 }
コード例 #2
0
 internal static JObject Decrypt(JToken json, Keychain keychain)
 {
     return(JObject.Parse(keychain.Decrypt(Encrypted.Parse(json)).ToUtf8()));
 }
コード例 #3
0
 internal static void DecryptKeyset(JToken keyset, Keychain keychain)
 {
     DecryptAesKey(keyset.At("encSymKey"), keychain);
     DecryptRsaKey(keyset.At("encPriKey"), keychain);
 }