File tree 2 files changed +13
-7
lines changed
2 files changed +13
-7
lines changed Original file line number Diff line number Diff line change @@ -156,7 +156,7 @@ static C4: [u32, ..16] = [
156
156
157
157
158
158
/// The MD5 Digest algorithm
159
- struct Md5 {
159
+ pub struct Md5 {
160
160
priv length_bytes : u64 ,
161
161
priv buffer : FixedBuffer64 ,
162
162
priv state : Md5State ,
Original file line number Diff line number Diff line change @@ -230,7 +230,8 @@ impl Engine512 {
230
230
}
231
231
232
232
233
- struct Sha512 {
233
+ /// The SHA-512 hash algorithm
234
+ pub struct Sha512 {
234
235
priv engine: Engine512
235
236
}
236
237
@@ -282,7 +283,8 @@ static H512: [u64, ..8] = [
282
283
] ;
283
284
284
285
285
- struct Sha384 {
286
+ /// The SHA-384 hash algorithm
287
+ pub struct Sha384 {
286
288
priv engine: Engine512
287
289
}
288
290
@@ -332,7 +334,8 @@ static H384: [u64, ..8] = [
332
334
] ;
333
335
334
336
335
- struct Sha512Trunc256 {
337
+ /// The SHA-512 hash algorithm with digest truncated to 256 bits
338
+ pub struct Sha512Trunc256 {
336
339
priv engine: Engine512
337
340
}
338
341
@@ -380,7 +383,8 @@ static H512_TRUNC_256: [u64, ..8] = [
380
383
] ;
381
384
382
385
383
- struct Sha512Trunc224 {
386
+ /// The SHA-512 hash algorithm with digest truncated to 224 bits
387
+ pub struct Sha512Trunc224 {
384
388
priv engine: Engine512
385
389
}
386
390
@@ -635,7 +639,8 @@ impl Engine256 {
635
639
}
636
640
637
641
638
- struct Sha256 {
642
+ /// The SHA-256 hash algorithm
643
+ pub struct Sha256 {
639
644
priv engine: Engine256
640
645
}
641
646
@@ -687,7 +692,8 @@ static H256: [u32, ..8] = [
687
692
] ;
688
693
689
694
690
- struct Sha224 {
695
+ /// The SHA-224 hash algorithm
696
+ pub struct Sha224 {
691
697
priv engine: Engine256
692
698
}
693
699
You can’t perform that action at this time.
0 commit comments