Skip to main content
qcho.1
Associate II
December 1, 2022
Question

How can I represent multiplicative inverse in GF(2^8)?

  • December 1, 2022
  • 1 reply
  • 1753 views

Hi, I'm here to seek help.

I would like to represent multiplicative inverse in GF(2^8), using textLCD in mCube cortex m4 with stm32407vg.

I'll use functions, unsinged char xtimes(); and unsigned char inv(unsigned char a);

And also, I want to represent result value of inv() seems like [inv : (value)] on textLCD.

Is there the way to input value using my mCube cortext m4, and represent result value?

This topic has been closed for replies.

1 reply

Tesla DeLorean
Guru
December 1, 2022

Could you use sprintf() and sscanf() ?

What's your input device?

How is the Galois Field stuff related to your ability to display things on the screen? ​

Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..
qcho.1
qcho.1Author
Associate II
December 1, 2022

I changed the way I had it in mind: using 2 buttons on the keypad to increment/decrement each value and display the inverse directly on the textLCD or 7-seg.

1) How can the result be displayed if I use sprintf()?

2) The input/output device is mCube micro processor.

3) The multiplicative inverse of GF(2^8) should be displayed on the device.

Tesla DeLorean
Guru
December 1, 2022

Presumably sprintf() could create a message string that you subsequent paint on the screen in the format you want.

What is an "mCube micro processor", you mean mBed or or CubeMX ?

Provide a web link to what you're talking about.

Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..