GCMBlockCipher class
Properties
aad
→ Uint8List ?
The additional authenticated data as set by the initialization
no setter inherited
algorithmName
→ String
Get this algorithm's standard name.
no setter override
blockSize
→ int
Get this ciphers's block size.
no setter inherited
forEncryption
→ bool
True if initialized for encryption
no setter inherited
hashCode
→ int
The hash code for this object.
no setter inherited
mac
→ Uint8List
The value of the authentication tag associated with the last processed
data
no setter
macSize
→ int
The length in bytes of the authentication tag
no setter inherited
nonce
→ Uint8List
The nonce or iv as set by the initialization
no setter inherited
r
→ Uint8List
final
remainingInput
→ Uint8List
Any remaining input yet to be processed
no setter inherited
runtimeType
→ Type
A representation of the runtime type of the object.
no setter inherited
underlyingCipher
→ BlockCipher
The underlying cipher
no setter inherited
Methods
doFinal (Uint8List out , int outOff )
→ int
Finish the operation either appending or verifying the MAC at the end of
the data.
override
getOutputSize (int length )
→ int
inherited
init (bool forEncryption , CipherParameters ? params )
→ void
Init the cipher with its initialization params
. The type of
CipherParameters depends on the algorithm being used (see the
documentation of each implementation to find out more).
noSuchMethod (Invocation invocation )
→ dynamic
Invoked when a nonexistent method or property is accessed.
inherited
prepare (KeyParameter keyParam )
→ void
Prepare for a stream of data. This method is called during
initialization and reset.
process (Uint8List data )
→ Uint8List
Process a whole block of blockSize bytes stored in data
at once, returning the result in a
byte array.
inherited
processAADBytes (Uint8List inp , int inpOff , int len )
→ void
Processes the additional authentication data
processBlock (Uint8List inp , int inpOff , Uint8List out , int outOff )
→ int
Process a whole block of data given by inp
and starting at offset
inpOff
.
override
processBytes (Uint8List inp , int inpOff , int len , Uint8List out , int outOff )
→ int
Process len
bytes from inp
starting at offset inpOff
and output the
result to out
at offset outOff
.
inherited
reset ()
→ void
Reset the cipher to its original state.
toString ()
→ String
A string representation of this object.
inherited
validateMac ()
→ void
When decrypting, validates the generated authentication tag with the one
in the input stream. When not equal throws InvalidCipherTextException .
This method should be called from the doFinal method.
inherited
Static Properties
factoryConfig
→ FactoryConfig
Intended for internal use.
final
pointycastle_broadcom 3.9.2