Commit 3f6619c9 authored by Geoff Simmons's avatar Geoff Simmons

Fix some errors in the examples.

parent 4303184f
Pipeline #189 skipped
...@@ -418,9 +418,9 @@ Examples:: ...@@ -418,9 +418,9 @@ Examples::
iv=blobcode.decode(BASE64, resp.http.X-IV-192))); iv=blobcode.decode(BASE64, resp.http.X-IV-192)));
# Encrypt X-Msg-256 with AES-256 and init vector X-IV-256. # Encrypt X-Msg-256 with AES-256 and init vector X-IV-256.
set resp.http.X-Cipher-192 = blobcode.encode(BASE64, set resp.http.X-Cipher-256 = blobcode.encode(BASE64,
aes192.encrypt(blobcode.decode(encoded=resp.http.X-Msg-192), aes192.encrypt(blobcode.decode(encoded=resp.http.X-Msg-256),
iv=blobcode.decode(BASE64, resp.http.X-IV-192))); iv=blobcode.decode(BASE64, resp.http.X-IV-256)));
} }
.. _func_symmetric.decrypt: .. _func_symmetric.decrypt:
...@@ -473,9 +473,9 @@ Examples:: ...@@ -473,9 +473,9 @@ Examples::
iv=blobcode.decode(BASE64, req.http.X-IV-192))); iv=blobcode.decode(BASE64, req.http.X-IV-192)));
# Decrypt X-Msg-256 with AES-256 and init vector X-IV-256. # Decrypt X-Msg-256 with AES-256 and init vector X-IV-256.
set req.http.X-Cipher-192 = blobcode.encode(BASE64, set req.http.X-Cipher-256 = blobcode.encode(BASE64,
aes192.decrypt(blobcode.decode(encoded=req.http.X-Msg-192), aes192.decrypt(blobcode.decode(encoded=req.http.X-Msg-256),
iv=blobcode.decode(BASE64, req.http.X-IV-192))); iv=blobcode.decode(BASE64, req.http.X-IV-256)));
} }
.. _func_version: .. _func_version:
......
...@@ -375,9 +375,9 @@ Examples:: ...@@ -375,9 +375,9 @@ Examples::
iv=blobcode.decode(BASE64, resp.http.X-IV-192))); iv=blobcode.decode(BASE64, resp.http.X-IV-192)));
# Encrypt X-Msg-256 with AES-256 and init vector X-IV-256. # Encrypt X-Msg-256 with AES-256 and init vector X-IV-256.
set resp.http.X-Cipher-192 = blobcode.encode(BASE64, set resp.http.X-Cipher-256 = blobcode.encode(BASE64,
aes192.encrypt(blobcode.decode(encoded=resp.http.X-Msg-192), aes192.encrypt(blobcode.decode(encoded=resp.http.X-Msg-256),
iv=blobcode.decode(BASE64, resp.http.X-IV-192))); iv=blobcode.decode(BASE64, resp.http.X-IV-256)));
} }
$Method BLOB .decrypt(BLOB ciphertext, BLOB iv=0, BLOB ctr=0) $Method BLOB .decrypt(BLOB ciphertext, BLOB iv=0, BLOB ctr=0)
...@@ -423,9 +423,9 @@ Examples:: ...@@ -423,9 +423,9 @@ Examples::
iv=blobcode.decode(BASE64, req.http.X-IV-192))); iv=blobcode.decode(BASE64, req.http.X-IV-192)));
# Decrypt X-Msg-256 with AES-256 and init vector X-IV-256. # Decrypt X-Msg-256 with AES-256 and init vector X-IV-256.
set req.http.X-Cipher-192 = blobcode.encode(BASE64, set req.http.X-Cipher-256 = blobcode.encode(BASE64,
aes192.decrypt(blobcode.decode(encoded=req.http.X-Msg-192), aes192.decrypt(blobcode.decode(encoded=req.http.X-Msg-256),
iv=blobcode.decode(BASE64, req.http.X-IV-192))); iv=blobcode.decode(BASE64, req.http.X-IV-256)));
} }
$Function STRING version() $Function STRING version()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment