ChaCha20 test vectors¶
Test vectors for ChaCha20.
- exception crypto_condor.vectors.ChaCha20.ChaCha20VectorsError¶
- Bases: - Exception- Exception for errors when loading or parsing vectors. 
- class crypto_condor.vectors.ChaCha20.ChaCha20Vectors(mode, wycheproof)¶
- Bases: - object- A class to group ChaCha20 test vectors. - Do not instantiate directly, use - load().- Parameters:
- mode (Mode) – The mode of operation. 
- wycheproof (ChaCha20WycheproofVectors) – The corresponding Wycheproof vectors. 
 
 - classmethod load(mode)¶
- Loads ChaCha20 test vectors. - Parameters:
- mode (Mode) – The mode of operation. 
- Returns:
- An - ChaCha20Vectorsinstance with the corresponding test vectors.
- Raises:
- ChaCha20VectorError – Raised when an error occurred while loading the vectors. 
 
 
- class crypto_condor.vectors.ChaCha20.ChaCha20WycheproofGroup¶
- Bases: - TypedDict- Represents a group of Wycheproof tests. 
- class crypto_condor.vectors.ChaCha20.ChaCha20WycheproofTest¶
- Bases: - TypedDict- Represents a single ChaCha20 Wycheproof test. 
- class crypto_condor.vectors.ChaCha20.ChaCha20WycheproofVectors¶
- Bases: - TypedDict- Represents a file of Wycheproof ChaCha20 vectors. 
- enum crypto_condor.vectors.ChaCha20.Mode(value)¶
- Bases: - StrEnum- Supported ChaCha20 modes of operation. - Member Type:
- str
 - Valid values are as follows: - CHACHA20_POLY1305 = <Mode.CHACHA20_POLY1305: 'CHACHA20-POLY1305'>¶
 - CHACHA20 = <Mode.CHACHA20: 'CHACHA20'>¶
 
- crypto_condor.vectors.ChaCha20.load_wycheproof_vectors(mode)¶
- Loads Wycheproof ChaCha20 vectors. - Parameters:
- mode (Mode) – The mode of operation. 
- Returns:
- The corresponding Wycheproof test vectors. 
- Raises:
- ChaCha20VectorsError – Raised if an error occurred while loading the vectors. 
- Return type: