<div dir="auto">Hello team,<div dir="auto"><br></div><div dir="auto">           I am trying out Libgcrypt 1.85 APIs for AES 256 encryption in CBC mode on Fedora computer. I have a windows 10 computer on which I have installed oracle virtual box and running a Fedora OS machine in it. </div><div dir="auto"><br></div><div dir="auto">Firstly, I tried encryption and decryption on Fedora using Libgcrypt APIs. It worked so easy and Smooth with no error and data loss. </div><div dir="auto"><br></div><div dir="auto">Since nowadays cross platform capability has become a MUST point in software world, I am also trying to test encryption and encryption in cross platform scenario.</div><div dir="auto"><br></div><div dir="auto"> I am trying to encrypt file on fedora using Libgcrypt APIs, and decrypt that encrypted file on windows. </div><div dir="auto"><br></div><div dir="auto">On windows I am using Bcrypt library which also supports AES 256 in CBC mode. </div><div dir="auto"><br></div><div dir="auto">The problem I am facing right now is, I am getting an error from BcryptDecrypt() function on windows when I try to decrypt the file encrypted on Fedora box.</div><div dir="auto"><br></div><div dir="auto">Though the surprising thing is when I pass the entire encrypted file content all at once to BcryptDecrypt() it is able to decrypt the data correctly with no data loss, but it still returns error code "-1073741762 (0xC000003E) which means as" STATUS_DATA_ERROR" in windows.</div><div dir="auto"><br></div><div dir="auto">Hence, I wanted to check, if the Libgcrypt APIs are doing padding internally since I am not passing any such instruction to the Libgcrypt library explicitly? </div><div dir="auto"><br></div><div dir="auto">I am kind of stuck in this since 2 weeks now. I tried all possible things, checked endianess, byte size etc on both Fedora and windows computer. </div><div dir="auto"><br></div><div dir="auto">I need some help here to know internal behaviour if Libgcrypt library. </div><div dir="auto"><br></div><div dir="auto">Please help me. </div><div dir="auto"><br></div><div dir="auto">Thank you in advance. </div><div dir="auto"><br></div><div dir="auto">Best Regards,</div><div dir="auto">Mandar</div></div>