Skip to content

Commit

Permalink
Release 3.5.3
Browse files Browse the repository at this point in the history
  • Loading branch information
leif-ibsen committed Jan 17, 2023
1 parent 044de3b commit 55493f0
Show file tree
Hide file tree
Showing 15 changed files with 20 additions and 20 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ This encompasses:
In your project Package.swift file add a dependency like<br/>

dependencies: [
.package(url: "https://github.com/leif-ibsen/SwiftECC", from: "3.5.2"),
.package(url: "https://github.com/leif-ibsen/SwiftECC", from: "3.5.3"),
]
SwiftECC requires Swift 5.0. It also requires that the Int and UInt types be 64 bit types.
SwiftECC uses Apple's CryptoKit framework. Therefore, for macOS the version must be at least 10.15,
Expand Down Expand Up @@ -343,7 +343,7 @@ Nonce = bytes 32 ..< 44</br>

<h2 id="basic6"><b>Signing and Verifying</b></h2>
Signing data and verifying signatures is performed using the ECDSA algorithm. It is possible to generate
deterministic signatures as specificed in [RFC-6979] by setting the <i>deterministic</i> parameter to <i>true</i> in the sign operation.
deterministic signatures as specified in [RFC-6979] by setting the <i>deterministic</i> parameter to <i>true</i> in the sign operation.

