-
-
Notifications
You must be signed in to change notification settings - Fork 952
Add padding when encrypt and remove padding when decrypt #1545
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
56d5254
79ff9a3
84c3a8d
0303aa9
95bd7fd
8c566f5
47cfe86
0f98ada
629a3d1
204c5d0
11e543c
45ff664
543b3f2
71bb4a3
2c31a72
7ea5fd8
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -54,5 +54,12 @@ public byte[] Pad(byte[] input, int paddinglength) | |
/// The padded data array. | ||
/// </returns> | ||
public abstract byte[] Pad(byte[] input, int offset, int length, int paddinglength); | ||
|
||
/// <summary> | ||
/// Gets the padd count from the specified input. | ||
/// </summary> | ||
/// <param name="input">The input.</param> | ||
/// <returns>The padd count.</returns> | ||
public abstract int PadCount(byte[] input); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We can consider replacing There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. yes, I think we should take this opportunity to delete the useless There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Let me have a try There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Just had a quick look. It would be easier to remove it in my next PR #1546. |
||
} | ||
} |
Uh oh!
There was an error while loading. Please reload this page.