Esempio n. 1
0
        // Normally should be private, may need to be public for our purposes
        public IKey GetKey()
        {
            // Pull key and reform it into a key
            var jsonKey = _storageHelper.GetItem <byte[]>(_keyAlias);
            var key     = new SecretKeySpec(jsonKey, 0, jsonKey.Length, TRANSFORMATION);

            return(key);
        }
Esempio n. 2
0
        private IKey GetKey()
        {
            // Reform key object
            var jsonKey = _storageHelper.GetItem <byte[]>(_keyAlias);
            var key     = new SecretKeySpec(jsonKey, 0, jsonKey.Length, TRANSFORMATION);

            return(key);
        }