File tree Expand file tree Collapse file tree
Source/AwsCommonRuntimeKit/crt Expand file tree Collapse file tree Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments