brent s
0203f8b0d8
ish. done-ish. it's entirely untested. CTR should work as i modeled it after PoC, and CBC *probably* works as it's straightforward, but I have no idea about the GCM. TODO.
10 lines
154 B
Go
10 lines
154 B
Go
package aesCommon
|
|
|
|
// GetByteLen returns the length of *bytes* of an aesBitSize.
|
|
func (a *aesBitSize) GetByteLen() (l int) {
|
|
|
|
l = int(*a) / 8
|
|
|
|
return
|
|
}
|