File tree Expand file tree Collapse file tree 2 files changed +0
-14
lines changed Expand file tree Collapse file tree 2 files changed +0
-14
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,6 @@ use ferveo::api::{CiphertextHeader, FerveoVariant};
9
9
use generic_array:: typenum:: Unsigned ;
10
10
use rand_core:: { CryptoRng , RngCore } ;
11
11
use serde:: { Deserialize , Deserializer , Serialize , Serializer } ;
12
- use serde_json;
13
12
use umbral_pre:: serde_bytes; // TODO should this be in umbral?
14
13
15
14
use crate :: access_control:: AccessControlPolicy ;
Original file line number Diff line number Diff line change 1
1
//! Module for generating and handling test vectors for encryption/decryption testing.
2
2
3
3
use alloc:: vec:: Vec ;
4
- use alloc:: string:: String ;
5
4
use serde:: { Deserialize , Serialize } ;
6
5
use serde_encoded_bytes:: { ArrayLike , SliceLike , Hex } ;
7
6
use x25519_dalek:: StaticSecret ;
@@ -68,8 +67,6 @@ pub fn create_session_shared_secret_from_static_secrets(static_secret_a: &Static
68
67
#[ cfg( feature = "test_vectors" ) ]
69
68
pub fn generate_test_vectors ( ) -> Vec < TestVector > {
70
69
use chacha20poly1305:: { AeadCore , ChaCha20Poly1305 } ;
71
- use rand:: rngs:: StdRng ;
72
- use rand:: SeedableRng ;
73
70
use alloc:: vec;
74
71
75
72
let mut test_vectors = Vec :: new ( ) ;
@@ -107,13 +104,3 @@ pub fn generate_test_vectors() -> Vec<TestVector> {
107
104
108
105
test_vectors
109
106
}
110
-
111
- #[ cfg( feature = "test_vectors" ) ]
112
- pub fn serialize_test_vector_to_json ( vector : & TestVector ) -> String {
113
- serde_json:: to_string ( vector) . expect ( "Failed to serialize test vector to JSON" )
114
- }
115
-
116
- #[ cfg( feature = "test_vectors" ) ]
117
- pub fn deserialize_test_vector_from_json ( json : & str ) -> TestVector {
118
- serde_json:: from_str ( json) . expect ( "Failed to deserialize test vector from JSON" )
119
- }
You can’t perform that action at this time.
0 commit comments