aes128 completely done.
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.
This commit is contained in:
9
internal/ciphers/aesCommon/funcs_aesbitsize.go
Normal file
9
internal/ciphers/aesCommon/funcs_aesbitsize.go
Normal file
@@ -0,0 +1,9 @@
|
||||
package aesCommon
|
||||
|
||||
// GetByteLen returns the length of *bytes* of an aesBitSize.
|
||||
func (a *aesBitSize) GetByteLen() (l int) {
|
||||
|
||||
l = int(*a) / 8
|
||||
|
||||
return
|
||||
}
|
||||
Reference in New Issue
Block a user