@@ -28,55 +28,55 @@ extension Data {
2828 }
2929
3030 public func md5( ) -> Data {
31- return Data ( bytes : Digest . md5 ( bytes) )
31+ return Data ( Digest . md5 ( bytes) )
3232 }
3333
3434 public func sha1( ) -> Data {
35- return Data ( bytes : Digest . sha1 ( bytes) )
35+ return Data ( Digest . sha1 ( bytes) )
3636 }
3737
3838 public func sha224( ) -> Data {
39- return Data ( bytes : Digest . sha224 ( bytes) )
39+ return Data ( Digest . sha224 ( bytes) )
4040 }
4141
4242 public func sha256( ) -> Data {
43- return Data ( bytes : Digest . sha256 ( bytes) )
43+ return Data ( Digest . sha256 ( bytes) )
4444 }
4545
4646 public func sha384( ) -> Data {
47- return Data ( bytes : Digest . sha384 ( bytes) )
47+ return Data ( Digest . sha384 ( bytes) )
4848 }
4949
5050 public func sha512( ) -> Data {
51- return Data ( bytes : Digest . sha512 ( bytes) )
51+ return Data ( Digest . sha512 ( bytes) )
5252 }
5353
5454 public func sha3( _ variant: SHA3 . Variant ) -> Data {
55- return Data ( bytes : Digest . sha3 ( bytes, variant: variant) )
55+ return Data ( Digest . sha3 ( bytes, variant: variant) )
5656 }
5757
5858 public func crc32( seed: UInt32 ? = nil , reflect: Bool = true ) -> Data {
59- return Data ( bytes : Checksum . crc32 ( bytes, seed: seed, reflect: reflect) . bytes ( ) )
59+ return Data ( Checksum . crc32 ( bytes, seed: seed, reflect: reflect) . bytes ( ) )
6060 }
6161
6262 public func crc32c( seed: UInt32 ? = nil , reflect: Bool = true ) -> Data {
63- return Data ( bytes : Checksum . crc32c ( bytes, seed: seed, reflect: reflect) . bytes ( ) )
63+ return Data ( Checksum . crc32c ( bytes, seed: seed, reflect: reflect) . bytes ( ) )
6464 }
6565
6666 public func crc16( seed: UInt16 ? = nil ) -> Data {
67- return Data ( bytes : Checksum . crc16 ( bytes, seed: seed) . bytes ( ) )
67+ return Data ( Checksum . crc16 ( bytes, seed: seed) . bytes ( ) )
6868 }
6969
7070 public func encrypt( cipher: Cipher ) throws -> Data {
71- return Data ( bytes : try cipher. encrypt ( bytes. slice) )
71+ return Data ( try cipher. encrypt ( bytes. slice) )
7272 }
7373
7474 public func decrypt( cipher: Cipher ) throws -> Data {
75- return Data ( bytes : try cipher. decrypt ( bytes. slice) )
75+ return Data ( try cipher. decrypt ( bytes. slice) )
7676 }
7777
7878 public func authenticate( with authenticator: Authenticator ) throws -> Data {
79- return Data ( bytes : try authenticator. authenticate ( bytes) )
79+ return Data ( try authenticator. authenticate ( bytes) )
8080 }
8181}
8282
0 commit comments