aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/pk_pad
diff options
context:
space:
mode:
authorSimon Warta <[email protected]>2015-07-24 23:46:44 +0200
committerSimon Warta <[email protected]>2015-07-24 23:46:44 +0200
commit550d9fd71cf6c78c86cc5a695fafa17e72ae6b18 (patch)
tree618d748b2696c50b911e55ef61dea3df30aad232 /src/lib/pk_pad
parent99a11fd5f6d54b599fc5878364df8a9d6f024ad3 (diff)
Fix typos
Thanks to @vlajos https://github.com/vlajos/misspell_fixer
Diffstat (limited to 'src/lib/pk_pad')
-rw-r--r--src/lib/pk_pad/eme_pkcs1/eme_pkcs.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/pk_pad/eme_pkcs1/eme_pkcs.cpp b/src/lib/pk_pad/eme_pkcs1/eme_pkcs.cpp
index d279b8843..90af17565 100644
--- a/src/lib/pk_pad/eme_pkcs1/eme_pkcs.cpp
+++ b/src/lib/pk_pad/eme_pkcs1/eme_pkcs.cpp
@@ -46,17 +46,17 @@ secure_vector<byte> EME_PKCS1v15::unpad(const byte in[], size_t inlen,
if(inlen != key_len / 8 || inlen < 10 || in[0] != 0x02)
throw Decoding_Error("PKCS1::unpad");
- size_t seperator = 0;
+ size_t separator = 0;
for(size_t j = 0; j != inlen; ++j)
if(in[j] == 0)
{
- seperator = j;
+ separator = j;
break;
}
- if(seperator < 9)
+ if(separator < 9)
throw Decoding_Error("PKCS1::unpad");
- return secure_vector<byte>(&in[seperator + 1], &in[inlen]);
+ return secure_vector<byte>(&in[separator + 1], &in[inlen]);
}
/*