CASA Function: GoppaEncode
Encodes by using matrix multiplication.
Calling Sequence:
Parameters:
- a : {list,vector}
-
- C : {casa/finite/Goppa/primary,casa/finite/Goppa/functional}
- The code used for encoding.
Result:
- c : vector
- The coded message. c = a * G, where G is the generator matrix of the code C.
Description:
- Encodes a message using the Goppa codes C. Encoding is done by a simple matrix multiplication.
Examples:
> C1 := finiteCurve(x^3+y^2+y, finiteField(4));
> H1 := GoppaPrimary(C1, "affine", 4):
> a := [ 1 $ H1["k"] ];
> c := GoppaEncode(a, H1);
See Also:
[CASA]
[GoppaPrimary]
[GoppaDecode]