예제 #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);
        }