コード例 #1
0
        public static sbyte[] DecryptSByteArray(
            this ICipher cipher,
            byte[] encrypted)
        {
            if (cipher == null)
            {
                throw new ArgumentNullException(nameof(cipher));
            }

            if (encrypted == null)
            {
                return(null);
            }

            return(FromByteArray.ToSByteArray(cipher.Decrypt(encrypted)));
        }