GCM cipher decryption

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

Quick answer : as you probably noticed, IV, ciphertext and tag are expected
to be distinct buffers.
Consequently, ciphertext is just ciphertext (without IV or Tag).

Regards,

Michel.

-----Message d'origine-----
De?: openssl-users [mailto:openssl-users-bounces at openssl.org] De la part de
c.holper at ades.at
Envoy??: mardi 12 juillet 2016 17:48
??: openssl-users at openssl.org
Objet?: [openssl-users] GCM cipher decryption

Hi!

2 questions about GCM and the following OpenSSL-Sample please.

https://wiki.openssl.org/index.php/EVP_Authenticated_Encryption_and_Decrypti
on#Authenticated_Decryption_using_GCM_mode

and the function

int decrypt(unsigned char *ciphertext, int ciphertext_len, unsigned char
*aad, int aad_len, unsigned char *tag, unsigned char *key, unsigned char
*iv, unsigned char *plaintext)

* Is ciphertext the pure ciperhtext OR
is it with IV and TAG still in the string??

* If the 2nd: The IV is expected to be in front of the ciphertext and the
TAG is expected to be past of the ciphertext - correct?
| IV | ciphertext | TAG |

thanks!
Christoph
-- 
openssl-users mailing list
To unsubscribe: https://mta.openssl.org/mailman/listinfo/openssl-users



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux