FreeRTOS-Plus/ThirdParty/WolfSSL-FIPS-Ready/wolfcrypt/src/evp.c
/* returns WOLFSSL_SUCCESS on success, otherwise returns WOLFSSL_FAILURE */
returns WOLFSSL_SUCCESS on success, otherwise returns WOLFSSL_FAILURE
returns WOLFSSL_SUCCESS on success otherwise returns WOLFSSL_FAILURE
int wolfSSL_EVP_CIPHER_CTX_set_iv(WOLFSSL_EVP_CIPHER_CTX* ctx, byte* iv,
                                             int ivLen)
    {
        int expectedIvLen;
        WOLFSSL_ENTER("wolfSSL_EVP_CIPHER_CTX_set_iv_length");
        if (!ctx || !iv || !ivLen) {
            return WOLFSSL_FAILURE;
        }
        expectedIvLen = wolfSSL_EVP_CIPHER_CTX_iv_length(ctx);
        if (expectedIvLen == 0 || expectedIvLen != ivLen) {
            WOLFSSL_MSG("Wrong ivLen value");
            return WOLFSSL_FAILURE;
        }
        return wolfSSL_EVP_CipherInit(ctx, NULL, NULL, iv, -1);
    }
int wolfSSL_EVP_CIPHER_CTX_set_iv ( WOLFSSL_EVP_CIPHER_CTX * ctx , byte * iv , int ivLen ) { int expectedIvLen ; WOLFSSL_ENTER ( " " ) ; if ( ! ctx || ! iv || ! ivLen ) { return WOLFSSL_FAILURE ; } expectedIvLen = wolfSSL_EVP_CIPHER_CTX_iv_length ( ctx ) ; if ( expectedIvLen == 0 || expectedIvLen != ivLen ) { WOLFSSL_MSG ( " " ) ; return WOLFSSL_FAILURE ; } return wolfSSL_EVP_CipherInit ( ctx , NULL , NULL , iv , -1 ) ; }
returns WOLFSSL_SUCCESS on success, otherwise returns WOLFSSL_FAILURE
returns WOLFSSL_SUCCESS on success otherwise returns WOLFSSL_FAILURE