Camellia uses 6 sigmas in its key schedule with values
Sigma1 = 0xA09E667F3BCC908B;
Sigma2 = 0xB67AE8584CAA73B2;
Sigma3 = 0xC6EF372FE94F82BE;
Sigma4 = 0x54FF53A5F1D36F1C;
Sigma5 = 0x10E527FADE682D1D;
Sigma6 = 0xB05688C2B3E6C1FD;
The specification documents of the camellia says "Sigmas are defined as continuous values from the second hexadecimal place to the seventeenth hexadecimal place of the hexadecimal representation of the square root of the i-th prime."
The ith prime in this case are 2,3,5,7,11,13
However i cant find a way to compute these constants. Computing square root of prime is simple, but how these fractional square roots are converted into Hex notation? How it can be implemented in c#?
What you need is some method of calculating the square root mostly.
Please see the following Java application.
This will output:
Problem is that C# doesn't know about
BigDecimalbut you can get a good precissiondecimalvalue, try the following square root calculation here.