Home
last modified time | relevance | path

Searched refs:consume_bytes (Results 1 – 21 of 21) sorted by relevance

/external/rust/crates/ring/tests/
Decdsa_tests.rs73 let input = test_case.consume_bytes("Input"); in ecdsa_from_pkcs8_test()
138 let msg = test_case.consume_bytes("Msg"); in signature_ecdsa_verify_asn1_test()
139 let public_key = test_case.consume_bytes("Q"); in signature_ecdsa_verify_asn1_test()
140 let sig = test_case.consume_bytes("Sig"); in signature_ecdsa_verify_asn1_test()
172 let msg = test_case.consume_bytes("Msg"); in signature_ecdsa_verify_fixed_test()
173 let public_key = test_case.consume_bytes("Q"); in signature_ecdsa_verify_fixed_test()
174 let sig = test_case.consume_bytes("Sig"); in signature_ecdsa_verify_fixed_test()
243 let msg = test_case.consume_bytes("Msg"); in signature_ecdsa_sign_fixed_sign_and_verify_test()
244 let d = test_case.consume_bytes("d"); in signature_ecdsa_sign_fixed_sign_and_verify_test()
245 let q = test_case.consume_bytes("Q"); in signature_ecdsa_sign_fixed_sign_and_verify_test()
[all …]
Drsa_tests.rs58 let input = test_case.consume_bytes("Input"); in rsa_from_pkcs8_test()
91 let private_key = test_case.consume_bytes("Key"); in test_signature_rsa_pkcs1_sign()
92 let msg = test_case.consume_bytes("Msg"); in test_signature_rsa_pkcs1_sign()
93 let expected = test_case.consume_bytes("Sig"); in test_signature_rsa_pkcs1_sign()
133 let private_key = test_case.consume_bytes("Key"); in test_signature_rsa_pss_sign()
139 let msg = test_case.consume_bytes("Msg"); in test_signature_rsa_pss_sign()
140 let salt = test_case.consume_bytes("Salt"); in test_signature_rsa_pss_sign()
141 let expected = test_case.consume_bytes("Sig"); in test_signature_rsa_pss_sign()
199 let public_key = test_case.consume_bytes("Key"); in test_signature_rsa_pkcs1_verify()
220 let msg = test_case.consume_bytes("Msg"); in test_signature_rsa_pkcs1_verify()
[all …]
Ded25519_tests.rs43 let seed = test_case.consume_bytes("SEED"); in test_signature_ed25519()
46 let public_key = test_case.consume_bytes("PUB"); in test_signature_ed25519()
49 let msg = test_case.consume_bytes("MESSAGE"); in test_signature_ed25519()
51 let expected_sig = test_case.consume_bytes("SIG"); in test_signature_ed25519()
114 let input = test_case.consume_bytes("Input"); in test_ed25519_from_pkcs8_unchecked()
139 let input = test_case.consume_bytes("Input"); in test_ed25519_from_pkcs8()
Dhkdf_tests.rs56 let secret = test_case.consume_bytes("IKM"); in hkdf_tests()
57 let salt = test_case.consume_bytes("salt"); in hkdf_tests()
58 let info = test_case.consume_bytes("info"); in hkdf_tests()
59 let _ = test_case.consume_bytes("PRK"); in hkdf_tests()
60 let expected_out = test_case.consume_bytes("OKM"); in hkdf_tests()
Daead_tests.rs125 let key_bytes = test_case.consume_bytes("KEY"); in test_aead()
126 let nonce_bytes = test_case.consume_bytes("NONCE"); in test_aead()
127 let plaintext = test_case.consume_bytes("IN"); in test_aead()
128 let aad = test_case.consume_bytes("AD"); in test_aead()
129 let mut ct = test_case.consume_bytes("CT"); in test_aead()
130 let tag = test_case.consume_bytes("TAG"); in test_aead()
367 let as_vec = test_case.consume_bytes("KEY"); in aead_chacha20_poly1305_openssh()
376 let plaintext = test_case.consume_bytes("IN"); in aead_chacha20_poly1305_openssh()
377 let ct = test_case.consume_bytes("CT"); in aead_chacha20_poly1305_openssh()
378 let expected_tag = test_case.consume_bytes("TAG"); in aead_chacha20_poly1305_openssh()
Dquic_tests.rs55 let key_bytes = test_case.consume_bytes("KEY"); in test_quic()
56 let sample = test_case.consume_bytes("SAMPLE"); in test_quic()
57 let mask = test_case.consume_bytes("MASK"); in test_quic()
Dpbkdf2_tests.rs64 let secret = test_case.consume_bytes("P"); in pbkdf2_tests()
65 let salt = test_case.consume_bytes("S"); in pbkdf2_tests()
66 let dk = test_case.consume_bytes("DK"); in pbkdf2_tests()
Ddigest_tests.rs48 let input = test_case.consume_bytes("Input"); in digest_misc()
50 let expected = test_case.consume_bytes("Output"); in digest_misc()
77 let mut msg = test_case.consume_bytes("Msg"); in run_known_answer_test()
86 let expected = test_case.consume_bytes("MD"); in run_known_answer_test()
156 seed.extend(test_case.consume_bytes("Seed")); in run_monte_carlo_test()
166 let expected_md = test_case.consume_bytes("MD"); in run_monte_carlo_test()
Dagreement_tests.rs90 let peer_public = agreement::UnparsedPublicKey::new(alg, test_case.consume_bytes("PeerQ")); in agreement_agree_ephemeral()
94 let my_private = test_case.consume_bytes("D"); in agreement_agree_ephemeral()
99 let my_public = test_case.consume_bytes("MyQ"); in agreement_agree_ephemeral()
100 let output = test_case.consume_bytes("Output"); in agreement_agree_ephemeral()
Dhmac_tests.rs47 let key_value = test_case.consume_bytes("Key"); in hmac_tests()
48 let mut input = test_case.consume_bytes("Input"); in hmac_tests()
49 let output = test_case.consume_bytes("Output"); in hmac_tests()
/external/rust/crates/ring/src/ec/suite_b/ecdsa/
Dsigning.rs529 let msg = test_case.consume_bytes("Msg"); in signature_ecdsa_sign_fixed_test()
530 let d = test_case.consume_bytes("d"); in signature_ecdsa_sign_fixed_test()
531 let q = test_case.consume_bytes("Q"); in signature_ecdsa_sign_fixed_test()
532 let k = test_case.consume_bytes("k"); in signature_ecdsa_sign_fixed_test()
534 let expected_result = test_case.consume_bytes("Sig"); in signature_ecdsa_sign_fixed_test()
568 let msg = test_case.consume_bytes("Msg"); in signature_ecdsa_sign_asn1_test()
569 let d = test_case.consume_bytes("d"); in signature_ecdsa_sign_asn1_test()
570 let q = test_case.consume_bytes("Q"); in signature_ecdsa_sign_asn1_test()
571 let k = test_case.consume_bytes("k"); in signature_ecdsa_sign_asn1_test()
573 let expected_result = test_case.consume_bytes("Sig"); in signature_ecdsa_sign_asn1_test()
Dverification.rs305 public_key.extend(&test_case.consume_bytes("X")); in test_digest_based_test_vectors()
306 public_key.extend(&test_case.consume_bytes("Y")); in test_digest_based_test_vectors()
310 let digest = test_case.consume_bytes("Digest"); in test_digest_based_test_vectors()
314 sig.extend(&test_case.consume_bytes("R")); in test_digest_based_test_vectors()
315 sig.extend(&test_case.consume_bytes("S")); in test_digest_based_test_vectors()
Ddigest_scalar.rs96 let input = test_case.consume_bytes("Input"); in test()
97 let output = test_case.consume_bytes("Output"); in test()
/external/rust/crates/ring/src/aead/
Dchacha.rs158 let key = test_case.consume_bytes("Key"); in chacha20_tests()
163 let nonce = test_case.consume_bytes("Nonce"); in chacha20_tests()
164 let input = test_case.consume_bytes("Input"); in chacha20_tests()
165 let output = test_case.consume_bytes("Output"); in chacha20_tests()
Dpoly1305.rs143 let key = test_case.consume_bytes("Key"); in test_poly1305()
145 let input = test_case.consume_bytes("Input"); in test_poly1305()
146 let expected_mac = test_case.consume_bytes("MAC"); in test_poly1305()
Daes.rs418 let input = test_case.consume_bytes("Input"); in test_aes()
420 let expected_output = test_case.consume_bytes("Output"); in test_aes()
431 let key = test_case.consume_bytes(name); in consume_key()
/external/rust/crates/ring/src/rsa/
Dpadding.rs540 let msg = test_case.consume_bytes("Msg"); in test_pss_padding_verify()
544 let encoded = test_case.consume_bytes("EM"); in test_pss_padding_verify()
548 let _ = test_case.consume_bytes("Salt"); in test_pss_padding_verify()
579 let msg = test_case.consume_bytes("Msg"); in test_pss_padding_encode()
580 let salt = test_case.consume_bytes("Salt"); in test_pss_padding_encode()
581 let encoded = test_case.consume_bytes("EM"); in test_pss_padding_encode()
/external/rust/crates/ring/src/ec/suite_b/
Dpublic_key.rs81 let public_key = test_case.consume_bytes("Q"); in parse_uncompressed_point_test()
Dops.rs951 let p = test_case.consume_bytes("p"); in point_mul_serialized_test()
958 let expected_result = test_case.consume_bytes("r"); in point_mul_serialized_test()
1146 let bytes = test_case.consume_bytes(name); in consume_scalar()
1156 let bytes = test_case.consume_bytes(name); in consume_scalar_mont()
1172 let unpadded_bytes = test_case.consume_bytes(name); in consume_padded_bytes()
/external/rust/crates/ring/src/arithmetic/
Dbigint.rs1416 let bytes = test_case.consume_bytes("E"); in test_elem_exp_consttime()
1550 let value = test_case.consume_bytes(name); in consume_elem()
1572 let value = test_case.consume_bytes(name); in consume_modulus()
1579 let bytes = test_case.consume_bytes(name); in consume_nonnegative()
/external/rust/crates/ring/src/
Dtest.rs193 pub fn consume_bytes(&mut self, key: &str) -> Vec<u8> { in consume_bytes() method