コード例 #1
0
ファイル: AESKey.cs プロジェクト: ls9512/USecurity
        public static string IV(string keyName)
        {
            var asset = USecurityInterface.Load(keyName) as AESKey;

            if (asset == null)
            {
                throw new NullReferenceException();
            }

            return(asset.iv);
        }
コード例 #2
0
ファイル: RSAKey.cs プロジェクト: ls9512/USecurity
        public static string PrivateKey(string keyName)
        {
            var asset = USecurityInterface.Load(keyName) as RSAKey;

            if (asset == null)
            {
                throw new NullReferenceException();
            }

            return(asset.privateKey);
        }