diff options
| author | Bastien Orivel <[email protected]> | 2018-01-01 17:38:38 +0100 |
|---|---|---|
| committer | Bastien Orivel <[email protected]> | 2018-01-01 17:38:38 +0100 |
| commit | bb5ab2b43f4346c411a087258a8e76788b9f5101 (patch) | |
| tree | 0413df33f9bc1e486e9c98b5b8e7c22807a155bf /openssl/src/aes.rs | |
| parent | Merge pull request #810 from sfackler/key-tag (diff) | |
| download | rust-openssl-bb5ab2b43f4346c411a087258a8e76788b9f5101.tar.xz rust-openssl-bb5ab2b43f4346c411a087258a8e76788b9f5101.zip | |
Bump hex to 0.3
The `to_hex` method has been removed and `hex::encode` should be used
instead.
Diffstat (limited to 'openssl/src/aes.rs')
| -rw-r--r-- | openssl/src/aes.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/openssl/src/aes.rs b/openssl/src/aes.rs index 5be99430..c7cc0eef 100644 --- a/openssl/src/aes.rs +++ b/openssl/src/aes.rs @@ -27,7 +27,7 @@ //! extern crate hex; //! use openssl::aes::{AesKey, KeyError, aes_ige}; //! use openssl::symm::Mode; -//! use hex::{FromHex, ToHex}; +//! use hex::FromHex; //! //! fn decrypt() -> Result<(), KeyError> { //! let raw_key = "000102030405060708090A0B0C0D0E0F"; @@ -38,7 +38,7 @@ //! let key = AesKey::new_encrypt(&key_as_u8)?; //! let mut output = vec![0u8; cipher_as_u8.len()]; //! aes_ige(&cipher_as_u8, &mut output, &key, &mut iv_as_u8, Mode::Encrypt); -//! assert_eq!(output.to_hex(), "a6ad974d5cea1d36d2f367980907ed32"); +//! assert_eq!(hex::encode(output), "a6ad974d5cea1d36d2f367980907ed32"); //! } //! Ok(()) //! } |