You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: crypt.tex
+8-9Lines changed: 8 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -47,7 +47,7 @@
47
47
\def\gap{\vspace{0.5ex}}
48
48
\makeindex
49
49
\begin{document}
50
-
\title{LibTomCrypt \\ Version 1.03}
50
+
\title{LibTomCrypt \\ Version 1.04}
51
51
\author{Tom St Denis \\
52
52
\\
53
53
tomstdenis@gmail.com \\
@@ -3022,26 +3022,25 @@ \section{Key Format}
3022
3022
\begin{small}
3023
3023
\begin{verbatim}
3024
3024
ECCPublicKey ::= SEQUENCE {
3025
-
flags BIT STRING(2), -- public/private flag (always zero),
3026
-
-- compressed point
3025
+
flags BIT STRING(1), -- public/private flag (always zero),
3027
3026
keySize INTEGER, -- Curve size (in bits) divided by eight
3028
3027
-- and rounded down, e.g. 521 => 65
3029
3028
pubkey.x INTEGER, -- The X co-ordinate of the public key point
3029
+
pubkey.y INTEGER, -- The Y co-ordinate of the public key point
3030
3030
}
3031
3031
3032
3032
ECCPrivateKey ::= SEQUENCE {
3033
-
flags BIT STRING(2), -- public/private flag (always one),
3034
-
-- compressed point
3033
+
flags BIT STRING(1), -- public/private flag (always one),
3035
3034
keySize INTEGER, -- Curve size (in bits) divided by eight
3036
3035
-- and rounded down, e.g. 521 => 65
3037
3036
pubkey.x INTEGER, -- The X co-ordinate of the public key point
3037
+
pubkey.y INTEGER, -- The Y co-ordinate of the public key point
3038
3038
secret.k INTEGER, -- The secret key scalar
3039
3039
}
3040
3040
\end{verbatim}
3041
3041
\end{small}
3042
3042
3043
-
The first flags bit denotes whether the key is public (zero) or private (one). The compressed point bit is equal to zero if $(x^3 - 3x + b)^{(p+1)/4} \mbox{ mod }p$ is
3044
-
congruent to the keys $y$ co-ordinate. The bit is one if the $y$ co-ordinate is the negative of the computed square root.
3043
+
The first flags bit denotes whether the key is public (zero) or private (one).
3045
3044
3046
3045
\section{Core Functions}
3047
3046
@@ -4492,5 +4491,5 @@ \subsection{Exporting and Importing}
0 commit comments