title: I encrypt data with 32 byte length using AES algorithm the result(cipher text) is 64 byte length,Is this valid?
body: <p>I implement this via java , BouncyCastle Provider
  use Block mode = ECB and Padding mode = PKCS7Padding</p>
  
  <p>I noticte that if i encrypt data that has 32 byte length(such as 61626162616261626162616261626162 which is hex value of abababababababab) i get 64 bytes length cipher text(f21ee0564ebd5274e10bf4590594b1e16a19592b917b19ee106f71d41d165289) is this cipher text valid? from what i read it look like if you encrypt less than 32 byte length data the algorithm will padding it to 32 byte length and produce a 32 byte length cipher text but if you put in exactly 32 byte length data shouldn't you receive the 32 byte length cipher text ,also if i put in data with more length than 32 byte it will padded to 64 byte cipher text correctly</p>
  
  <p>this is what my code look like :</p>
  
  <pre><code>    public static byte[] encrypt(byte[] plainText, byte[] keyBytes)
          throws GeneralSecurityException {
  
      SecretKeySpec key = new SecretKeySpec(keyBytes, "AES");
  
      Cipher cipher = Cipher.getInstance("AES/ECB/PKCS7Padding", "BC");
      cipher.init(Cipher.ENCRYPT_MODE, key);
  
      byte[] cipherText = cipher.doFinal(plainText);
  
      return cipherText;
  }
  </code></pre>
  
  <p>thx for your reply</p>