Skip to content

Commit

Permalink
Add setter for crypto key, IV.
Browse files Browse the repository at this point in the history
  • Loading branch information
10sa committed Apr 15, 2019
1 parent 9c3c449 commit 2bf5338
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions SecureStream/CryptoMemoryStream.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@ public class CryptoMemoryStream : MemoryStream
/// <summary>
/// 암호화 작업에 사용되는 암호화 키입니다.
/// </summary>
public byte[] Key { get { return aesManaged.Key; } }
public byte[] Key { get { return aesManaged.Key; } set { aesManaged.Key = value; } }

/// <summary>
/// 암호화 작업에 사용되는 초기화 벡터입니다.
/// </summary>
public byte[] IV { get { return aesManaged.IV; } }
public byte[] IV { get { return aesManaged.IV; } set { aesManaged.IV = value; } }

private ICryptoTransform cryptor;

Expand Down

0 comments on commit 2bf5338

Please sign in to comment.