title: crypt library and block size
body: <p>I am using a <strong>128-bit AES</strong> symmetric-key encryption function that was given to me. I keep getting this seg fault while decrypting:</p>
  
  <blockquote>
    <p>:error:0606506D:lib(6):func(101):reason(109):evp_enc.c:518:</p>
  </blockquote>
  
  <p>At first when testing encrypting/decrypting together, I would get this error because my buffer to store the encryption and decryption wasn't large enough. Please help me troubleshoot: </p>
  
  <ol>
  <li><p>When storing the key (using fgets), for some reason the char array to store it required size 34 instead of 33 (i dont think this is the problem but who knows)</p></li>
  <li><p>the formatting i'm using to decrypt is wrong (I am pretty sure it requires raw binary, ive tried hex as well)</p></li>
  <li><p>something else is messing with the block size.</p></li>
  </ol>
  
  <p>What else could this be from? </p>