File tree Expand file tree Collapse file tree 3 files changed +6
-4
lines changed Expand file tree Collapse file tree 3 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -102,8 +102,8 @@ pub fn (d &Digest) sum(b_in []byte) []byte {
102
102
return b_out
103
103
}
104
104
105
- // checksum returns the byte checksum of the `Digest`.
106
- fn (mut d Digest) checksum () []byte {
105
+ // checksum returns the current byte checksum of the `Digest`.
106
+ pub fn (mut d Digest) checksum () []byte {
107
107
mut len := d.len
108
108
// Padding. Add a 1 bit and 0 bits until 56 bytes mod 64.
109
109
mut tmp := []byte {len: (64 )}
Original file line number Diff line number Diff line change @@ -142,7 +142,8 @@ pub fn (d &Digest) sum(b_in []byte) []byte {
142
142
return b_out
143
143
}
144
144
145
- fn (mut d Digest) checksum () []byte {
145
+ // checksum returns the current byte checksum of the Digest.
146
+ pub fn (mut d Digest) checksum () []byte {
146
147
mut len := d.len
147
148
// Padding. Add a 1 bit and 0 bits until 56 bytes mod 64.
148
149
mut tmp := []byte {len: (64 )}
Original file line number Diff line number Diff line change @@ -214,7 +214,8 @@ pub fn (d &Digest) sum(b_in []byte) []byte {
214
214
return b_out
215
215
}
216
216
217
- fn (mut d Digest) checksum () []byte {
217
+ // checksum returns the current byte checksum of the Digest.
218
+ pub fn (mut d Digest) checksum () []byte {
218
219
// Padding. Add a 1 bit and 0 bits until 112 bytes mod 128.
219
220
mut len := d.len
220
221
mut tmp := []byte {len: (128 )}
You can’t perform that action at this time.
0 commit comments