FreeRTOS-Plus/ThirdParty/WolfSSL-FIPS-Ready/wolfcrypt/src/fe_448.c
/* Subtract a field element from another. r = (a - b) mod (2^448 - 2^224 - 1)
 *
 * r  [in]  Field element to hold difference.
 * a  [in]  Field element to subtract from.
 * b  [in]  Field element to subtract.
 */
Subtract a field element from another.
Subtract a field element from another .
void fe448_sub(int32_t* r, const int32_t* a, const int32_t* b)
{
    r[0] = a[0] - b[0];
    r[1] = a[1] - b[1];
    r[2] = a[2] - b[2];
    r[3] = a[3] - b[3];
    r[4] = a[4] - b[4];
    r[5] = a[5] - b[5];
    r[6] = a[6] - b[6];
    r[7] = a[7] - b[7];
    r[8] = a[8] - b[8];
    r[9] = a[9] - b[9];
    r[10] = a[10] - b[10];
    r[11] = a[11] - b[11];
    r[12] = a[12] - b[12];
    r[13] = a[13] - b[13];
    r[14] = a[14] - b[14];
    r[15] = a[15] - b[15];
}
void fe448_sub ( int32_t * r , const int32_t * a , const int32_t * b ) { r [ 0 ] = a [ 0 ] - b [ 0 ] ; r [ 1 ] = a [ 1 ] - b [ 1 ] ; r [ 2 ] = a [ 2 ] - b [ 2 ] ; r [ 3 ] = a [ 3 ] - b [ 3 ] ; r [ 4 ] = a [ 4 ] - b [ 4 ] ; r [ 5 ] = a [ 5 ] - b [ 5 ] ; r [ 6 ] = a [ 6 ] - b [ 6 ] ; r [ 7 ] = a [ 7 ] - b [ 7 ] ; r [ 8 ] = a [ 8 ] - b [ 8 ] ; r [ 9 ] = a [ 9 ] - b [ 9 ] ; r [ 10 ] = a [ 10 ] - b [ 10 ] ; r [ 11 ] = a [ 11 ] - b [ 11 ] ; r [ 12 ] = a [ 12 ] - b [ 12 ] ; r [ 13 ] = a [ 13 ] - b [ 13 ] ; r [ 14 ] = a [ 14 ] - b [ 14 ] ; r [ 15 ] = a [ 15 ] - b [ 15 ] ; }
Subtract a field element from another.
Subtract a field element from another .