Skip to content

Commit b3653f8

Browse files
committed
tweak oid imls
1 parent e1cfd53 commit b3653f8

3 files changed

Lines changed: 29 additions & 28 deletions

File tree

bash-prg-hash/src/lib.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,7 @@
1010

1111
pub use digest::{self, Digest};
1212

13-
#[cfg(feature = "oid")]
14-
mod oids;
1513
mod variants;
16-
1714
pub use variants::*;
1815

1916
use bash_f::{STATE_WORDS, bash_f};

bash-prg-hash/src/oids.rs

Lines changed: 0 additions & 25 deletions
This file was deleted.

bash-prg-hash/src/variants.rs

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,3 +35,32 @@ impl CollisionResistance for BashPrgHash2561 {
3535
impl CollisionResistance for BashPrgHash2562 {
3636
type CollisionResistance = U32;
3737
}
38+
39+
#[cfg(feature = "oid")]
40+
mod oids {
41+
use digest::const_oid::{AssociatedOid, ObjectIdentifier};
42+
43+
impl AssociatedOid for super::BashPrgHash1281 {
44+
const OID: ObjectIdentifier = ObjectIdentifier::new_unwrap("1.2.112.0.2.0.34.101.77.21");
45+
}
46+
47+
impl AssociatedOid for super::BashPrgHash1282 {
48+
const OID: ObjectIdentifier = ObjectIdentifier::new_unwrap("1.2.112.0.2.0.34.101.77.22");
49+
}
50+
51+
impl AssociatedOid for super::BashPrgHash1921 {
52+
const OID: ObjectIdentifier = ObjectIdentifier::new_unwrap("1.2.112.0.2.0.34.101.77.23");
53+
}
54+
55+
impl AssociatedOid for super::BashPrgHash1922 {
56+
const OID: ObjectIdentifier = ObjectIdentifier::new_unwrap("1.2.112.0.2.0.34.101.77.24");
57+
}
58+
59+
impl AssociatedOid for super::BashPrgHash2561 {
60+
const OID: ObjectIdentifier = ObjectIdentifier::new_unwrap("1.2.112.0.2.0.34.101.77.25");
61+
}
62+
63+
impl AssociatedOid for super::BashPrgHash2562 {
64+
const OID: ObjectIdentifier = ObjectIdentifier::new_unwrap("1.2.112.0.2.0.34.101.77.26");
65+
}
66+
}

0 commit comments

Comments
 (0)