[go-nuts] Re: [crypto/aes] How do I specify an initialization vector?

2017-11-17 Thread Chetan Gowda
Thank you, Conrado. That indeed fixed it. -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. For more options, visit

[go-nuts] Re: [crypto/aes] How do I specify an initialization vector?

2017-11-16 Thread Chetan Gowda
Python equivalent of this is from cryptography.hazmat.backends import default_backend from cryptography.hazmat.primitives import ciphers ... mode = ciphers.modes.GCM(b'\0' * 16, ciphertext[-16:], 16) decryptor = ciphers.Cipher(ciphers.algorithms.AES(symmetric_key), mode,