src/wolfSSL/src/internal.c
int QSH_Decrypt(QSHKey* key, byte* in, word32 szIn,
                                                       byte* out, word16* szOut)
{
    int ret = 0;
    word16 size = *szOut;

    WOLFSSL_MSG("Decrypting QSH key material");

    switch (key->name) {
    #ifdef HAVE_NTRU
        case WOLFSSL_NTRU_EESS439:
        case WOLFSSL_NTRU_EESS593:
        case WOLFSSL_NTRU_EESS743:
            ret = NtruSecretDecrypt(key, in, szIn, out, &size);
            break;
    #endif
        default:
            WOLFSSL_MSG("Unknown QSH decryption key!");
            return -1;
    }

    *szOut = size;

    return ret;
}
/* Decrypt using Quantum Safe Handshake algorithms */
Decrypt using Quantum Safe Handshake algorithms
Decrypt using Quantum Safe Handshake algorithms
int QSH_Decrypt(QSHKey* key, byte* in, word32 szIn,
                                                       byte* out, word16* szOut)
{
    int ret = 0;
    word16 size = *szOut;
    WOLFSSL_MSG("Decrypting QSH key material");
    switch (key->name) {
    #ifdef HAVE_NTRU
        case WOLFSSL_NTRU_EESS439:
        case WOLFSSL_NTRU_EESS593:
        case WOLFSSL_NTRU_EESS743:
            ret = NtruSecretDecrypt(key, in, szIn, out, &size);
            break;
    #endif
        default:
            WOLFSSL_MSG("Unknown QSH decryption key!");
            return -1;
    }
    *szOut = size;
    return ret;
}
int QSH_Decrypt ( QSHKey * key , byte * in , word32 szIn , byte * out , word16 * szOut ) { int ret = 0 ; word16 size = * szOut ; WOLFSSL_MSG ( " " ) ; switch ( key -> name ) { #ifdef HAVE_NTRU case WOLFSSL_NTRU_EESS439 : case WOLFSSL_NTRU_EESS593 : case WOLFSSL_NTRU_EESS743 : ret = NtruSecretDecrypt ( key , in , szIn , out , & size ) ; break ; #endif default : WOLFSSL_MSG ( " " ) ; return -1 ; } * szOut = size ; return ret ; }
Decrypt using Quantum Safe Handshake algorithms
Decrypt using Quantum Safe Handshake algorithms