File tree Expand file tree Collapse file tree 2 files changed +13
-7
lines changed
Expand file tree Collapse file tree 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] = [
156156
157157
158158/// The MD5 Digest algorithm
159- struct Md5 {
159+ pub struct Md5 {
160160 priv length_bytes : u64 ,
161161 priv buffer : FixedBuffer64 ,
162162 priv state : Md5State ,
Original file line number Diff line number Diff line change @@ -230,7 +230,8 @@ impl Engine512 {
230230}
231231
232232
233- struct Sha512 {
233+ /// The SHA-512 hash algorithm
234+ pub struct Sha512 {
234235 priv engine: Engine512
235236}
236237
@@ -282,7 +283,8 @@ static H512: [u64, ..8] = [
282283] ;
283284
284285
285- struct Sha384 {
286+ /// The SHA-384 hash algorithm
287+ pub struct Sha384 {
286288 priv engine: Engine512
287289}
288290
@@ -332,7 +334,8 @@ static H384: [u64, ..8] = [
332334] ;
333335
334336
335- struct Sha512Trunc256 {
337+ /// The SHA-512 hash algorithm with digest truncated to 256 bits
338+ pub struct Sha512Trunc256 {
336339 priv engine: Engine512
337340}
338341
@@ -380,7 +383,8 @@ static H512_TRUNC_256: [u64, ..8] = [
380383] ;
381384
382385
383- struct Sha512Trunc224 {
386+ /// The SHA-512 hash algorithm with digest truncated to 224 bits
387+ pub struct Sha512Trunc224 {
384388 priv engine: Engine512
385389}
386390
@@ -635,7 +639,8 @@ impl Engine256 {
635639}
636640
637641
638- struct Sha256 {
642+ /// The SHA-256 hash algorithm
643+ pub struct Sha256 {
639644 priv engine: Engine256
640645}
641646
@@ -687,7 +692,8 @@ static H256: [u32, ..8] = [
687692] ;
688693
689694
690- struct Sha224 {
695+ /// The SHA-224 hash algorithm
696+ pub struct Sha224 {
691697 priv engine: Engine256
692698}
693699
You can’t perform that action at this time.
0 commit comments