parseEncryptionInfo parse the encryption info XML into an object.
(encryptionInfo []byte)
| 491 | |
| 492 | // parseEncryptionInfo parse the encryption info XML into an object. |
| 493 | func parseEncryptionInfo(encryptionInfo []byte) (encryption Encryption, err error) { |
| 494 | err = xml.Unmarshal(encryptionInfo, &encryption) |
| 495 | return |
| 496 | } |
| 497 | |
| 498 | // decrypt provides a function to decrypt input by given cipher algorithm, |
| 499 | // cipher chaining, key and initialization vector. |