Skip to content

Commit 8241ad0

Browse files
Make ec named constructors public (#357)
1 parent cfed01f commit 8241ad0

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Source/AwsCommonRuntimeKit/crt/EC.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public class ECKeyPair {
3131
}
3232

3333
/// Generates new ECKeyPair for the specified algo
34-
static func generate(algorithm: ECAlgorithm) throws -> ECKeyPair {
34+
static public func generate(algorithm: ECAlgorithm) throws -> ECKeyPair {
3535
guard
3636
let rawValue = aws_ecc_key_pair_new_generate_random(
3737
allocator.rawValue, aws_ecc_curve_name(algorithm.rawValue))
@@ -43,7 +43,7 @@ public class ECKeyPair {
4343

4444
/// Load ECKeyPair from der representation.
4545
/// data must be raw der bytes. i.e. strip base64 if coming from pem
46-
static func fromDer(data: Data) throws -> ECKeyPair {
46+
static public func fromDer(data: Data) throws -> ECKeyPair {
4747
try data.withUnsafeBytes { dataPointer in
4848
var dataCur = aws_byte_cursor_from_array(dataPointer.baseAddress, data.count)
4949
guard

0 commit comments

Comments
 (0)