The message digest used in the process is determined from the domain field size as follows:
<ul>
Expand Down
4 changes: 2 additions & 2 deletions Sources/SwiftECC/Domain.swift
Original file line number Diff line number Diff line change
Expand Up @@ -420,7 +420,7 @@ public class Domain: CustomStringConvertible, Equatable {
///
/// - Parameters:
/// - p: The point to encode
/// - compress: If *true* use compresssed encoding, if *false* use uncompressed encoding - *false* is default
/// - compress: If *true* use compressed encoding, if *false* use uncompressed encoding - *false* is default
/// - Returns: Encoding of p
/// - Throws: An *encodePoint* exception if *p* is not on the curve
public func encodePoint(_ p: Point, _ compress: Bool = false) throws -> Bytes {
Expand Down Expand Up @@ -448,7 +448,7 @@ public class Domain: CustomStringConvertible, Equatable {
///
/// - Parameters:
/// - p: The point to encode
/// - compress: If *true* use compresssed encoding, if *false* use uncompressed encoding - *false* is default
/// - compress: If *true* use compressed encoding, if *false* use uncompressed encoding - *false* is default
/// - Returns: ASN1 encoding of p
/// - Throws: An *encodePoint* exception if *p* does not lie on the curve
public func asn1EncodePoint(_ p: Point, _ compress: Bool = false) throws -> ASN1 {
Expand Down
2 changes: 1 addition & 1 deletion Sources/SwiftECC/Point.swift
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public struct Point: CustomStringConvertible, Equatable {
public let x: BInt
/// The y coordinate
public let y: BInt
/// Is *true* iff *self* is the point at inifinity
/// Is *true* iff *self* is the point at infinity
public let infinity: Bool


Expand Down
2 changes: 1 addition & 1 deletion Sources/SwiftECC/PublicKey.swift
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public class ECPublicKey: CustomStringConvertible {
/// - Parameters:
/// - domain: The domain
/// - w: The curve point
/// - Throws: A *publicKeyParameter* exception if *w* is not on the curve or is inifinity
/// - Throws: A *publicKeyParameter* exception if *w* is not on the curve or is infinity
public init(domain: Domain, w: Point) throws {
if !domain.contains(w) || w.infinity {
throw ECException.publicKeyParameter
Expand Down
4 changes: 2 additions & 2 deletions docs/Classes/Domain.html
Original file line number Diff line number Diff line change
Expand Up @@ -1554,7 +1554,7 @@ <h4>Parameters</h4>
</td>
<td>
<div>
<p>If <em>true</em> use compresssed encoding, if <em>false</em> use uncompressed encoding - <em>false</em> is default</p>
<p>If <em>true</em> use compressed encoding, if <em>false</em> use uncompressed encoding - <em>false</em> is default</p>
</div>
</td>
</tr>
Expand Down Expand Up @@ -1676,7 +1676,7 @@ <h4>Parameters</h4>
</td>
<td>
<div>
<p>If <em>true</em> use compresssed encoding, if <em>false</em> use uncompressed encoding - <em>false</em> is default</p>
<p>If <em>true</em> use compressed encoding, if <em>false</em> use uncompressed encoding - <em>false</em> is default</p>
</div>
</td>
</tr>
Expand Down
2 changes: 1 addition & 1 deletion docs/Classes/ECPublicKey.html
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ <h3 class="section-name"><span>Initializers</span>
<p>Creates a public key from its domain and curve point</p>
<div class="aside aside-throws">
<p class="aside-title">Throws</p>
A <em>publicKeyParameter</em> exception if <em>w</em> is not on the curve or is inifinity
A <em>publicKeyParameter</em> exception if <em>w</em> is not on the curve or is infinity

</div>

Expand Down
2 changes: 1 addition & 1 deletion docs/Structs/Point.html
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ <h4>Declaration</h4>
<section class="section">
<div class="pointer"></div>
<div class="abstract">
<p>Is <em>true</em> iff <em>self</em> is the point at inifinity</p>
<p>Is <em>true</em> iff <em>self</em> is the point at infinity</p>

</div>
<div class="declaration">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1554,7 +1554,7 @@ <h4>Parameters</h4>
</td>
<td>
<div>
<p>If <em>true</em> use compresssed encoding, if <em>false</em> use uncompressed encoding - <em>false</em> is default</p>
<p>If <em>true</em> use compressed encoding, if <em>false</em> use uncompressed encoding - <em>false</em> is default</p>
</div>
</td>
</tr>
Expand Down Expand Up @@ -1676,7 +1676,7 @@ <h4>Parameters</h4>
</td>
<td>
<div>
<p>If <em>true</em> use compresssed encoding, if <em>false</em> use uncompressed encoding - <em>false</em> is default</p>
<p>If <em>true</em> use compressed encoding, if <em>false</em> use uncompressed encoding - <em>false</em> is default</p>
</div>
</td>
</tr>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ <h3 class="section-name"><span>Initializers</span>
<p>Creates a public key from its domain and curve point</p>
<div class="aside aside-throws">
<p class="aside-title">Throws</p>
A <em>publicKeyParameter</em> exception if <em>w</em> is not on the curve or is inifinity
A <em>publicKeyParameter</em> exception if <em>w</em> is not on the curve or is infinity

</div>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ <h4>Declaration</h4>
<section class="section">
<div class="pointer"></div>
<div class="abstract">
<p>Is <em>true</em> iff <em>self</em> is the point at inifinity</p>
<p>Is <em>true</em> iff <em>self</em> is the point at infinity</p>

</div>
<div class="declaration">
Expand Down
4 changes: 2 additions & 2 deletions docs/docsets/.docset/Contents/Resources/Documents/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ <h2 id="use"><b>Usage</b></h2>

<p>In your project Package.swift file add a dependency like<br/></p>
<pre class="highlight plaintext"><code> dependencies: [
.package(url: "https://github.com/leif-ibsen/SwiftECC", from: "3.5.2"),
.package(url: "https://github.com/leif-ibsen/SwiftECC", from: "3.5.3"),
]
</code></pre>

Expand Down Expand Up @@ -484,7 +484,7 @@ <h3><b>AES-256/GCM</b></h3>
<h2 id="basic6"><b>Signing and Verifying</b></h2>

<p>Signing data and verifying signatures is performed using the ECDSA algorithm. It is possible to generate
deterministic signatures as specificed in [RFC-6979] by setting the <i>deterministic</i> parameter to <i>true</i> in the sign operation.</p>
deterministic signatures as specified in [RFC-6979] by setting the <i>deterministic</i> parameter to <i>true</i> in the sign operation.</p>

<p>The message digest used in the process is determined from the domain field size as follows:</p>

Expand Down

Large diffs are not rendered by default.

Binary file modified docs/docsets/.tgz
Binary file not shown.
4 changes: 2 additions & 2 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ <h2 id="use"><b>Usage</b></h2>

<p>In your project Package.swift file add a dependency like<br/></p>
<pre class="highlight plaintext"><code> dependencies: [
.package(url: "https://github.com/leif-ibsen/SwiftECC", from: "3.5.2"),
.package(url: "https://github.com/leif-ibsen/SwiftECC", from: "3.5.3"),
]
</code></pre>

Expand Down Expand Up @@ -484,7 +484,7 @@ <h3><b>AES-256/GCM</b></h3>
<h2 id="basic6"><b>Signing and Verifying</b></h2>

<p>Signing data and verifying signatures is performed using the ECDSA algorithm. It is possible to generate
deterministic signatures as specificed in [RFC-6979] by setting the <i>deterministic</i> parameter to <i>true</i> in the sign operation.</p>
deterministic signatures as specified in [RFC-6979] by setting the <i>deterministic</i> parameter to <i>true</i> in the sign operation.</p>

<p>The message digest used in the process is determined from the domain field size as follows:</p>

Expand Down
2 changes: 1 addition & 1 deletion docs/search.json

Large diffs are not rendered by default.

0 comments on commit 55493f0

Please sign in to comment.