summary refs log tree commit diff
path: root/crypto/src/crypto/paddings/Pkcs7Padding.cs
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/src/crypto/paddings/Pkcs7Padding.cs')
-rw-r--r--crypto/src/crypto/paddings/Pkcs7Padding.cs23
1 files changed, 3 insertions, 20 deletions
diff --git a/crypto/src/crypto/paddings/Pkcs7Padding.cs b/crypto/src/crypto/paddings/Pkcs7Padding.cs

index 46d97c9eb..61355af34 100644 --- a/crypto/src/crypto/paddings/Pkcs7Padding.cs +++ b/crypto/src/crypto/paddings/Pkcs7Padding.cs
@@ -1,36 +1,19 @@ using System; -using Org.BouncyCastle.Crypto; using Org.BouncyCastle.Security; namespace Org.BouncyCastle.Crypto.Paddings { - /** - * A padder that adds Pkcs7/Pkcs5 padding to a block. - */ + /// <summary>A padder that adds PKCS7/PKCS5 padding to a block.</summary> public class Pkcs7Padding : IBlockCipherPadding { - /** - * Initialise the padder. - * - * @param random - a SecureRandom if available. - */ - public void Init( - SecureRandom random) + public void Init(SecureRandom random) { // nothing to do. } - /** - * Return the name of the algorithm the cipher implements. - * - * @return the name of the algorithm the cipher implements. - */ - public string PaddingName - { - get { return "PKCS7"; } - } + public string PaddingName => "PKCS7"; public int AddPadding(byte[] input, int inOff) {