Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
cpython
Commits
957ac3fa
Kaydet (Commit)
957ac3fa
authored
Nis 23, 1999
tarafından
Fred Drake
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Add section for the sha module.
üst
ea424e19
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
57 additions
and
0 deletions
+57
-0
lib.tex
Doc/lib/lib.tex
+1
-0
libsha.tex
Doc/lib/libsha.tex
+56
-0
No files found.
Doc/lib/lib.tex
Dosyayı görüntüle @
957ac3fa
...
@@ -221,6 +221,7 @@ add new extensions to Python and how to embed it in other applications.
...
@@ -221,6 +221,7 @@ add new extensions to Python and how to embed it in other applications.
\input
{
libcrypto
}
% Cryptographic Services
\input
{
libcrypto
}
% Cryptographic Services
\input
{
libmd5
}
\input
{
libmd5
}
\input
{
libsha
}
\input
{
libmpz
}
\input
{
libmpz
}
\input
{
librotor
}
\input
{
librotor
}
...
...
Doc/lib/libsha.tex
0 → 100644
Dosyayı görüntüle @
957ac3fa
\section
{
\module
{
sha
}
---
SHA message digest algorithm
}
\declaremodule
{
builtin
}{
sha
}
\modulesynopsis
{
NIST's secure hash algorithm, SHA.
}
\sectionauthor
{
Fred L. Drake, Jr.
}{
fdrake@acm.org
}
This module implements the interface to NIST's
\index
{
NIST
}
secure hash
algorithm,
\index
{
Secure Hash Algorithm
}
known as SHA. It is used in
the same way as the
\refmodule
{
md5
}
module:
\
use the
\function
{
new()
}
to create an sha object, then feed this object with arbitrary strings
using the
\method
{
update()
}
method, and at any point you can ask it
for the
\dfn
{
digest
}
of the contatenation of the strings fed to it
so far.
\index
{
checksum!SHA
}
SHA digests are 160 bits instead of 128
bits.
\begin{funcdesc}
{
new
}{
\optional
{
string
}}
Return a new sha object. If
\var
{
string
}
is present, the method
call
\code
{
update(
\var
{
string
}
)
}
is made.
\end{funcdesc}
The following values are provided as constants in the module and as
attributes of the sha objects returned by
\function
{
new()
}
:
\begin{datadesc}
{
blocksize
}
Size of the blocks fed into the hash function; this is always
\code
{
1
}
. This size is used to allow an arbitrary string to be
hashed.
\end{datadesc}
\begin{datadesc}
{
digestsize
}
The size of the resulting digest in bytes. This is always
\code
{
20
}
.
\end{datadesc}
A sha object has all the methods the md5 objects have, plus one:
\begin{methoddesc}
[sha]
{
hexdigest
}{}
Return the digest value as a string of hexadecimal digits. This may
be used to exchange the value safely in email or other non-binary
environments.
\end{methoddesc}
\begin{seealso}
\seetext
{
The Secure Hash Algorithm is defined by NIST document FIPS
PUB 180-1:
\emph
{
Secure Hash Standard
}
, published in April
of 1995. It is available online as plain text at
\url
{
http://csrc.nist.gov/fips/fip180-1.txt
}
(at least one
diagram was omitted) and as PostScript at
\url
{
http://csrc.nist.gov/fips/fip180-1.ps
}
.
}
\end{seealso}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment