File tree Expand file tree Collapse file tree 1 file changed +0
-13
lines changed
Expand file tree Collapse file tree 1 file changed +0
-13
lines changed Original file line number Diff line number Diff line change 22 (:require [libpython-clj2.python :as py :refer [py. py.. py.-]]))
33
44(defn test-py-macros [obj serialization padding hashes Fernet rsa]
5- ; ; py.. chained method calls
65 (py.. Fernet generate_key decode)
7-
8- ; ; py.. with attribute access using - prefix
96 (py.. serialization -Encoding -PEM)
10-
11- ; ; py.. method call with keyword args then chained
127 (py.. obj (private_bytes
138 :encoding (py.. serialization -Encoding -PEM)
149 :format (py.. serialization -PrivateFormat -PKCS8))
1510 decode)
16-
17- ; ; py.. with nested method calls
1811 (py.. padding (OAEP
1912 :mgf (py.. padding (MGF1 :algorithm (py.. hashes SHA256)))
2013 :algorithm (py.. hashes SHA1)
2114 :label nil ))
22-
23- ; ; py.. generate and chain
2415 (py.. rsa (generate_private_key :public_exponent 65537 :key_size 2048 ))
25-
26- ; ; py. single method call
2716 (py. obj method arg1 arg2)
28-
29- ; ; py.- attribute access
3017 (py.- obj some_attribute))
You can’t perform that action at this time.
0 commit comments