
Functions | |
| WOLFSSL_API int | wc_IdeaSetKey (Idea *idea, const byte *key, word16 keySz, const byte *iv, int dir) |
| Generate the 52, 16-bit key sub-blocks from the 128 key. More... | |
| WOLFSSL_API int | wc_IdeaSetIV (Idea *idea, const byte *iv) |
| Sets the IV in an Idea key structure. More... | |
| WOLFSSL_API int | wc_IdeaCipher (Idea *idea, byte *out, const byte *in) |
| Encryption or decryption for a block (64 bits). More... | |
| WOLFSSL_API int | wc_IdeaCbcEncrypt (Idea *idea, byte *out, const byte *in, word32 len) |
| Encrypt data using IDEA CBC mode. More... | |
| WOLFSSL_API int | wc_IdeaCbcDecrypt (Idea *idea, byte *out, const byte *in, word32 len) |
| Decrypt data using IDEA CBC mode. More... | |
| WOLFSSL_API int wc_IdeaCbcDecrypt | ( | Idea * | idea, |
| byte * | out, | ||
| const byte * | in, | ||
| word32 | len | ||
| ) |
Decrypt data using IDEA CBC mode.
| idea | Pointer to Idea key structure. |
| out | Pointer to destination for encryption. |
| in | Pointer to input for encryption. |
| len | length of input. |
Example
| WOLFSSL_API int wc_IdeaCbcEncrypt | ( | Idea * | idea, |
| byte * | out, | ||
| const byte * | in, | ||
| word32 | len | ||
| ) |
Encrypt data using IDEA CBC mode.
| idea | Pointer to Idea key structure. |
| out | Pointer to destination for encryption. |
| in | Pointer to input for encryption. |
| len | length of input. |
Example
| WOLFSSL_API int wc_IdeaCipher | ( | Idea * | idea, |
| byte * | out, | ||
| const byte * | in | ||
| ) |
Encryption or decryption for a block (64 bits).
| idea | Pointer to idea key structure. |
| out | Pointer to destination. |
| in | Pointer to input data to encrypt or decrypt. |
Example
| WOLFSSL_API int wc_IdeaSetIV | ( | Idea * | idea, |
| const byte * | iv | ||
| ) |
Sets the IV in an Idea key structure.
| idea | Pointer to idea key structure. |
| iv | The IV value to set, can be null. |
Example
| WOLFSSL_API int wc_IdeaSetKey | ( | Idea * | idea, |
| const byte * | key, | ||
| word16 | keySz, | ||
| const byte * | iv, | ||
| int | dir | ||
| ) |
Generate the 52, 16-bit key sub-blocks from the 128 key.
| idea | Pointer to Idea structure. |
| key | Pointer to key in memory. |
| keySz | Size of key. |
| iv | Value for IV in Idea structure. Can be null. |
| dir | Direction, either IDEA_ENCRYPTION or IDEA_DECRYPTION |
Example